NEW222124
RenderLayer::calculateLayerBounds() is wrong with clipping
https://bugs.webkit.org/show_bug.cgi?id=222124
Summary RenderLayer::calculateLayerBounds() is wrong with clipping
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.