RESOLVED FIXED 218767
[LFC][IFC] Add support for replaced element baseline
https://bugs.webkit.org/show_bug.cgi?id=218767
Summary [LFC][IFC] Add support for replaced element baseline
zalan
Reported 2020-11-10 12:20:00 PST
as replaced elements can have set baselines
Attachments
Patch (4.41 KB, patch)
2020-11-10 12:21 PST, zalan
no flags
zalan
Comment 1 2020-11-10 12:21:31 PST
Antti Koivisto
Comment 2 2020-11-10 12:35:11 PST
Comment on attachment 413722 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413722&action=review > Source/WebCore/layout/inlineformatting/InlineFormattingContextGeometry.cpp:265 > + } else if (layoutBox.isReplacedBox()) > + ascent = downcast<ReplacedBox>(layoutBox).baseline().valueOr(marginBoxHeight); Should this have a comment that this is an extensions, not something found from spec?
zalan
Comment 3 2020-11-10 13:09:01 PST
(In reply to Antti Koivisto from comment #2) > Comment on attachment 413722 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=413722&action=review > > > Source/WebCore/layout/inlineformatting/InlineFormattingContextGeometry.cpp:265 > > + } else if (layoutBox.isReplacedBox()) > > + ascent = downcast<ReplacedBox>(layoutBox).baseline().valueOr(marginBoxHeight); > > Should this have a comment that this is an extensions, not something found > from spec? The spec talks about atomic inline box in general in the context of baseline set, so I assume that applies to replaced inline boxes as well.
EWS
Comment 4 2020-11-10 13:28:01 PST
Committed r269645: <https://trac.webkit.org/changeset/269645> All reviewed patches have been landed. Closing bug and clearing flags on attachment 413722 [details].
Radar WebKit Bug Importer
Comment 5 2020-11-10 13:29:15 PST
Note You need to log in before you can comment on or make changes to this bug.