From a2c82e9ac4062724c7ec50a65fe5d893b333a529 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 11 Aug 2010 14:24:41 +0100 Subject: Provide EmptyDeviceOrientationClient for use with SVGImage This is a partial cherry-pick of WebKit change 64106 See https://bugs.webkit.org/show_bug.cgi?id=43848 We can't take the complete change because we don't yet have DeviceMotion in our version of WebKit. Bug: 2907653 Change-Id: Ie038a21f9e989af46fb6b77decd7ea10da734b3c --- WebCore/svg/graphics/SVGImage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'WebCore/svg/graphics/SVGImage.cpp') 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 -- cgit v1.1