[webkit-changes] [WebKit/WebKit] 9ef3ca: [IFC][Ruby] Fix fast/text/ruby-justification-flush...

Alan Baradlay noreply at github.com
Sat Dec 16 04:35:21 PST 2023


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

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineContentAligner.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp

  Log Message:
  -----------
  [IFC][Ruby] Fix fast/text/ruby-justification-flush.html
https://bugs.webkit.org/show_bug.cgi?id=266528

Reviewed by Antti Koivisto.

This patch enables regular inline content with "text-align: justify" and ruby content.
1. Skip ruby content while computing the expansion opportunities for regular inline content
2. Run ruby-align for the base content

* Source/WebCore/layout/formattingContexts/inline/InlineContentAligner.cpp:
(WebCore::Layout::computedExpansions):
(WebCore::Layout::InlineContentAligner::applyTextAlignJustify):
(WebCore::Layout::InlineContentAligner::applyRubyAlignSpaceAround):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::placeInlineAndFloatContent):

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




More information about the webkit-changes mailing list