Index: third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.cpp b/third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.cpp |
index 1991d67f35f280939ad58f34539e53f92fbe35f2..3b142e0ecc6e385ba5c6028f8bd7f07d95b7fda5 100644 |
--- a/third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.cpp |
@@ -59,7 +59,7 @@ void EmbeddedObjectPainter::paintReplaced(const PaintInfo& paintInfo, const Layo |
if (!font.primaryFont()) |
return; |
TextRun textRun(m_layoutEmbeddedObject.unavailablePluginReplacementText()); |
- FloatSize textGeometry(font.width(textRun), font.fontMetrics().height()); |
+ FloatSize textGeometry(font.width(textRun), font.getFontMetrics().height()); |
LayoutRect backgroundRect(0, 0, textGeometry.width() + 2 * replacementTextRoundedRectLeftRightTextMargin, replacementTextRoundedRectHeight); |
backgroundRect.move(contentRect.center() - backgroundRect.center()); |
@@ -75,7 +75,7 @@ void EmbeddedObjectPainter::paintReplaced(const PaintInfo& paintInfo, const Layo |
TextRunPaintInfo runInfo(textRun); |
runInfo.bounds = floatBackgroundRect; |
context.setFillColor(scaleAlpha(Color::black, replacementTextTextOpacity)); |
- context.drawBidiText(font, runInfo, textRect.location() + FloatSize(0, font.fontMetrics().ascent())); |
+ context.drawBidiText(font, runInfo, textRect.location() + FloatSize(0, font.getFontMetrics().ascent())); |
} |
} // namespace blink |