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

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

Issue 703193004: XSLT-in-PrivateScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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..97476e74dada5f88f964728d058fb64d6013b4c3 100644
--- a/Source/core/xml/parser/XMLErrors.cpp
+++ b/Source/core/xml/parser/XMLErrors.cpp
@@ -29,6 +29,7 @@
#include "config.h"
#include "core/xml/parser/XMLErrors.h"
+#include "bindings/core/v8/V8Document.h"
#include "core/HTMLNames.h"
#include "core/SVGNames.h"
#include "core/dom/Document.h"
@@ -151,7 +152,9 @@ void XMLErrors::insertErrorMessageBlock()
String errorMessages = m_errorMessages.toString();
RefPtrWillBeRawPtr<Element> reportElement = createXHTMLParserErrorHeader(m_document, errorMessages);
- if (m_document->transformSourceDocument()) {
+ bool xsltTransformed = false;
+ V8Document::PrivateScript::xsltTransformedMethod(m_document->frame(), m_document, &xsltTransformed);
+ if (xsltTransformed) {
Vector<Attribute> attributes;
attributes.append(Attribute(styleAttr, "white-space: normal"));
RefPtrWillBeRawPtr<Element> paragraph = m_document->createElement(pTag, true);
« Source/core/xml/XSLTProcessor.h ('K') | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698