Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp

Issue 14113007: Remove the ENABLE_XSLT compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/xml/parser/XMLDocumentParser.h ('k') | Source/WebCore/xml/parser/XMLDocumentParserScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
diff --git a/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp b/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
index 0535dcef447efd94fe1ef9d471e5f80d27b0d83b..05b7a757a68fd08a3dd114d8e37ce65f6d091b15 100644
--- a/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
+++ b/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
@@ -66,10 +66,8 @@
#include <wtf/Vector.h>
#include <wtf/unicode/UTF8.h>
-#if ENABLE(XSLT)
#include "XMLTreeViewer.h"
#include <libxslt/xslt.h>
-#endif
using namespace std;
@@ -478,12 +476,10 @@ static int closeFunc(void* context)
return 0;
}
-#if ENABLE(XSLT)
static void errorFunc(void*, const char*, ...)
{
// FIXME: It would be nice to display error messages somewhere.
}
-#endif
static bool didInit = false;
@@ -988,11 +984,9 @@ void XMLDocumentParser::processingInstruction(const xmlChar* target, const xmlCh
if (pi->isCSS())
m_sawCSS = true;
-#if ENABLE(XSLT)
m_sawXSLTransform = !m_sawFirstElement && pi->isXSL();
if (m_sawXSLTransform && !document()->transformSourceDocument())
stopParsing();
-#endif
}
void XMLDocumentParser::cdataBlock(const xmlChar* s, int len)
@@ -1357,7 +1351,6 @@ void XMLDocumentParser::doEnd()
}
}
-#if ENABLE(XSLT)
XMLTreeViewer xmlTreeViewer(document());
bool xmlViewerMode = !m_sawError && !m_sawCSS && !m_sawXSLTransform && xmlTreeViewer.hasNoStyleInformation();
if (xmlViewerMode)
@@ -1378,10 +1371,8 @@ void XMLDocumentParser::doEnd()
document()->setParsing(true);
DocumentParser::stopParsing();
}
-#endif
}
-#if ENABLE(XSLT)
void* xmlDocPtrForString(CachedResourceLoader* cachedResourceLoader, const String& source, const String& url)
{
if (source.isEmpty())
@@ -1401,7 +1392,6 @@ void* xmlDocPtrForString(CachedResourceLoader* cachedResourceLoader, const Strin
XSLT_PARSE_OPTIONS);
return sourceDoc;
}
-#endif
OrdinalNumber XMLDocumentParser::lineNumber() const
{
« no previous file with comments | « Source/WebCore/xml/parser/XMLDocumentParser.h ('k') | Source/WebCore/xml/parser/XMLDocumentParserScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698