Changeset 146803 in webkit


Ignore:
Timestamp:
Mar 25, 2013, 1:14:20 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Adenilson Cavalcanti <cavalcantii@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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r146802 r146803  
     12013-03-25  Adenilson Cavalcanti  <cavalcantii@gmail.com>
     2
     3        Compile without SVG will fail
     4        https://bugs.webkit.org/show_bug.cgi?id=113234
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Only make the cast to SVGStyleElement if we have SVG support built.
     9
     10        * inspector/InspectorCSSAgent.cpp:
     11        (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
     12
    1132013-03-25  Patrick Gansterer  <paroga@webkit.org>
    214
  • trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp

    r146760 r146803  
    10901090    if (styleElement->isHTMLElement())
    10911091        cssStyleSheet = static_cast<HTMLStyleElement*>(styleElement.get())->sheet();
     1092#if ENABLE(SVG)
    10921093    else if (styleElement->isSVGElement())
    10931094        cssStyleSheet = static_cast<SVGStyleElement*>(styleElement.get())->sheet();
     1095#endif
    10941096
    10951097    if (!cssStyleSheet)
Note: See TracChangeset for help on using the changeset viewer.