Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7953222aee54d185c40ff8e7c7a38efff40ca55f
https://github.com/WebKit/WebKit/commit/7953222aee54d185c40ff8e7c7a38efff40ca55f
Author: Alan Baradlay <[email protected]>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
A
LayoutTests/fast/inline/overflowing-inline-end-decoration-with-break-all-expected.html
A
LayoutTests/fast/inline/overflowing-inline-end-decoration-with-break-all.html
M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp
Log Message:
-----------
Misses word-break opportunity and overflows
https://bugs.webkit.org/show_bug.cgi?id=291495
<rdar://problem/149651067>
Reviewed by Antti Koivisto.
We should considering breaking position _inside_ the text content when followed
by (unbreakable) inline box decoration.
*
LayoutTests/fast/inline/overflowing-inline-end-decoration-with-break-all-expected.html:
Added.
*
LayoutTests/fast/inline/overflowing-inline-end-decoration-with-break-all.html:
Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::lastValidBreakingPosition): Add support for cases where the
next run is not
a text run but an inline box (start/end).
e.g. [inline text item][inline box end] where we should find breaking position
inside the text and not just return the boundary position between the text and
the inline box end (which is not a valid breaking position anyway).
Canonical link: https://commits.webkit.org/294132@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes