[webkit-changes] [WebKit/WebKit] 0b2a81: [IFC][line-clamp][Debug] Fix fast/overflow/line-cl...
Alan Baradlay
noreply at github.com
Sun Dec 11 20:39:12 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0b2a814592abd66fdc6c5b8f221e1b0440865ed1
https://github.com/WebKit/WebKit/commit/0b2a814592abd66fdc6c5b8f221e1b0440865ed1
Author: Alan Baradlay <zalan at apple.com>
Date: 2022-12-11 (Sun, 11 Dec 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
Log Message:
-----------
[IFC][line-clamp][Debug] Fix fast/overflow/line-clamp-crash.html
https://bugs.webkit.org/show_bug.cgi?id=249110
Reviewed by Cameron McCormack.
Do not try to truncate the line when the inline level boxes produce no content even
if line-clamp value applies.
e.g.
<div line-clamp: 1>
<div>
<span><span><span> </span></span></span>
</div>
<div>
This line should be truncated.
</div>
</div>
(first IFC produces zero line with content)
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::close):
Canonical link: https://commits.webkit.org/257712@main
More information about the webkit-changes
mailing list