diff options
-rw-r--r-- | WebCore/loader/EmptyClients.h | 9 | ||||
-rw-r--r-- | WebCore/svg/graphics/SVGImage.cpp | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/WebCore/loader/EmptyClients.h b/WebCore/loader/EmptyClients.h index c40e3cc..0d30713 100644 --- a/WebCore/loader/EmptyClients.h +++ b/WebCore/loader/EmptyClients.h @@ -31,6 +31,7 @@ #include "ChromeClient.h" #include "Console.h" #include "ContextMenuClient.h" +#include "DeviceMotionClient.h" #include "DeviceOrientationClient.h" #include "DocumentLoader.h" #include "DragClient.h" @@ -540,6 +541,14 @@ public: virtual bool sendMessageToFrontend(const String&) { return false; } }; +class EmptyDeviceMotionClient : public DeviceMotionClient { +public: + virtual void setController(DeviceMotionController*) { } + virtual void startUpdating() { } + virtual void stopUpdating() { } + virtual DeviceMotionData* currentDeviceMotion() const { return 0; } +}; + class EmptyDeviceOrientationClient : public DeviceOrientationClient { public: virtual void setController(DeviceOrientationController*) { } diff --git a/WebCore/svg/graphics/SVGImage.cpp b/WebCore/svg/graphics/SVGImage.cpp index 3d60117..990e41f 100644 --- a/WebCore/svg/graphics/SVGImage.cpp +++ b/WebCore/svg/graphics/SVGImage.cpp @@ -254,6 +254,8 @@ bool SVGImage::dataChanged(bool allDataReceived) static InspectorClient* dummyInspectorClient = new EmptyInspectorClient; pageClients.inspectorClient = dummyInspectorClient; #if ENABLE(DEVICE_ORIENTATION) + static DeviceMotionClient* dummyDeviceMotionClient = new EmptyDeviceMotionClient; + pageClients.deviceMotionClient = dummyDeviceMotionClient; static DeviceOrientationClient* dummyDeviceOrientationClient = new EmptyDeviceOrientationClient; pageClients.deviceOrientationClient = dummyDeviceOrientationClient; #endif |