RESOLVED FIXED 244782
[LFC][IFC] Move overflowing float boxes to the next line
https://bugs.webkit.org/show_bug.cgi?id=244782
Summary [LFC][IFC] Move overflowing float boxes to the next line
zalan
Reported 2022-09-04 14:21:47 PDT
ssia
Attachments
Patch (19.68 KB, patch)
2022-09-04 14:34 PDT, zalan
no flags
Patch (19.68 KB, patch)
2022-09-04 15:34 PDT, zalan
no flags
Patch (20.44 KB, patch)
2022-09-04 19:12 PDT, zalan
no flags
Patch (20.78 KB, patch)
2022-09-05 10:04 PDT, zalan
no flags
zalan
Comment 1 2022-09-04 14:34:55 PDT
zalan
Comment 2 2022-09-04 15:34:31 PDT
zalan
Comment 3 2022-09-04 19:12:25 PDT
Antti Koivisto
Comment 4 2022-09-05 09:02:44 PDT
Comment on attachment 462134 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=462134&action=review > Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:937 > + // we can still continue placing inline content on the line, but we have to save all the upcoming floats for subsequent lines. > + auto lineHasSkippedFloats = !m_overflowingFloats.isEmpty(); > + if (lineHasSkippedFloats) > + return false; > + if (lineBoxConstraintApplies == LineBoxConstraintApplies::No) { > + // This is an overflowing float from previous line. Now we need to find a place for it. > + return true; > + } maybe we can assert these conditions are mutually exclusive
zalan
Comment 5 2022-09-05 09:56:58 PDT
(In reply to Antti Koivisto from comment #4) > Comment on attachment 462134 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=462134&action=review > > > Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:937 > > + // we can still continue placing inline content on the line, but we have to save all the upcoming floats for subsequent lines. > > + auto lineHasSkippedFloats = !m_overflowingFloats.isEmpty(); > > + if (lineHasSkippedFloats) > > + return false; > > + if (lineBoxConstraintApplies == LineBoxConstraintApplies::No) { > > + // This is an overflowing float from previous line. Now we need to find a place for it. > > + return true; > > + } > > maybe we can assert these conditions are mutually exclusive good idea!
zalan
Comment 6 2022-09-05 10:04:21 PDT
EWS
Comment 7 2022-09-05 17:19:02 PDT
Committed 254170@main (9f5be0d75394): <https://commits.webkit.org/254170@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 462145 [details].
Radar WebKit Bug Importer
Comment 8 2022-09-05 17:20:19 PDT
Note You need to log in before you can comment on or make changes to this bug.