Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 9f3eab3. rdar://122501121
[IFC][Ruby] Some characters are overlapped (Hiragana + Kanji character with Ruby) https://bugs.webkit.org/show_bug.cgi?id=269064 <rdar://122501121> Reviewed by Antti Koivisto. 1. When annotation is wide than the base content, we slightly pull adjacent content under the annotation on both sides 2. Pulling the "after" content (boxes to the right of the ruby) means shifting all the runs as one monolithic content. However in case of justified alignment, as we are supposed to keep the spacing intact, we only adjust the adjacent run by moving and expanding it (expanding ensure the rest of the "after" content stays stationary). * LayoutTests/fast/ruby/ruby-overhang-with-justified-content-overlap-expected.html: Added. * LayoutTests/fast/ruby/ruby-overhang-with-justified-content-overlap.html: Added. * Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp: (WebCore::Layout::InlineDisplayContentBuilder::applyRubyOverhang): Canonical link: https://commits.webkit.org/274373@main Identifier: 272448.550@safari-7618.1.15.10-branch
- Loading branch information