Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 06f1371. rdar://122586549
[IFC][Ruby] Text are clipped at the bottom on some pages with ruby in Books https://bugs.webkit.org/show_bug.cgi?id=269079 <rdar://122586549> Reviewed by Antti Koivisto. Take ruby width adjustment (annotation box is wider than base content) into account when non-trivial line breaking requires us to rebuild the current line. * LayoutTests/fast/ruby/ruby-with-unbreakable-characters-incorrect-width-expected.html: Added. * LayoutTests/fast/ruby/ruby-with-unbreakable-characters-incorrect-width.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::rebuildLineWithInlineContent): This is the exact copy of what we do in candidateContentForLine when collecting the content for current line. Canonical link: https://commits.webkit.org/274387@main Identifier: 272448.543@safari-7618.1.15.10-branch
- Loading branch information