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

Unified Diff: Source/core/xml/XSLTProcessor.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/WindowXSLT.idl ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XSLTProcessor.cpp
diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp
index ea0f323016dca3baacf69d371fd16e046656c2fb..fe6ad332a249dd4f890da7f1ce0da66501ff7ef7 100644
--- a/Source/core/xml/XSLTProcessor.cpp
+++ b/Source/core/xml/XSLTProcessor.cpp
@@ -23,9 +23,11 @@
#include "config.h"
#include "core/xml/XSLTProcessor.h"
+#include "bindings/core/v8/V8Document.h"
#include "core/dom/DOMImplementation.h"
#include "core/dom/DocumentEncodingData.h"
#include "core/dom/DocumentFragment.h"
+#include "core/dom/ProcessingInstruction.h"
#include "core/editing/markup.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/FrameView.h"
@@ -83,7 +85,10 @@ PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const S
view->clear();
if (oldDocument) {
- result->setTransformSourceDocument(oldDocument.get());
+ if (RuntimeEnabledFeatures::xsltInPrivateScriptEnabled())
+ V8Document::PrivateScript::setTransformSourceDocumentMethod(frame, result.get(), oldDocument.get());
+ else
+ result->setTransformSourceDocument(oldDocument.get());
result->updateSecurityOrigin(oldDocument->securityOrigin());
result->setCookieURL(oldDocument->cookieURL());
result->contentSecurityPolicy()->copyStateFrom(oldDocument->contentSecurityPolicy());
« no previous file with comments | « Source/core/xml/WindowXSLT.idl ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698