Index: third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp b/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp |
index e7fa73208aca5c3273f23f98d9dab1b33eb890bc..2c113ab259cf5d27517c7ff3cb1268226bd87c9f 100644 |
--- a/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp |
@@ -62,8 +62,8 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay |
textY = LayoutUnit(m_layoutFileUploadControl.baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine)); |
TextRunPaintInfo textRunPaintInfo(textRun); |
// FIXME: Shouldn't these offsets be rounded? crbug.com/350474 |
- textRunPaintInfo.bounds = FloatRect(textX.toFloat(), textY.toFloat() - m_layoutFileUploadControl.style()->fontMetrics().ascent(), |
- textWidth, m_layoutFileUploadControl.style()->fontMetrics().height()); |
+ textRunPaintInfo.bounds = FloatRect(textX.toFloat(), textY.toFloat() - m_layoutFileUploadControl.style()->getFontMetrics().ascent(), |
+ textWidth, m_layoutFileUploadControl.style()->getFontMetrics().height()); |
// Draw the filename. |
LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutFileUploadControl, paintInfo.phase, textRunPaintInfo.bounds); |