| Summary: | intersectsWithAncestor doesn't take fragmented boxes into account | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Woodrow <mattwoodrow> | ||||
| Component: | Layout and Rendering | Assignee: | Matt Woodrow <mattwoodrow> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bfulgham, changseok, dino, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Matt Woodrow
2022-03-31 19:49:40 PDT
Created attachment 456311 [details]
Patch
Comment on attachment 456311 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456311&action=review > Source/WebCore/rendering/RenderLayerBacking.cpp:2813 > - auto overlap = child.overlapBounds(); > - overlap.moveBy(offset); > + auto overlap = child.boundingBox(&ancestor, child.offsetFromAncestor(&ancestor), RenderLayer::UseFragmentBoxesExcludingCompositing); Is child.overlapBounds() just wrong in this case? That implies there are other cases where overlap is broken? Comment on attachment 456311 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456311&action=review >> Source/WebCore/rendering/RenderLayerBacking.cpp:2813 >> + auto overlap = child.boundingBox(&ancestor, child.offsetFromAncestor(&ancestor), RenderLayer::UseFragmentBoxesExcludingCompositing); > > Is child.overlapBounds() just wrong in this case? That implies there are other cases where overlap is broken? It looks like the only other caller overlapBounds is within RenderLayerCompositor, and RenderLayerCompositor::canBeComposited returns false for RenderFragmentedFlow, so I think it shouldn't ever be called for this case. Committed r292350 (249215@main): <https://commits.webkit.org/249215@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456311 [details]. |