RESOLVED FIXED 248854
[leading-trim][IFC] Add support for nested block containers with leading-trim: end
https://bugs.webkit.org/show_bug.cgi?id=248854
Summary [leading-trim][IFC] Add support for nested block containers with leading-trim...
zalan
Reported 2022-12-06 19:48:33 PST
ssia
Attachments
Patch (19.95 KB, patch)
2022-12-06 20:52 PST, zalan
no flags
Patch (19.96 KB, patch)
2022-12-07 07:16 PST, zalan
no flags
[fast-cq]Patch (20.51 KB, patch)
2022-12-07 11:01 PST, zalan
no flags
[fast-cq]Patch (20.51 KB, patch)
2022-12-07 16:45 PST, zalan
no flags
zalan
Comment 1 2022-12-06 20:52:58 PST
zalan
Comment 2 2022-12-07 07:16:47 PST
Antti Koivisto
Comment 3 2022-12-07 07:25:18 PST
Comment on attachment 463915 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463915&action=review > Source/WebCore/rendering/RenderBlockFlow.cpp:725 > + if (childrenInline()) { > + setLeadingTrimForSubtree(this); > + layoutInlineChildren(relayoutChildren, repaintLogicalTop, repaintLogicalBottom); > + adjustLeadingTrimAfterLayout(); > + return; > + } > + > + // With block children, there's no way to tell what the last formatted line is until after we finished laying out the subtree. > + setLeadingTrimForSubtree(); > + layoutBlockChildren(relayoutChildren, maxFloatLogicalBottom); > + adjustLeadingTrimAfterLayout(); setLeadingTrimForSubtree(this) vs setLeadingTrimForSubtree() is but subtle. Maybe a stack helper (LeadingTrimmer!) could make this bit less intrusive.
zalan
Comment 4 2022-12-07 07:27:57 PST
(In reply to Antti Koivisto from comment #3) > Comment on attachment 463915 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=463915&action=review > > > Source/WebCore/rendering/RenderBlockFlow.cpp:725 > > + if (childrenInline()) { > > + setLeadingTrimForSubtree(this); > > + layoutInlineChildren(relayoutChildren, repaintLogicalTop, repaintLogicalBottom); > > + adjustLeadingTrimAfterLayout(); > > + return; > > + } > > + > > + // With block children, there's no way to tell what the last formatted line is until after we finished laying out the subtree. > > + setLeadingTrimForSubtree(); > > + layoutBlockChildren(relayoutChildren, maxFloatLogicalBottom); > > + adjustLeadingTrimAfterLayout(); > > setLeadingTrimForSubtree(this) vs setLeadingTrimForSubtree() is but subtle. > > Maybe a stack helper (LeadingTrimmer!) could make this bit less intrusive. yeah, good point!
zalan
Comment 5 2022-12-07 11:01:00 PST
Created attachment 463925 [details] [fast-cq]Patch
zalan
Comment 6 2022-12-07 16:45:25 PST
Created attachment 463929 [details] [fast-cq]Patch
EWS
Comment 7 2022-12-07 17:23:48 PST
Committed 257526@main (be3537314eb4): <https://commits.webkit.org/257526@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463929 [details].
Radar WebKit Bug Importer
Comment 8 2022-12-07 17:24:17 PST
Note You need to log in before you can comment on or make changes to this bug.