[webkit-changes] [WebKit/WebKit] cdfeff: [IFC] Add isFirstFormattedLine to LineBuilder::Lin...

Alan Baradlay noreply at github.com
Sat Dec 3 17:17:22 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cdfeff7280d6f7362530ed7635598d412d49da6c
      https://github.com/WebKit/WebKit/commit/cdfeff7280d6f7362530ed7635598d412d49da6c
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2022-12-03 (Sat, 03 Dec 2022)

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

  Log Message:
  -----------
  [IFC] Add isFirstFormattedLine to LineBuilder::LineContent
https://bugs.webkit.org/show_bug.cgi?id=248686

Reviewed by Antti Koivisto.

This is in preparation for support leading-trim on block level where line box sizing needs to know
whether the current line is the first formatted line (not enabled yet).

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::createDisplayContentForLine):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::LineBoxBuilder):
(WebCore::Layout::LineBoxBuilder::build):
(WebCore::Layout::LineBoxBuilder::computedAsentAndDescentForInlineBox const):
(WebCore::Layout::LineBoxBuilder::constructInlineLevelBoxes):
(WebCore::Layout::LineBoxBuilder::adjustInlineBoxHeightsForLineBoxContainIfApplicable):
(WebCore::Layout::LineBoxBuilder::adjustIdeographicBaselineIfApplicable):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.h:
(WebCore::Layout::LineBoxBuilder::isFirstLine const):
(WebCore::Layout::LineBoxBuilder::isLastLine const):
(WebCore::Layout::LineBoxBuilder::lineContent const):
(WebCore::Layout::LineBoxBuilder::rootStyle const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::layoutInlineContent):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:

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




More information about the webkit-changes mailing list