Ruby base ending in tatechuyoko forces a line break before the tatechuyoko
[WebKit-https.git] / Source / WebCore / rendering / RenderCombineText.cpp
index e3d38f6..bdd1cc9 100644 (file)
@@ -61,7 +61,7 @@ void RenderCombineText::setRenderedText(const String& text)
 float RenderCombineText::width(unsigned from, unsigned length, const FontCascade& font, float xPosition, HashSet<const Font*>* fallbackFonts, GlyphOverflow* glyphOverflow) const
 {
     if (m_isCombined)
-        return font.size();
+        return !length ? 0 : font.size();
 
     return RenderText::width(from, length, font, xPosition, fallbackFonts, glyphOverflow);
 }