Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 155542db670e41647d4771f60b65be5898be97a8
https://github.com/WebKit/WebKit/commit/155542db670e41647d4771f60b65be5898be97a8
Author: Yulun Wu <[email protected]>
Date: 2025-03-21 (Fri, 21 Mar 2025)
Changed paths:
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-line-break-crash-1-expected.txt
A
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-pretty-line-break-crash-1.html
M
Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.h
Log Message:
-----------
[text-wrap-style:pretty] InlineContentConstrainer should save value of
HorizontalConstraints.
https://bugs.webkit.org/show_bug.cgi?id=290083
rdar://147213249
Reviewed by Alan Baradlay.
This PR prevents a stack-use-after-scope issue caused by
constraints.horizontal(), which
returns by value, going out of scope. This causes issues when computing
paragraph level
constraints which needs to know the horizontal constraints.
This PR acomplishes this by updating the constructor to copy by value instead
of using a
const ref.
Canonical link: https://commits.webkit.org/292480@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