diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_ruby.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/layout_ruby.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_ruby.cc b/chromium/third_party/blink/renderer/core/layout/layout_ruby.cc index 3e653de8bab..61ea140526d 100644 --- a/chromium/third_party/blink/renderer/core/layout/layout_ruby.cc +++ b/chromium/third_party/blink/renderer/core/layout/layout_ruby.cc @@ -94,7 +94,7 @@ void LayoutRubyAsInline::AddChild(LayoutObject* child, // (The LayoutRubyRun object will handle the details) LayoutRubyRun* last_run = LastRubyRun(this); if (!last_run || last_run->HasRubyText()) { - last_run = LayoutRubyRun::StaticCreateRubyRun(this); + last_run = LayoutRubyRun::StaticCreateRubyRun(this, *ContainingBlock()); LayoutInline::AddChild(last_run, before_child); } last_run->AddChild(child); @@ -159,7 +159,7 @@ void LayoutRubyAsBlock::AddChild(LayoutObject* child, // (The LayoutRubyRun object will handle the details) LayoutRubyRun* last_run = LastRubyRun(this); if (!last_run || last_run->HasRubyText()) { - last_run = LayoutRubyRun::StaticCreateRubyRun(this); + last_run = LayoutRubyRun::StaticCreateRubyRun(this, *this); LayoutBlockFlow::AddChild(last_run, before_child); } last_run->AddChild(child); |