Title: [98895] trunk/Source/WebCore
Revision
98895
Author
[email protected]
Date
2011-10-31 16:00:42 -0700 (Mon, 31 Oct 2011)

Log Message

RenderImage.cpp calls SVGImage even if it's not defined
https://bugs.webkit.org/show_bug.cgi?id=71247

This fixes a compile error when ENABLE_SVG=0.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::embeddedContentBox):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (98894 => 98895)


--- trunk/Source/WebCore/ChangeLog	2011-10-31 22:55:01 UTC (rev 98894)
+++ trunk/Source/WebCore/ChangeLog	2011-10-31 23:00:42 UTC (rev 98895)
@@ -1,3 +1,13 @@
+2011-10-31  John Gregg  <[email protected]>
+
+        RenderImage.cpp calls SVGImage even if it's not defined
+        https://bugs.webkit.org/show_bug.cgi?id=71247
+
+        This fixes a compile error when ENABLE_SVG=0.
+
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::embeddedContentBox):
+
 2011-10-31  Pavel Podivilov  <[email protected]>
 
         Update XMLHttpRequest.send idl declaration to match implementation.

Modified: trunk/Source/WebCore/rendering/RenderImage.cpp (98894 => 98895)


--- trunk/Source/WebCore/rendering/RenderImage.cpp	2011-10-31 22:55:01 UTC (rev 98894)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp	2011-10-31 23:00:42 UTC (rev 98895)
@@ -544,9 +544,11 @@
     if (!m_imageResource)
         return 0;
 
+#if ENABLE(SVG)
     RefPtr<Image> image = m_imageResource->image();
     if (image && image->isSVGImage())
         return static_pointer_cast<SVGImage>(image)->embeddedContentBox();
+#endif
 
     return 0;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to