[webkit-changes] [WebKit/WebKit] d477d7: [IFC][Ruby] Fix centering when ruby base/annotatio...

Alan Baradlay noreply at github.com
Fri Oct 6 05:16:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d477d76409f26ef0e7d3a7ec6e5e4cb35760d13b
      https://github.com/WebKit/WebKit/commit/d477d76409f26ef0e7d3a7ec6e5e4cb35760d13b
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
    M Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp

  Log Message:
  -----------
  [IFC][Ruby] Fix centering when ruby base/annotation is nested inside inline box
https://bugs.webkit.org/show_bug.cgi?id=262738

Reviewed by Antti Koivisto.

Let's not assume base/annotation has only one run when there's zero expansion opportunity.
(e.g. <ruby><span></span><span>base content</span><rt>annotation</rt></ruby)

* LayoutTests/fast/ruby/rubyDOM-insert-text2.html:
* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
(WebCore::Layout::RubyFormattingContext::applyRubyAlign):

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




More information about the webkit-changes mailing list