Bug 195710

Summary: Explicitly trigger compositing for layers that need to be moved by ScrollingTreePositionedNodes
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: ScrollingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, koivisto, rniwa, simon.fraser, tsavell, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=195608
Attachments:
Description Flags
Testcase that needs this
none
Simpler case
none
Patch
zalan: review+, ews-watchlist: commit-queue-
Archive of layout-test-results from ews106 for mac-highsierra-wk2
none
Archive of layout-test-results from ews122 for ios-simulator-wk2 none

Description Simon Fraser (smfr) 2019-03-13 15:59:52 PDT
There may be cases where we haven't made a compositing layer for something that needs to be moved around by a positioned node, but maybe we've composited a descendant. We should probably do explicit compositing in some cases.
Comment 1 Radar WebKit Bug Importer 2019-03-13 16:00:12 PDT
<rdar://problem/48867502>
Comment 2 Simon Fraser (smfr) 2019-03-13 19:50:48 PDT
Created attachment 364611 [details]
Testcase that needs this
Comment 3 Simon Fraser (smfr) 2019-03-13 20:10:47 PDT
Created attachment 364616 [details]
Simpler case
Comment 4 Simon Fraser (smfr) 2019-03-19 21:08:37 PDT
Created attachment 365303 [details]
Patch
Comment 5 EWS Watchlist 2019-03-19 23:36:40 PDT
Comment on attachment 365303 [details]
Patch

Attachment 365303 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/11576335

New failing tests:
scrollingcoordinator/scrolling-tree/positioned-nodes.html
http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html
Comment 6 EWS Watchlist 2019-03-19 23:36:41 PDT
Created attachment 365321 [details]
Archive of layout-test-results from ews106 for mac-highsierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-highsierra-wk2  Platform: Mac OS X 10.13.6
Comment 7 EWS Watchlist 2019-03-20 02:16:36 PDT
Comment on attachment 365303 [details]
Patch

Attachment 365303 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/11577245

New failing tests:
scrollingcoordinator/scrolling-tree/positioned-nodes.html
compositing/layer-creation/absolute-in-async-overflow-scroll.html
Comment 8 EWS Watchlist 2019-03-20 02:16:38 PDT
Created attachment 365329 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.6
Comment 9 Simon Fraser (smfr) 2019-03-20 09:33:25 PDT
https://trac.webkit.org/r243209
Comment 10 Truitt Savell 2019-03-20 11:26:43 PDT
Looks like the new test compositing/layer-creation/absolute-in-async-overflow-scroll.html

from https://trac.webkit.org/changeset/243209/webkit

is failing. History:
http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=compositing%2Flayer-creation%2Fabsolute-in-async-overflow-scroll.html

Diff:
--- /Volumes/Data/slave/highsierra-release-tests-wk2/build/layout-test-results/compositing/layer-creation/absolute-in-async-overflow-scroll-expected.txt
+++ /Volumes/Data/slave/highsierra-release-tests-wk2/build/layout-test-results/compositing/layer-creation/absolute-in-async-overflow-scroll-actual.txt
@@ -16,12 +16,12 @@
             (GraphicsLayer
               (offsetFromRenderer width=1 height=1)
               (position 1.00 1.00)
-              (bounds 200.00 200.00)
+              (bounds 185.00 185.00)
               (children 1
                 (GraphicsLayer
                   (offsetFromRenderer width=1 height=1)
                   (anchor 0.00 0.00)
-                  (bounds 200.00 840.00)
+                  (bounds 185.00 841.00)
                   (drawsContent 1)
                   (children 1
                     (GraphicsLayer
Comment 11 Simon Fraser (smfr) 2019-03-20 12:57:30 PDT
Fixed in https://trac.webkit.org/r243228