Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: a344be28fbbdfe88419ea7007d2768c33d5dce75 https://github.com/WebKit/WebKit/commit/a344be28fbbdfe88419ea7007d2768c33d5dce75 Author: Alan Baradlay <za...@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes