RESOLVED FIXED192529
Add nodes to the scrolling tree in z-index order.
https://bugs.webkit.org/show_bug.cgi?id=192529
Summary Add nodes to the scrolling tree in z-index order.
Simon Fraser (smfr)
Reported 2018-12-08 13:02:03 PST
Bug 176914 adds the ability to add nodes to the scrolling tree in the right z-order, but we actually need to make use of that.
Attachments
Patch (75.85 KB, patch)
2019-01-27 22:24 PST, Simon Fraser (smfr)
no flags
Patch (75.75 KB, patch)
2019-01-27 23:15 PST, Simon Fraser (smfr)
no flags
Patch (74.94 KB, patch)
2019-01-29 15:28 PST, Simon Fraser (smfr)
dino: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.43 MB, application/zip)
2019-01-29 17:25 PST, EWS Watchlist
no flags
Simon Fraser (smfr)
Comment 1 2018-12-08 13:03:41 PST
Marking fast/visual-viewport/tiled-drawing/zoomed-fixed-scrolling-layers-state.html as flakey until this is fixed; the current code attaches nodes to the scrolling tree by traversing a HashSet, which is not ordered.
Radar WebKit Bug Importer
Comment 2 2019-01-18 17:40:47 PST
Simon Fraser (smfr)
Comment 3 2019-01-27 22:24:28 PST
Simon Fraser (smfr)
Comment 4 2019-01-27 23:15:31 PST
Simon Fraser (smfr)
Comment 5 2019-01-27 23:15:52 PST
Comment on attachment 360322 [details] Patch WIP
Simon Fraser (smfr)
Comment 6 2019-01-29 15:28:17 PST
EWS Watchlist
Comment 7 2019-01-29 17:25:37 PST
Comment on attachment 360510 [details] Patch Attachment 360510 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10944721 New failing tests: fast/scrolling/ios/hit-testing-iframe.html
EWS Watchlist
Comment 8 2019-01-29 17:25:38 PST
Created attachment 360530 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Dean Jackson
Comment 9 2019-01-29 17:41:37 PST
Comment on attachment 360510 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=360510&action=review > Source/WebCore/ChangeLog:21 > + was hard because the backing was already disconnect from its owning RenderLayer, so I added RenderLayerBacking::willBeDestroyed() typo: disconnected > Source/WebCore/rendering/RenderLayerCompositor.cpp:627 > + return { }; Is this the new nullopt? > Source/WebCore/rendering/RenderLayerCompositor.cpp:3773 > + ASSERT_IMPLIES(nodeType == ScrollingNodeType::MainFrame, !treeState.parentNodeID.value()); oooh. I didn't know ASSERT_IMPLIES existed :| > Source/WebCore/rendering/RenderLayerCompositor.cpp:3807 > + // FIXME oops! > Source/WebCore/rendering/RenderLayerCompositor.cpp:3837 > + bool isViewportConstained = roles.contains(ScrollCoordinationRole::ViewportConstrained); I don't know what a con stain is. > Source/WebCore/rendering/RenderLayerCompositor.cpp:3890 > + ASSERT(layer.renderer().isFixedPositioned()); huh. i assumed this wouldn't compile in release. > LayoutTests/scrollingcoordinator/scrolling-tree/scrolling-tree-is-z-order.html:45 > + z-index: 3; It might be worth explaining in a comment (assuming I'm correct) that this z-index value causes the third Fixed Node in the results to be the one with the top-left-most layout position. i.e. the result shows that the scrolling layers are #second, #third, #first, because z-index: 3, auto, 1. Also, I guess you could make this value 2 :)
Simon Fraser (smfr)
Comment 10 2019-01-29 19:31:29 PST
Note You need to log in before you can comment on or make changes to this bug.