| 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; | 
|  |