Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 29076a47162d0c2dee2f141443ad73c3ae094f46
https://github.com/WebKit/WebKit/commit/29076a47162d0c2dee2f141443ad73c3ae094f46
Author: Yulun Wu <[email protected]>
Date: 2025-03-06 (Thu, 06 Mar 2025)
Changed paths:
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-line-break-1-expected.html
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-line-break-1.html
M
Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp
Log Message:
-----------
[text-wrap-style:pretty] Fix edge case where orphan avoidance heuristics
conflict.
https://bugs.webkit.org/show_bug.cgi?id=289116
<rdar://146142653>
Reviewed by Alan Baradlay.
Text-wrap-style:pretty does not correctly prevent orphans in some edge cases.
This is caused by the usage of two separate orphan minimization heuristics
which may interact in undexpected ways.
This PR combines them and simplifies this heuristic to avoid unexpected
edge cases. This PR also fixes an orphan minimization off-by-one error.
Canonical link: https://commits.webkit.org/291750@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