[webkit-changes] [WebKit/WebKit] 1105db: [IFC][initial letter] Initial letter line box sizi...

Alan Baradlay noreply at github.com
Sat Jan 7 09:30:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1105db4ef4beff2c87fbe05387c58123ee89ff97
      https://github.com/WebKit/WebKit/commit/1105db4ef4beff2c87fbe05387c58123ee89ff97
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-01-07 (Sat, 07 Jan 2023)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp

  Log Message:
  -----------
  [IFC][initial letter] Initial letter line box sizing is based on capHeight
https://bugs.webkit.org/show_bug.cgi?id=250253

Reviewed by Antti Koivisto.

This patch is in preparation for supporting -webkit-initial-letter.
The inline letter's line box (it has its own container too) is based on the cap height of the primary font (alphabetic baseline only at this point).

* Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h:
(WebCore::Layout::InlineLevelBox::lineBoxContain const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::adjustInlineBoxHeightsForLineBoxContainIfApplicable):

Canonical link: https://commits.webkit.org/258617@main




More information about the webkit-changes mailing list