| 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() | 
|  |