diff options
Diffstat (limited to 'WebCore/bindings/v8/custom/V8EventCustom.cpp')
-rw-r--r-- | WebCore/bindings/v8/custom/V8EventCustom.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/custom/V8EventCustom.cpp b/WebCore/bindings/v8/custom/V8EventCustom.cpp index 8a1a339..bce1561 100644 --- a/WebCore/bindings/v8/custom/V8EventCustom.cpp +++ b/WebCore/bindings/v8/custom/V8EventCustom.cpp @@ -40,6 +40,7 @@ #include "V8Clipboard.h" #include "V8CompositionEvent.h" #include "V8CustomEvent.h" +#include "V8DeviceOrientationEvent.h" #include "V8ErrorEvent.h" #include "V8IDBErrorEvent.h" #include "V8IDBSuccessEvent.h" @@ -153,6 +154,10 @@ v8::Handle<v8::Value> toV8(Event* impl) #endif if (impl->isBeforeLoadEvent()) return toV8(static_cast<BeforeLoadEvent*>(impl)); +#if ENABLE(DEVICE_ORIENTATION) + if (impl->isDeviceOrientationEvent()) + return toV8(static_cast<DeviceOrientationEvent*>(impl)); +#endif if (impl->isCustomEvent()) return toV8(static_cast<CustomEvent*>(impl)); return V8Event::wrap(impl); |