RESOLVED FIXED 247081
Top scoreboard of espn.com cutting off team names
https://bugs.webkit.org/show_bug.cgi?id=247081
Summary Top scoreboard of espn.com cutting off team names
zalan
Reported 2022-10-26 11:54:26 PDT
Attachments
Patch (1.65 KB, patch)
2022-10-26 11:55 PDT, zalan
no flags
Patch (7.32 KB, patch)
2022-10-26 12:12 PDT, zalan
no flags
Patch (8.63 KB, patch)
2022-10-26 14:26 PDT, zalan
no flags
zalan
Comment 1 2022-10-26 11:55:56 PDT
Antti Koivisto
Comment 2 2022-10-26 12:01:15 PDT
Comment on attachment 463261 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463261&action=review > Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:585 > - if (!lineHasOverflow || isInIntrinsicWidthMode) > + auto lineHasOverflowAfterTrimmingTrailingContent = horizontalAvailableSpace < m_line.contentLogicalWidth(); > + if (!lineHasOverflowAfterTrimmingTrailingContent || isInIntrinsicWidthMode) Maybe this function should be refactored a bit, for example split into before-trimming and after-trimming parts? It is kinda confusing there is a lineHasOverflow variable in the scope that has incorrect value.
zalan
Comment 3 2022-10-26 12:04:05 PDT
(In reply to Antti Koivisto from comment #2) > Comment on attachment 463261 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=463261&action=review > > > Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:585 > > - if (!lineHasOverflow || isInIntrinsicWidthMode) > > + auto lineHasOverflowAfterTrimmingTrailingContent = horizontalAvailableSpace < m_line.contentLogicalWidth(); > > + if (!lineHasOverflowAfterTrimmingTrailingContent || isInIntrinsicWidthMode) > > Maybe this function should be refactored a bit, for example split into > before-trimming and after-trimming parts? It is kinda confusing there is a > lineHasOverflow variable in the scope that has incorrect value. yeah I agree, it should be scoped.
zalan
Comment 4 2022-10-26 12:12:24 PDT
zalan
Comment 5 2022-10-26 14:26:34 PDT
EWS
Comment 6 2022-10-26 19:58:48 PDT
Committed 256045@main (fc54f33c5cd4): <https://commits.webkit.org/256045@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463264 [details].
Radar WebKit Bug Importer
Comment 7 2022-10-26 19:59:19 PDT
zalan
Comment 8 2022-12-07 20:01:05 PST
*** Bug 248877 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.