Title: [154517] trunk/Source/WebCore
Revision
154517
Author
[email protected]
Date
2013-08-23 13:35:09 -0700 (Fri, 23 Aug 2013)

Log Message

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (154516 => 154517)


--- trunk/Source/WebCore/ChangeLog	2013-08-23 20:30:23 UTC (rev 154516)
+++ trunk/Source/WebCore/ChangeLog	2013-08-23 20:35:09 UTC (rev 154517)
@@ -1,3 +1,15 @@
+2013-08-23  Andreas Kling  <[email protected]>
+
+        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  <[email protected]>
 
         Reduce use of Node in HTMLTableRowsCollection, and use modern traversal idiom

Modified: trunk/Source/WebCore/dom/Document.cpp (154516 => 154517)


--- trunk/Source/WebCore/dom/Document.cpp	2013-08-23 20:30:23 UTC (rev 154516)
+++ trunk/Source/WebCore/dom/Document.cpp	2013-08-23 20:35:09 UTC (rev 154517)
@@ -1980,13 +1980,9 @@
 
     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);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to