RESOLVED FIXED 206861
[LFC][IFC] Decouple Display::LineBox and Layout::LineBoxBuilder
https://bugs.webkit.org/show_bug.cgi?id=206861
Summary [LFC][IFC] Decouple Display::LineBox and Layout::LineBoxBuilder
zalan
Reported 2020-01-27 21:15:59 PST
ssia
Attachments
Patch (47.74 KB, patch)
2020-01-27 21:18 PST, zalan
no flags
Patch (45.58 KB, patch)
2020-01-28 07:30 PST, zalan
no flags
Patch (45.84 KB, patch)
2020-01-28 08:51 PST, zalan
no flags
Patch (45.85 KB, patch)
2020-01-28 08:51 PST, zalan
no flags
Radar WebKit Bug Importer
Comment 1 2020-01-27 21:16:21 PST
zalan
Comment 2 2020-01-27 21:18:55 PST
zalan
Comment 3 2020-01-28 07:30:04 PST
Antti Koivisto
Comment 4 2020-01-28 08:18:28 PST
Comment on attachment 388991 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388991&action=review > Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp:544 > + inlineContent.lineBoxes.append(Display::LineBox { lineBox.logicalRect(), lineBox.scrollableOverflow(), lineInkOverflow, { baseline.ascent(), baseline.descent() }, lineBox.baselineOffset(), lineBox.isConsideredEmpty() }); Could have some sort of helper for the conversion. Type name Display::LineBox is probably not needed. > Source/WebCore/layout/inlineformatting/InlineLineBox.h:36 > +namespace Layout { > + > +class LineBox { Could this be like LineBoxBuilder or something?
zalan
Comment 5 2020-01-28 08:43:56 PST
(In reply to Antti Koivisto from comment #4) > Comment on attachment 388991 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388991&action=review > > > Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp:544 > > + inlineContent.lineBoxes.append(Display::LineBox { lineBox.logicalRect(), lineBox.scrollableOverflow(), lineInkOverflow, { baseline.ascent(), baseline.descent() }, lineBox.baselineOffset(), lineBox.isConsideredEmpty() }); > > Could have some sort of helper for the conversion. This will eventually turn into a logical -> physical conversion (horizontal flip/vertical transform). I am not yet sure the exact setup for this so I prefer to not do it in this patch. > > Type name Display::LineBox is probably not needed. > > > Source/WebCore/layout/inlineformatting/InlineLineBox.h:36 > > +namespace Layout { > > + > > +class LineBox { > > Could this be like LineBoxBuilder or something? Sure.
zalan
Comment 6 2020-01-28 08:51:04 PST
zalan
Comment 7 2020-01-28 08:51:57 PST
WebKit Commit Bot
Comment 8 2020-01-28 10:26:07 PST
Comment on attachment 389009 [details] Patch Clearing flags on attachment: 389009 Committed r255257: <https://trac.webkit.org/changeset/255257>
WebKit Commit Bot
Comment 9 2020-01-28 10:26:09 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.