RESOLVED FIXED 231292
Ensure that the top layer is always anchored to the RenderView
https://bugs.webkit.org/show_bug.cgi?id=231292
Summary Ensure that the top layer is always anchored to the RenderView
Attachments
Patch (2.64 KB, patch)
2021-10-06 08:39 PDT, zalan
no flags
Patch (7.75 KB, patch)
2021-10-15 13:10 PDT, Tim Nguyen (:ntim)
no flags
Patch (9.62 KB, patch)
2021-10-16 04:47 PDT, Tim Nguyen (:ntim)
no flags
Testcase that fails with top layer reparenting patch (477 bytes, text/html)
2021-10-18 08:20 PDT, Tim Nguyen (:ntim)
no flags
Patch (9.53 KB, patch)
2021-11-07 10:15 PST, Tim Nguyen (:ntim)
no flags
Patch (11.67 KB, patch)
2021-12-06 09:12 PST, Tim Nguyen (:ntim)
ews-feeder: commit-queue-
Patch (11.67 KB, patch)
2021-12-06 09:23 PST, Tim Nguyen (:ntim)
no flags
Patch (10.01 KB, patch)
2021-12-21 13:53 PST, Tim Nguyen (:ntim)
no flags
Patch (5.40 KB, patch)
2022-01-05 20:18 PST, zalan
no flags
zalan
Comment 1 2021-10-06 08:39:00 PDT
EWS
Comment 2 2021-10-06 10:55:05 PDT
Committed r283634 (242585@main): <https://commits.webkit.org/242585@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440374 [details].
Radar WebKit Bug Importer
Comment 3 2021-10-06 10:56:17 PDT
WebKit Commit Bot
Comment 4 2021-10-06 15:24:19 PDT
Re-opened since this is blocked by bug 231332
Tim Nguyen (:ntim)
Comment 5 2021-10-15 13:10:19 PDT
Tim Nguyen (:ntim)
Comment 6 2021-10-16 04:47:07 PDT
Tim Nguyen (:ntim)
Comment 7 2021-10-18 08:20:42 PDT
Created attachment 441604 [details] Testcase that fails with top layer reparenting patch
Brent Fulgham
Comment 8 2021-10-25 10:03:36 PDT
This is now being tracked by rdar://84618684.
Tim Nguyen (:ntim)
Comment 9 2021-11-07 10:15:50 PST
Tim Nguyen (:ntim)
Comment 10 2021-12-06 09:12:19 PST
Tim Nguyen (:ntim)
Comment 11 2021-12-06 09:23:03 PST
Tim Nguyen (:ntim)
Comment 12 2021-12-21 13:53:41 PST
zalan
Comment 13 2022-01-05 20:18:19 PST
Tim Nguyen (:ntim)
Comment 14 2022-01-06 05:44:21 PST
Comment on attachment 448465 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448465&action=review Thanks for taking another look at this! > Source/WebCore/rendering/RenderObject.cpp:666 > + auto containingBlockForRenderer = [](const auto& renderer) -> RenderBlock* { > + if (isInTopLayerOrBackdrop(renderer.style(), renderer.element())) > + return &renderer.view(); > if (renderer.isAbsolutelyPositioned()) > return renderer.containingBlockForAbsolutePosition(); > if (renderer.isFixedPositioned()) containingBlockForAbsolutePosition/containingBlockForFixedPosition is also used in LogicalSelectionOffsetCaches.cpp / LogicalSelectionOffsetCaches.h Should we adapt those instead?
zalan
Comment 15 2022-01-06 06:17:45 PST
(In reply to Tim Nguyen (:ntim) from comment #14) > Comment on attachment 448465 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=448465&action=review > > Thanks for taking another look at this! > > > Source/WebCore/rendering/RenderObject.cpp:666 > > + auto containingBlockForRenderer = [](const auto& renderer) -> RenderBlock* { > > + if (isInTopLayerOrBackdrop(renderer.style(), renderer.element())) > > + return &renderer.view(); > > if (renderer.isAbsolutelyPositioned()) > > return renderer.containingBlockForAbsolutePosition(); > > if (renderer.isFixedPositioned()) > > containingBlockForAbsolutePosition/containingBlockForFixedPosition is also > used in LogicalSelectionOffsetCaches.cpp / LogicalSelectionOffsetCaches.h > > Should we adapt those instead? will do a bit of a cleanup there.
EWS
Comment 16 2022-01-06 06:34:35 PST
Committed r287683 (245779@main): <https://commits.webkit.org/245779@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 448465 [details].
Note You need to log in before you can comment on or make changes to this bug.