[webkit-changes] [WebKit/WebKit] 8f722d: [IFC][Ruby] Annotation content stretches line box ...

Alan Baradlay noreply at github.com
Tue Sep 19 14:57:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8f722d36d59725a7a9399efc6f2b7f17a9c0d15d
      https://github.com/WebKit/WebKit/commit/8f722d36d59725a7a9399efc6f2b7f17a9c0d15d
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

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

  Log Message:
  -----------
  [IFC][Ruby] Annotation content stretches line box when needed
https://bugs.webkit.org/show_bug.cgi?id=261753

Reviewed by Antti Koivisto.

Adjust the layout bounds of the ruby base's inline box to ensure annotation content is always enclosed.

* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::setLayoutBoundsForInlineBox const):
* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
(WebCore::Layout::RubyFormattingContext::annotationExtent):
* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.h:

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




More information about the webkit-changes mailing list