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

Unified Diff: Source/core/page/DOMWindow.cpp

Issue 24430002: Rename attach and detach to createRenderTree/destroyRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/core/page/DOMWindow.cpp
diff --git a/Source/core/page/DOMWindow.cpp b/Source/core/page/DOMWindow.cpp
index ed404f2b8e7cc40362b2f175e0c3f3e232831a0d..cb6052f884a6a7f0d93a5c018a139fc59b62835f 100644
--- a/Source/core/page/DOMWindow.cpp
+++ b/Source/core/page/DOMWindow.cpp
@@ -334,7 +334,7 @@ void DOMWindow::setDocument(PassRefPtr<Document> document)
// always detaches the previous Document first. Only XSLTProcessor
// depends on this detach() call, so it seems like there's some room
// for cleanup.
- m_document->detach();
+ m_document->destroyRenderTree();
}
m_document->setDOMWindow(0);
}
@@ -346,7 +346,7 @@ void DOMWindow::setDocument(PassRefPtr<Document> document)
m_document->setDOMWindow(this);
if (!m_document->attached())
- m_document->attach();
+ m_document->createRenderTree();
if (!m_frame)
return;

Powered by Google App Engine
This is Rietveld 408576698