Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 15030f5e89a8bf437e765e936c0526580b042a27 https://github.com/WebKit/WebKit/commit/15030f5e89a8bf437e765e936c0526580b042a27 Author: Alan Baradlay <za...@apple.com> Date: 2023-01-07 (Sat, 07 Jan 2023)
Changed paths: M Source/WebCore/layout/formattingContexts/inline/InlineFormattingQuirks.cpp M Source/WebCore/layout/formattingContexts/inline/InlineFormattingQuirks.h M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp Log Message: ----------- [IFC][initial letter] Initial letter float box uses adjusted initial vertical position https://bugs.webkit.org/show_bug.cgi?id=250254 Reviewed by Antti Koivisto. -webkit-initial-letter is a float based implementation where the initial-letter box behaves as a float. In this patch we adjust the static position of this float box (this is the vertical position the float can't get higher) so that it stays in flush with the rest of the line's capHeight metric. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingQuirks.cpp: (WebCore::Layout::InlineFormattingQuirks::initialLetterAlignmentOffset const): * Source/WebCore/layout/formattingContexts/inline/InlineFormattingQuirks.h: * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::tryPlacingFloatBox): Canonical link: https://commits.webkit.org/258618@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes