Commit 3dc3498b authored by akling@apple.com's avatar akling@apple.com
Browse files

Let Document keep its RenderView during render tree attach.

<https://webkit.org/b/120224>

Reviewed by Antti Koivisto.

Remove prehistoric code that cleared Document's renderer pointer during tree attach.

* dom/Document.cpp:
(WebCore::Document::attach):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 91823a4a
2013-08-23 Andreas Kling <akling@apple.com>
Let Document keep its RenderView during render tree attach.
<https://webkit.org/b/120224>
Reviewed by Antti Koivisto.
Remove prehistoric code that cleared Document's renderer pointer during tree attach.
* dom/Document.cpp:
(WebCore::Document::attach):
2013-08-23 Darin Adler <darin@apple.com>
 
Reduce use of Node in HTMLTableRowsCollection, and use modern traversal idiom
......@@ -1980,13 +1980,9 @@ void Document::attach()
recalcStyle(Style::Force);
RenderObject* render = renderer();
setRenderer(0);
for (Element* child = ElementTraversal::firstWithin(this); child; child = ElementTraversal::nextSibling(child))
Style::attachRenderTree(child);
setRenderer(render);
setAttached(true);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment