Bug 226259

Summary: Scrollbars/indicators are sometimes incorrectly drawn when async overflow scrolling is enabled
Product: WebKit Reporter: Chris Lord <clord>
Component: Layout and RenderingAssignee: Chris Lord <clord>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, darin, dino, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, pdr, sam, simon.fraser, svillar, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 224596    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Chris Lord 2021-05-26 01:33:23 PDT
Some tests are failing on WPE since enabling async overflow scrolling in tests due to incorrect drawing of scrollbars/indicators.
Comment 1 Chris Lord 2021-05-26 01:38:23 PDT
Created attachment 429736 [details]
Patch
Comment 2 Chris Lord 2021-05-26 01:57:13 PDT
Comment on attachment 429736 [details]
Patch

Obviously not quite there yet.
Comment 3 Chris Lord 2021-05-26 07:57:53 PDT
Created attachment 429754 [details]
Patch
Comment 4 Chris Lord 2021-05-26 08:24:18 PDT
Comment on attachment 429754 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=429754&action=review

> Source/WebCore/ChangeLog:8
> +        Respect clipped overflow when deciding whether to create layers for

The ChangeLog entry should read:

"Respect scrolled contents visibility when rendering scrollbar layers."
Comment 5 Simon Fraser (smfr) 2021-05-26 08:29:45 PDT
Comment on attachment 429754 [details]
Patch

Odd that this doesn't affect macOS behavior.
Comment 6 Chris Lord 2021-05-26 08:36:39 PDT
(In reply to Simon Fraser (smfr) from comment #5)
> Comment on attachment 429754 [details]
> Patch
> 
> Odd that this doesn't affect macOS behavior.

I guess Mac doesn't run tests with async overflow scrolling enabled? Or implements it differently somehow? I think that's either the only thing that hit this path incorrectly, or at least the most common thing. Same goes for bug 225922, and I guess the failures in bug 224596.
Comment 7 Chris Lord 2021-05-26 15:09:50 PDT
Created attachment 429801 [details]
Patch
Comment 8 EWS 2021-05-26 15:46:13 PDT
Committed r278129 (238179@main): <https://commits.webkit.org/238179@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 429801 [details].
Comment 9 Radar WebKit Bug Importer 2021-05-26 15:47:20 PDT
<rdar://problem/78536929>