Title: [244426] trunk/Source/WebCore
Revision
244426
Author
[email protected]
Date
2019-04-18 09:31:58 -0700 (Thu, 18 Apr 2019)

Log Message

Tile update problems in iframe after scrolling page too soon after load
https://bugs.webkit.org/show_bug.cgi?id=197057
<rdar://problem/49913663>

Reviewed by Simon Fraser.

We end up destroying FrameHosting scrolling node when we shouldn't.

No test, despite attempts I couldn't get this state to stick. The problem is that in
most cases the destroying scrolling node gets immediately recreated and connected again.
Getting into testably buggy state requires some very specific layer tree configuration update.

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::detachFromScrollingCoordinator):

Test the right thing.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (244425 => 244426)


--- trunk/Source/WebCore/ChangeLog	2019-04-18 16:24:25 UTC (rev 244425)
+++ trunk/Source/WebCore/ChangeLog	2019-04-18 16:31:58 UTC (rev 244426)
@@ -1,3 +1,22 @@
+2019-04-18  Antti Koivisto  <[email protected]>
+
+        Tile update problems in iframe after scrolling page too soon after load
+        https://bugs.webkit.org/show_bug.cgi?id=197057
+        <rdar://problem/49913663>
+
+        Reviewed by Simon Fraser.
+
+        We end up destroying FrameHosting scrolling node when we shouldn't.
+
+        No test, despite attempts I couldn't get this state to stick. The problem is that in
+        most cases the destroying scrolling node gets immediately recreated and connected again.
+        Getting into testably buggy state requires some very specific layer tree configuration update.
+
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::detachFromScrollingCoordinator):
+
+        Test the right thing.
+
 2019-04-18  Antoine Quint  <[email protected]>
 
         [Pointer Events WPT] Unskip imported/w3c/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node.html

Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (244425 => 244426)


--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2019-04-18 16:24:25 UTC (rev 244425)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2019-04-18 16:31:58 UTC (rev 244426)
@@ -1850,7 +1850,7 @@
         m_scrollingNodeID = 0;
     }
 
-    if (roles.contains(ScrollCoordinationRole::Scrolling) && m_frameHostingNodeID) {
+    if (roles.contains(ScrollCoordinationRole::FrameHosting) && m_frameHostingNodeID) {
         LOG(Compositing, "Detaching FrameHosting node %" PRIu64, m_frameHostingNodeID);
         scrollingCoordinator->unparentChildrenAndDestroyNode(m_frameHostingNodeID);
         m_frameHostingNodeID = 0;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to