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

Unified Diff: Source/core/xml/parser/XMLErrors.cpp

Issue 730003002: Refactoring XSLT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed ASSERT crashes when xsltEnabled() returns false Created 6 years, 1 month 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/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/parser/XMLErrors.cpp
diff --git a/Source/core/xml/parser/XMLErrors.cpp b/Source/core/xml/parser/XMLErrors.cpp
index dc78a9c802a435827ffe270da8061a8ce2f960e6..e8b6ddc239bbefaecc477a3cc5758e7936ee75a2 100644
--- a/Source/core/xml/parser/XMLErrors.cpp
+++ b/Source/core/xml/parser/XMLErrors.cpp
@@ -34,6 +34,7 @@
#include "core/dom/Document.h"
#include "core/dom/Element.h"
#include "core/dom/Text.h"
+#include "core/xml/DocumentXSLT.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -151,7 +152,7 @@ void XMLErrors::insertErrorMessageBlock()
String errorMessages = m_errorMessages.toString();
RefPtrWillBeRawPtr<Element> reportElement = createXHTMLParserErrorHeader(m_document, errorMessages);
- if (m_document->transformSourceDocument()) {
+ if (DocumentXSLT::hasTransformSourceDocument(*m_document)) {
Vector<Attribute> attributes;
attributes.append(Attribute(styleAttr, "white-space: normal"));
RefPtrWillBeRawPtr<Element> paragraph = m_document->createElement(pTag, true);
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698