Index: Source/platform/fonts/Font.cpp |
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp |
index 03bcf14f77afc0846a860bcdd7bb81673a4dbf3d..e1b8b454162f48c26a808eed5c0e6f44a150acb1 100644 |
--- a/Source/platform/fonts/Font.cpp |
+++ b/Source/platform/fonts/Font.cpp |
@@ -166,15 +166,15 @@ float Font::width(const TextRun& run, HashSet<const SimpleFontData*>* fallbackFo |
return result; |
} |
-float Font::width(const TextRun& run, int& charsConsumed, String& glyphName) const |
+float Font::width(const TextRun& run, int& charsConsumed, Glyph& glyphId) const |
{ |
#if ENABLE(SVG_FONTS) |
if (TextRun::RenderingContext* renderingContext = run.renderingContext()) |
- return renderingContext->floatWidthUsingSVGFont(*this, run, charsConsumed, glyphName); |
+ return renderingContext->floatWidthUsingSVGFont(*this, run, charsConsumed, glyphId); |
#endif |
charsConsumed = run.length(); |
- glyphName = ""; |
+ glyphId = 0; |
return width(run); |
} |