Title: [173206] trunk/Source/WebCore
Revision
173206
Author
dba...@webkit.org
Date
2014-09-03 08:34:42 -0700 (Wed, 03 Sep 2014)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (173205 => 173206)


--- trunk/Source/WebCore/ChangeLog	2014-09-03 14:15:09 UTC (rev 173205)
+++ trunk/Source/WebCore/ChangeLog	2014-09-03 15:34:42 UTC (rev 173206)
@@ -1,3 +1,17 @@
+2014-09-03  Daniel Bates  <daba...@apple.com>
+
+        [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):
+
 2014-09-02  Brian J. Burg  <b...@cs.washington.edu>
 
         LegacyProfiler: remove redundant ProfileNode members and other cleanup

Modified: trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp (173205 => 173206)


--- trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp	2014-09-03 14:15:09 UTC (rev 173205)
+++ trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp	2014-09-03 15:34:42 UTC (rev 173206)
@@ -72,14 +72,15 @@
 
 namespace WebCore {
 
+#if ENABLE(XSLT)
 static inline bool hasNoStyleInformation(Document* document)
 {
     if (document->sawElementsInKnownNamespaces())
         return false;
-#if ENABLE(XSLT)
+
     if (document->transformSourceDocument())
         return false;
-#endif
+
     if (!document->frame() || !document->frame()->page())
         return false;
 
@@ -91,6 +92,7 @@
 
     return true;
 }
+#endif
 
 class PendingCallbacks {
     WTF_MAKE_NONCOPYABLE(PendingCallbacks); WTF_MAKE_FAST_ALLOCATED;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to