Title: [106287] trunk/Source/WebKit2
Revision
106287
Author
[email protected]
Date
2012-01-30 14:01:42 -0800 (Mon, 30 Jan 2012)

Log Message

[Qt] Disconnect the LayerTreeHost from layers when they get removed from their parent.
https://bugs.webkit.org/show_bug.cgi?id=77362

Reviewed by Noam Rosenthal.

This fixes crashes seen in layout tests under certain timing circumstances
that appeared after r106109 was landed.

* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
(WebCore::WebGraphicsLayer::replaceChild):
(WebCore::WebGraphicsLayer::removeFromParent):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (106286 => 106287)


--- trunk/Source/WebKit2/ChangeLog	2012-01-30 21:44:33 UTC (rev 106286)
+++ trunk/Source/WebKit2/ChangeLog	2012-01-30 22:01:42 UTC (rev 106287)
@@ -1,3 +1,17 @@
+2012-01-30  Jocelyn Turcotte  <[email protected]>
+
+        [Qt] Disconnect the LayerTreeHost from layers when they get removed from their parent.
+        https://bugs.webkit.org/show_bug.cgi?id=77362
+
+        Reviewed by Noam Rosenthal.
+
+        This fixes crashes seen in layout tests under certain timing circumstances
+        that appeared after r106109 was landed.
+
+        * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
+        (WebCore::WebGraphicsLayer::replaceChild):
+        (WebCore::WebGraphicsLayer::removeFromParent):
+
 2012-01-30  Beth Dakin  <[email protected]>
 
         https://bugs.webkit.org/show_bug.cgi?id=77263

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp (106286 => 106287)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp	2012-01-30 21:44:33 UTC (rev 106286)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp	2012-01-30 22:01:42 UTC (rev 106287)
@@ -162,6 +162,7 @@
         return false;
     notifyChange();
     toWebGraphicsLayer(oldChild)->notifyChange();
+    toWebGraphicsLayer(oldChild)->setLayerTreeTileClient(0);
     toWebGraphicsLayer(newChild)->setVisibleContentRectAndScale(m_pageVisibleRect, m_contentsScale);
     toWebGraphicsLayer(newChild)->notifyChange();
     return true;
@@ -174,6 +175,7 @@
     GraphicsLayer::removeFromParent();
 
     notifyChange();
+    setLayerTreeTileClient(0);
 }
 
 void WebGraphicsLayer::setPosition(const FloatPoint& p)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to