| Index: Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index 3d56147f2e7bffeff969542d1fe21f31fc7d62d6..947c86c336ed9d79091f8d2d27acaec1ae851674 100644
|
| --- a/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -28,6 +28,7 @@
|
|
|
| #include "FetchInitiatorTypeNames.h"
|
| #include "HTMLNames.h"
|
| +#include "RuntimeEnabledFeatures.h"
|
| #include "XMLNSNames.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "bindings/v8/ExceptionStatePlaceholder.h"
|
| @@ -1155,6 +1156,10 @@ void XMLDocumentParser::processingInstruction(const String& target, const String
|
|
|
| if (pi->isCSS())
|
| m_sawCSS = true;
|
| +
|
| + if (!RuntimeEnabledFeatures::xsltEnabled())
|
| + return;
|
| +
|
| m_sawXSLTransform = !m_sawFirstElement && pi->isXSL();
|
| if (m_sawXSLTransform && !document()->transformSourceDocument())
|
| stopParsing();
|
|
|