Remove public attachRenderTree
[WebKit-https.git] / Source / WebCore / loader / PlaceholderDocument.cpp
index 9ecf636..596d5ef 100644 (file)
 #include "config.h"
 #include "PlaceholderDocument.h"
 
-#include "ElementTraversal.h"
+#include "ElementIterator.h"
 
 namespace WebCore {
 
-void PlaceholderDocument::attach()
+void PlaceholderDocument::createRenderTree()
 {
-    ASSERT(!attached());
-
-    Element::AttachContext attachContext;
-    for (Element* child = ElementTraversal::firstWithin(this); child; child = ElementTraversal::nextSibling(child))
-        child->attach(attachContext);
-
-    setAttached(true);
+    ASSERT(!renderView());
 }
 
 } // namespace WebCore