summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/graphics/SVGImage.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-08-12 06:31:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-12 06:31:08 -0700
commitd3b240ac2e4c7440dfc9557c64aae1697b273a27 (patch)
tree134ea2d4de6d493893ce6c1fe76ba931959c292f /WebCore/svg/graphics/SVGImage.cpp
parente80c61ff87d308386bced9f22ca0de2456ed5085 (diff)
parenta2c82e9ac4062724c7ec50a65fe5d893b333a529 (diff)
downloadexternal_webkit-d3b240ac2e4c7440dfc9557c64aae1697b273a27.zip
external_webkit-d3b240ac2e4c7440dfc9557c64aae1697b273a27.tar.gz
external_webkit-d3b240ac2e4c7440dfc9557c64aae1697b273a27.tar.bz2
Merge "Provide EmptyDeviceOrientationClient for use with SVGImage"
Diffstat (limited to 'WebCore/svg/graphics/SVGImage.cpp')
-rw-r--r--WebCore/svg/graphics/SVGImage.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/WebCore/svg/graphics/SVGImage.cpp b/WebCore/svg/graphics/SVGImage.cpp
index fead316..ef9d87b 100644
--- a/WebCore/svg/graphics/SVGImage.cpp
+++ b/WebCore/svg/graphics/SVGImage.cpp
@@ -253,7 +253,11 @@ bool SVGImage::dataChanged(bool allDataReceived)
#endif
static InspectorClient* dummyInspectorClient = new EmptyInspectorClient;
pageClients.inspectorClient = dummyInspectorClient;
-
+#if ENABLE(DEVICE_ORIENTATION)
+ static DeviceOrientationClient* dummyDeviceOrientationClient = new EmptyDeviceOrientationClient;
+ pageClients.deviceOrientationClient = dummyDeviceOrientationClient;
+#endif
+
// FIXME: If this SVG ends up loading itself, we might leak the world.
// The comment said that the Cache code does not know about CachedImages
// holding Frames and won't know to break the cycle. But