Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e22d30daa17dd7f641022161136e3341a6560ca3
https://github.com/WebKit/WebKit/commit/e22d30daa17dd7f641022161136e3341a6560ca3
Author: Yulun Wu <[email protected]>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-long-span-crash-expected.txt
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-long-span-crash.html
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-style-element-crash-expected.txt
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-style-element-crash.html
M
Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp
Log Message:
-----------
[text-wrap][pretty] Fix index type mismatch in layoutSingleLineForPretty().
<rdar://162028337>
Reviewed by Alan Baradlay.
This PR fixes a crash caused by passing a break opportunity index instead of an
inline item index to
layoutSingleLineForPretty(). This fix looks up the inline item index from the
break opportunity index to
pass in the correct arguments to layoutSingleLineForPretty().
Combined changes:
Test: fast/css3-text/css3-text-wrap/text-wrap-pretty-style-element-crash.html
*
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-style-element-crash-expected.txt:
Added.
*
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-style-element-crash.html:
Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp:
(WebCore::Layout::InlineContentConstrainer::prettifyRange):
Originally-landed-as: 301765.101@safari-7623-branch (86ed16e14826).
rdar://166338560
Canonical link: https://commits.webkit.org/304506@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications