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

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

Issue 365873002: Implement a part of ProcessingInstruction by using PrivateScript (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP: async XHR, rewriting layout tests Created 6 years, 3 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/core/xml/parser/XMLDocumentParser.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | 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..fa4519326229f9db8fc9c558e1846df1ffff7248 100644
--- a/Source/core/xml/parser/XMLErrors.cpp
+++ b/Source/core/xml/parser/XMLErrors.cpp
@@ -29,11 +29,13 @@
#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"
#include "core/dom/Element.h"
#include "core/dom/Text.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -151,7 +153,13 @@ void XMLErrors::insertErrorMessageBlock()
String errorMessages = m_errorMessages.toString();
RefPtrWillBeRawPtr<Element> reportElement = createXHTMLParserErrorHeader(m_document, errorMessages);
- if (m_document->transformSourceDocument()) {
+ bool xsltTransformed = false;
+ if (!RuntimeEnabledFeatures::xsltInPrivateScriptEnabled()) {
+ xsltTransformed = m_document->transformSourceDocument();
+ } else {
+ 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);
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698