[webkit-changes] [WebKit/WebKit] 17367c: WPT Test (css/css-text/white-space/text-wrap-balan...
Alan Baradlay
noreply at github.com
Thu May 25 12:04:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 17367cc8c3e05588fce485968664f479ae778a96
https://github.com/WebKit/WebKit/commit/17367cc8c3e05588fce485968664f479ae778a96
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp
Log Message:
-----------
WPT Test (css/css-text/white-space/text-wrap-balance-line-clamp-001.html) triggers assertion failure
https://bugs.webkit.org/show_bug.cgi?id=257154
Reviewed by Antti Koivisto.
This patch fixes an incorrect ASSERT expectation in truncateOverflowingDisplayBoxes.
In case of block direction overflow handling (e.g. line-clamp) the content on the line does not necessarily overflow in the inline direction.
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp:
(WebCore::Layout::truncateOverflowingDisplayBoxes):
(WebCore::Layout::InlineDisplayLineBuilder::trailingEllipsisVisualRectAfterTruncation):
Canonical link: https://commits.webkit.org/264532@main
More information about the webkit-changes
mailing list