Bug 192201 - Overflow scrolling layers need to be self-painting
Summary: Overflow scrolling layers need to be self-painting
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-29 16:50 PST by Simon Fraser (smfr)
Modified: 2018-11-30 16:41 PST (History)
7 users (show)

See Also:


Attachments
Patch (4.64 KB, patch)
2018-11-29 16:52 PST, Simon Fraser (smfr)
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2018-11-29 16:50:52 PST
Overflow scrolling layers need to be self-painting
Comment 1 Simon Fraser (smfr) 2018-11-29 16:52:24 PST
Created attachment 356092 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2018-11-29 16:53:22 PST
<rdar://problem/46359460>
Comment 3 Simon Fraser (smfr) 2018-11-29 16:54:34 PST
Depends on a previous patch.
Comment 4 Simon Fraser (smfr) 2018-11-29 19:48:34 PST
https://trac.webkit.org/changeset/238725/webkit
Comment 5 Ali Juma 2018-11-30 07:12:09 PST
(In reply to Simon Fraser (smfr) from comment #0)
> Overflow scrolling layers need to be self-painting

Won't this change paint order for those overflow scrollers that didn't get self-painting layers before? (Since instead of being painted when other in-flow elements are painted they'll now get painted with other self-painting layers.)
Comment 6 Truitt Savell 2018-11-30 09:08:32 PST
The new test added in https://trac.webkit.org/changeset/238725/webkit

compositing/scrolling/overflow-scrolling-layers-are-self-painting.html is failing

Diff:
--- /Volumes/Data/slave/ios-simulator-12-release-tests-wk2/build/layout-test-results/compositing/scrolling/overflow-scrolling-layers-are-self-painting-expected.txt
+++ /Volumes/Data/slave/ios-simulator-12-release-tests-wk2/build/layout-test-results/compositing/scrolling/overflow-scrolling-layers-are-self-painting-actual.txt
@@ -14,11 +14,11 @@
             (GraphicsLayer
               (offsetFromRenderer width=-1 height=-1)
               (position 1.00 1.00)
-              (bounds 285.00 285.00)
+              (bounds 300.00 300.00)
               (children 1
                 (GraphicsLayer
                   (offsetFromRenderer width=1 height=1)
-                  (bounds 285.00 2000.00)
+                  (bounds 300.00 2000.00)
                 )
               )
             )

History:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=compositing%2Fscrolling%2Foverflow-scrolling-layers-are-self-painting.html
Comment 7 Simon Fraser (smfr) 2018-11-30 10:16:25 PST
Test needs iOS results (though I could have sworn I ran the test for iOS before landing).

(In reply to Ali Juma from comment #5)
> (In reply to Simon Fraser (smfr) from comment #0)
> > Overflow scrolling layers need to be self-painting
> 
> Won't this change paint order for those overflow scrollers that didn't get
> self-painting layers before? (Since instead of being painted when other
> in-flow elements are painted they'll now get painted with other
> self-painting layers.)

Yes, but I'm not sure we have a choice. We do the same for things like video and canvas, and it hasn't been a problem.
Comment 8 Truitt Savell 2018-11-30 16:41:35 PST
added iOS specific expectations in https://trac.webkit.org/changeset/238765/webkit