Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698