Changeset 173206 in webkit


Ignore:
Timestamp:
Sep 3, 2014 8:34:42 AM (10 years ago)
Author:
dbates@webkit.org
Message:

[XSLT] Make WebKit build when XSLT is disabled
https://bugs.webkit.org/show_bug.cgi?id=136471

Reviewed by Simon Fraser.

Fixes a Clang compiler warning that file-static function WebCore::hasNoStyleInformation is unused.
This function is only called from ENABLE(XSLT)-guarded code. So, add a ENABLE(XSLT)-guard around
WebCore::hasNoStyleInformation().

  • xml/parser/XMLDocumentParserLibxml2.cpp:

(WebCore::hasNoStyleInformation):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r173199 r173206  
     12014-09-03  Daniel Bates  <dabates@apple.com>
     2
     3        [XSLT] Make WebKit build when XSLT is disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=136471
     5
     6        Reviewed by Simon Fraser.
     7
     8        Fixes a Clang compiler warning that file-static function WebCore::hasNoStyleInformation is unused.
     9        This function is only called from ENABLE(XSLT)-guarded code. So, add a ENABLE(XSLT)-guard around
     10        WebCore::hasNoStyleInformation().
     11
     12        * xml/parser/XMLDocumentParserLibxml2.cpp:
     13        (WebCore::hasNoStyleInformation):
     14
    1152014-09-02  Brian J. Burg  <burg@cs.washington.edu>
    216
  • trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp

    r170774 r173206  
    7373namespace WebCore {
    7474
     75#if ENABLE(XSLT)
    7576static inline bool hasNoStyleInformation(Document* document)
    7677{
    7778    if (document->sawElementsInKnownNamespaces())
    7879        return false;
    79 #if ENABLE(XSLT)
     80
    8081    if (document->transformSourceDocument())
    8182        return false;
    82 #endif
     83
    8384    if (!document->frame() || !document->frame()->page())
    8485        return false;
     
    9293    return true;
    9394}
     95#endif
    9496
    9597class PendingCallbacks {
Note: See TracChangeset for help on using the changeset viewer.