[webkit-changes] [WebKit/WebKit] 110a1d: [IFC][Ruby] Add InlineContentAligner::applyRubyAli...

Alan Baradlay noreply at github.com
Sun Dec 10 13:24:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 110a1df9cdb9e055cb3b913942d024d78c8e65a4
      https://github.com/WebKit/WebKit/commit/110a1df9cdb9e055cb3b913942d024d78c8e65a4
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-12-10 (Sun, 10 Dec 2023)

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

  Log Message:
  -----------
  [IFC][Ruby] Add InlineContentAligner::applyRubyAlignOnAnnotationBox
https://bugs.webkit.org/show_bug.cgi?id=266155

Reviewed by Antti Koivisto.

This ensures text-align: justified/centerd alignment on annotation boxes until after we
switch over to non-inline-block type of annotations.

* Source/WebCore/layout/formattingContexts/inline/InlineContentAligner.cpp:
(WebCore::Layout::InlineContentAligner::applyRubyAlignSpaceAroundOnAnnotationBox):
* Source/WebCore/layout/formattingContexts/inline/InlineContentAligner.h:
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::placeInlineAndFloatContent):

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




More information about the webkit-changes mailing list