[webkit-changes] [WebKit/WebKit] 12c3e3: [IFC][initial letter] Add support for hugging init...

Alan Baradlay noreply at github.com
Mon Jan 9 07:07:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 12c3e37c918e8ab5344905e7e4894be3cf86596e
      https://github.com/WebKit/WebKit/commit/12c3e37c918e8ab5344905e7e4894be3cf86596e
  Author: Alan Baradlay <zalan at apple.com>
  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




More information about the webkit-changes mailing list