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

Unified Diff: Source/core/dom/Document.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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 5e13ba84982fb71c85894e137d9bf50ff64fad9f..d3a0181cd17848d7aa0dcb33d9455690307dfe6e 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1979,7 +1979,7 @@ void Document::clearStyleResolver()
m_styleResolver.clear();
}
-void Document::attach(const AttachContext& context)
+void Document::createRenderTree(const AttachContext& context)
{
ASSERT(!attached());
ASSERT(!m_axObjectCache || this != topDocument());
@@ -1990,10 +1990,10 @@ void Document::attach(const AttachContext& context)
recalcStyle(Force);
- ContainerNode::attach(context);
+ ContainerNode::createRenderTree(context);
}
-void Document::detach(const AttachContext& context)
+void Document::destroyRenderTree(const AttachContext& context)
{
ASSERT(attached());
@@ -2033,7 +2033,7 @@ void Document::detach(const AttachContext& context)
m_focusedElement = 0;
m_activeElement = 0;
- ContainerNode::detach(context);
+ ContainerNode::destroyRenderTree(context);
unscheduleStyleRecalc();
@@ -2066,7 +2066,7 @@ void Document::prepareForDestruction()
if (DOMWindow* window = this->domWindow())
window->willDetachDocumentFromFrame();
- detach();
+ destroyRenderTree();
}
void Document::removeAllEventListeners()
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | Source/core/dom/Node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698