Index: Source/core/rendering/RenderRubyRun.cpp |
diff --git a/Source/core/rendering/RenderRubyRun.cpp b/Source/core/rendering/RenderRubyRun.cpp |
index 4ba77cabb1e042f14adba7bbaa0d5f4e9797c831..e41c8e1bf12ed3168a7e751624714c227855fb92 100644 |
--- a/Source/core/rendering/RenderRubyRun.cpp |
+++ b/Source/core/rendering/RenderRubyRun.cpp |
@@ -291,16 +291,16 @@ void RenderRubyRun::getOverhang(bool firstLine, RenderObject* startRenderer, Ren |
startOverhang = style()->isLeftToRightDirection() ? logicalLeftOverhang : logicalRightOverhang; |
endOverhang = style()->isLeftToRightDirection() ? logicalRightOverhang : logicalLeftOverhang; |
- if (!startRenderer || !startRenderer->isText() || startRenderer->style(firstLine)->fontSize() > rubyBase->style(firstLine)->fontSize()) |
+ if (!startRenderer || !startRenderer->isText() || startRenderer->styleOrFirstLineStyle(firstLine)->fontSize() > rubyBase->styleOrFirstLineStyle(firstLine)->fontSize()) |
startOverhang = 0; |
- if (!endRenderer || !endRenderer->isText() || endRenderer->style(firstLine)->fontSize() > rubyBase->style(firstLine)->fontSize()) |
+ if (!endRenderer || !endRenderer->isText() || endRenderer->styleOrFirstLineStyle(firstLine)->fontSize() > rubyBase->styleOrFirstLineStyle(firstLine)->fontSize()) |
endOverhang = 0; |
// We overhang a ruby only if the neighboring render object is a text. |
// We can overhang the ruby by no more than half the width of the neighboring text |
// and no more than half the font size. |
- int halfWidthOfFontSize = rubyText->style(firstLine)->fontSize() / 2; |
+ int halfWidthOfFontSize = rubyText->styleOrFirstLineStyle(firstLine)->fontSize() / 2; |
if (startOverhang) |
startOverhang = std::min<int>(startOverhang, std::min<int>(toRenderText(startRenderer)->minLogicalWidth(), halfWidthOfFontSize)); |
if (endOverhang) |