Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index ebb6fccf2d9cfde54fe526012be4a000ba84e0d8..e0649dacda9ce03f6422a9f9bdd18ff118b86816 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4418,27 +4418,6 @@ void Document::popCurrentScript() |
m_currentScriptStack.removeLast(); |
} |
-void Document::applyXSLTransform(ProcessingInstruction* pi) |
-{ |
- ASSERT(!pi->isLoading()); |
- UseCounter::count(*this, UseCounter::XSLProcessingInstruction); |
- RefPtrWillBeRawPtr<XSLTProcessor> processor = XSLTProcessor::create(*this); |
- processor->setXSLStyleSheet(toXSLStyleSheet(pi->sheet())); |
- String resultMIMEType; |
- String newSource; |
- String resultEncoding; |
- setParsing(true); |
- if (!processor->transformToString(this, resultMIMEType, newSource, resultEncoding)) { |
- setParsing(false); |
- return; |
- } |
- // FIXME: If the transform failed we should probably report an error (like Mozilla does). |
- LocalFrame* ownerFrame = frame(); |
- processor->createDocumentFromSource(newSource, resultEncoding, resultMIMEType, this, ownerFrame); |
- InspectorInstrumentation::frameDocumentUpdated(ownerFrame); |
- setParsing(false); |
-} |
- |
void Document::setTransformSource(PassOwnPtr<TransformSource> source) |
{ |
m_transformSource = source; |
@@ -4852,8 +4831,6 @@ void Document::initContentSecurityPolicy(PassRefPtr<ContentSecurityPolicy> csp) |
setContentSecurityPolicy(csp ? csp : ContentSecurityPolicy::create()); |
if (m_frame && m_frame->tree().parent() && m_frame->tree().parent()->isLocalFrame() && (shouldInheritSecurityOriginFromOwner(m_url) || isPluginDocument())) |
contentSecurityPolicy()->copyStateFrom(toLocalFrame(m_frame->tree().parent())->document()->contentSecurityPolicy()); |
- if (transformSourceDocument()) |
- contentSecurityPolicy()->copyStateFrom(transformSourceDocument()->contentSecurityPolicy()); |
contentSecurityPolicy()->bindToExecutionContext(this); |
} |
@@ -5779,7 +5756,6 @@ void Document::trace(Visitor* visitor) |
visitor->trace(m_cssTarget); |
visitor->trace(m_currentScriptStack); |
visitor->trace(m_scriptRunner); |
- visitor->trace(m_transformSourceDocument); |
visitor->trace(m_listsInvalidatedAtDocument); |
for (int i = 0; i < numNodeListInvalidationTypes; ++i) |
visitor->trace(m_nodeLists[i]); |