Index: Source/core/rendering/RenderText.cpp |
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp |
index 156a2944343ff133c32f58ba96fbf263de87c2ab..8c17bf0417c628c303d91fecdba9a9099bb571a5 100644 |
--- a/Source/core/rendering/RenderText.cpp |
+++ b/Source/core/rendering/RenderText.cpp |
@@ -1477,7 +1477,7 @@ float RenderText::width(unsigned from, unsigned len, float xPos, TextDirection t |
if (from + len > textLength()) |
len = textLength() - from; |
- return width(from, len, style(firstLine)->font(), xPos, textDirection, fallbackFonts, glyphOverflow); |
+ return width(from, len, styleOrFirstLineStyle(firstLine)->font(), xPos, textDirection, fallbackFonts, glyphOverflow); |
} |
float RenderText::width(unsigned from, unsigned len, const Font& f, float xPos, TextDirection textDirection, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow* glyphOverflow) const |