Bug 222124

Summary: RenderLayer::calculateLayerBounds() is wrong with clipping
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CompositingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=222092
https://bugs.webkit.org/show_bug.cgi?id=222132
Attachments:
Description Flags
Test case none

Simon Fraser (smfr)
Reported 2021-02-18 11:42:55 PST
Created attachment 420859 [details] Test case The UseLocalClipRectIfPossible code path in RenderLayer::calculateLayerBounds() assumes that all descendants are affected by the clip, but that'd wrong; this layer might not be in the containing block ancestry of descendant layers.
Attachments
Test case (912 bytes, text/html)
2021-02-18 11:42 PST, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2021-02-18 11:52:35 PST
I think it needs to call clipRectRelativeToAncestor() with the ancestorLayer all the way down, rather than resetting ancestorLayer at each level.
Radar WebKit Bug Importer
Comment 2 2021-02-25 11:43:44 PST
Note You need to log in before you can comment on or make changes to this bug.