Title: [246828] trunk/Source/WebKit
Revision
246828
Author
[email protected]
Date
2019-06-25 19:59:02 -0700 (Tue, 25 Jun 2019)

Log Message

[iOS WK2 Debug] scrollingcoordinator/scrolling-tree/scroller-with-negative-z-child.html asserts
https://bugs.webkit.org/show_bug.cgi?id=199218

Reviewed by Zalan Bujtas.

Followup to r246766; don't assert in the UI process if a ScrollingTreeOverflowScrollProxyNode
doesn't have a related overflow node; this is currently expected behavior with negative z-order
children of a scroller.

* UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm:
(WebKit::RemoteScrollingCoordinatorProxy::establishLayerTreeScrollingRelations):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (246827 => 246828)


--- trunk/Source/WebKit/ChangeLog	2019-06-26 02:25:19 UTC (rev 246827)
+++ trunk/Source/WebKit/ChangeLog	2019-06-26 02:59:02 UTC (rev 246828)
@@ -1,3 +1,17 @@
+2019-06-25  Simon Fraser  <[email protected]>
+
+        [iOS WK2 Debug] scrollingcoordinator/scrolling-tree/scroller-with-negative-z-child.html asserts
+        https://bugs.webkit.org/show_bug.cgi?id=199218
+
+        Reviewed by Zalan Bujtas.
+
+        Followup to r246766; don't assert in the UI process if a ScrollingTreeOverflowScrollProxyNode
+        doesn't have a related overflow node; this is currently expected behavior with negative z-order
+        children of a scroller.
+
+        * UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm:
+        (WebKit::RemoteScrollingCoordinatorProxy::establishLayerTreeScrollingRelations):
+
 2019-06-25  Daniel Bates  <[email protected]>
 
         Non-editable text selections should be modifiable with hardware keyboard

Modified: trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm (246827 => 246828)


--- trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm	2019-06-26 02:25:19 UTC (rev 246827)
+++ trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm	2019-06-26 02:59:02 UTC (rev 246828)
@@ -159,10 +159,9 @@
         } else if (is<ScrollingTreeOverflowScrollProxyNode>(*node)) {
             auto& scrollProxyNode = downcast<ScrollingTreeOverflowScrollProxyNode>(*node);
             auto* overflowNode = downcast<ScrollingTreeOverflowScrollingNode>(m_scrollingTree->nodeForID(scrollProxyNode.overflowScrollingNodeID()));
-            if (!overflowNode) {
-                ASSERT_NOT_REACHED();
+            if (!overflowNode)
                 continue;
-            }
+
             scrollContainerLayerIDs.append(RemoteLayerTreeNode::layerID(overflowNode->scrollContainerLayer()));
             layerNode = RemoteLayerTreeNode::forCALayer(scrollProxyNode.layer());
             behavior = ScrollPositioningBehavior::Moves;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to