Skip to content

Commit

Permalink
[IFC][Ruby] Not every ruby base comes with annotation
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264194

Reviewed by Antti Koivisto.

* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::appendInlineBoxDisplayBox):

Canonical link: https://commits.webkit.org/270242@main
  • Loading branch information
alanbaradlay committed Nov 5, 2023
1 parent 77d7ad7 commit a2bec72
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ void InlineDisplayContentBuilder::appendInlineBoxDisplayBox(const Line::Run& lin
, isFirstLastBox(inlineBox)
});

if (layoutBox.isRubyBase()) {
if (isInterlinearAnnotationBox(layoutBox.associatedRubyAnnotationBox()))
if (auto* annotationBox = layoutBox.associatedRubyAnnotationBox()) {
ASSERT(layoutBox.isRubyBase());
if (isInterlinearAnnotationBox(annotationBox))
m_interlinearRubyColumnRangeList.append({ boxes.size() - 1, boxes.size() });
appendRubyAnnotationBox(layoutBox, boxes);
}
Expand Down

0 comments on commit a2bec72

Please sign in to comment.