[webkit-changes] [WebKit/WebKit] 295f40: [IFC][Ruby] Do not break between ruby and special ...

Alan Baradlay noreply at github.com
Tue Dec 5 07:59:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 295f40ef1882b3cb07b65777c128c1c228201b15
      https://github.com/WebKit/WebKit/commit/295f40ef1882b3cb07b65777c128c1c228201b15
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

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

  Log Message:
  -----------
  [IFC][Ruby] Do not break between ruby and special punctuation characters
https://bugs.webkit.org/show_bug.cgi?id=265831

Reviewed by Antti Koivisto.

Copy rules from RenderRubyText::canBreakBefore.

* LayoutTests/fast/ruby/ruby-punctuation-avoid-breaking.html:
* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
(WebCore::Layout::canBreakAtCharacter):
(WebCore::Layout::RubyFormattingContext::isAtSoftWrapOpportunity):

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




More information about the webkit-changes mailing list