Title: [146803] trunk/Source/WebCore
Revision
146803
Author
commit-qu...@webkit.org
Date
2013-03-25 13:14:20 -0700 (Mon, 25 Mar 2013)

Log Message

Compile without SVG will fail
https://bugs.webkit.org/show_bug.cgi?id=113234

Patch by Adenilson Cavalcanti <cavalcan...@gmail.com> on 2013-03-25
Reviewed by Timothy Hatcher.

Only make the cast to SVGStyleElement if we have SVG support built.

* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::viaInspectorStyleSheet):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (146802 => 146803)


--- trunk/Source/WebCore/ChangeLog	2013-03-25 20:11:47 UTC (rev 146802)
+++ trunk/Source/WebCore/ChangeLog	2013-03-25 20:14:20 UTC (rev 146803)
@@ -1,3 +1,15 @@
+2013-03-25  Adenilson Cavalcanti  <cavalcan...@gmail.com>
+
+        Compile without SVG will fail
+        https://bugs.webkit.org/show_bug.cgi?id=113234
+
+        Reviewed by Timothy Hatcher.
+
+        Only make the cast to SVGStyleElement if we have SVG support built.
+
+        * inspector/InspectorCSSAgent.cpp:
+        (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
+
 2013-03-25  Patrick Gansterer  <par...@webkit.org>
 
         Enable STORE_FONT_CUSTOM_PLATFORM_DATA for all platforms

Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp (146802 => 146803)


--- trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp	2013-03-25 20:11:47 UTC (rev 146802)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp	2013-03-25 20:14:20 UTC (rev 146803)
@@ -1089,8 +1089,10 @@
     CSSStyleSheet* cssStyleSheet = 0;
     if (styleElement->isHTMLElement())
         cssStyleSheet = static_cast<HTMLStyleElement*>(styleElement.get())->sheet();
+#if ENABLE(SVG)
     else if (styleElement->isSVGElement())
         cssStyleSheet = static_cast<SVGStyleElement*>(styleElement.get())->sheet();
+#endif
 
     if (!cssStyleSheet)
         return 0;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to