Index: third_party/WebKit/Source/core/xml/XSLTProcessor.cpp |
diff --git a/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp b/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp |
index cf2c91163152f53dc0127b892a64bcbf7a2b5f0d..c154df9982762291647c2c8f955e844a3475611c 100644 |
--- a/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp |
+++ b/third_party/WebKit/Source/core/xml/XSLTProcessor.cpp |
@@ -73,10 +73,10 @@ Document* XSLTProcessor::createDocumentFromSource(const String& sourceString, |
if (frame) { |
Document* oldDocument = frame->document(); |
// Before parsing, we need to save & detach the old document and get the new document |
- // in place. Document::detachLayoutTree() tears down the FrameView, so remember whether or not |
+ // in place. Document::shutdown() tears down the FrameView, so remember whether or not |
// there was one. |
bool hasView = frame->view(); |
- oldDocument->detachLayoutTree(); |
+ oldDocument->shutdown(); |
// Re-create the FrameView if needed. |
if (hasView) |
frame->loader().client()->transitionToCommittedForNewPage(); |