[webkit-changes] [WebKit/WebKit] 6c8a22: [IFC][Ruby] Offset inter-character annotation box ...

Alan Baradlay noreply at github.com
Sat Oct 28 12:17:07 PDT 2023


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

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

  Log Message:
  -----------
  [IFC][Ruby] Offset inter-character annotation box with the ruby base margin box top
https://bugs.webkit.org/show_bug.cgi?id=263828

Reviewed by Antti Koivisto.

Ruby base margin box may have a vertical offset when root has non-zero border/padding.
Let's take that (content box) offset into account when computing the vertical position for inter-character annotation box
(which is supposed to be relative to the _border_box_ of the IFC root).

* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
(WebCore::Layout::RubyFormattingContext::placeAnnotationBox):

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




More information about the webkit-changes mailing list