[webkit-changes] [WebKit/WebKit] a344be: [IFC] Trailing inline box width should include han...
Alan Baradlay
noreply at github.com
Sun Dec 31 15:43:52 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a344be28fbbdfe88419ea7007d2768c33d5dce75
https://github.com/WebKit/WebKit/commit/a344be28fbbdfe88419ea7007d2768c33d5dce75
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-12-31 (Sun, 31 Dec 2023)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp
Log Message:
-----------
[IFC] Trailing inline box width should include hanging content
https://bugs.webkit.org/show_bug.cgi?id=266945
Reviewed by Antti Koivisto.
Let's include trailing hanging content when computing the logical width of the parent (non-root)inline box.
e.g.
<div style="white-space: pre-wrap">this line end in a hanging whitespace<span>
</span>some more text</div>
- merge isInlineBoxStart and isLineSpanningInlineBoxStart handling
- add initialLogicalWidth lambda and take hanging content width into account
- move more common content (text, line break) handling to the top of this loop
* LayoutTests/TestExpectations:
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::constructInlineLevelBoxes):
Canonical link: https://commits.webkit.org/272545@main
More information about the webkit-changes
mailing list