Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 12c3e37c918e8ab5344905e7e4894be3cf86596e
https://github.com/WebKit/WebKit/commit/12c3e37c918e8ab5344905e7e4894be3cf86596e
Author: Alan Baradlay <[email protected]>
Date: 2023-01-09 (Mon, 09 Jan 2023)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
Log Message:
-----------
[IFC][initial letter] Add support for hugging initial letter when baseline is
ideographic
https://bugs.webkit.org/show_bug.cgi?id=250305
Reviewed by Antti Koivisto.
In case of ideographic baseline, we use proper ascent/descent (not cap height)
to compute
the line box height for initial letter.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::adjustInlineBoxHeightsForLineBoxContainIfApplicable):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::adjustGeometryForInitialLetterIfNeeded): When we
reset line left and introduce clearance the available width should be set back
to the initial value as well.
Canonical link: https://commits.webkit.org/258664@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes