| 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 97a0f73e4c6342b03d80f3169406165c821e4bfa..7d429f81133b395ba37d8ddc18c99c224a73eedb 100644
|
| --- a/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp
|
| @@ -45,7 +45,7 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay
|
| return;
|
|
|
| int buttonWidth = (button && button->layoutBox()) ? button->layoutBox()->pixelSnappedWidth() : 0;
|
| - LayoutUnit buttonAndSpacingWidth = buttonWidth + LayoutFileUploadControl::afterButtonSpacing;
|
| + LayoutUnit buttonAndSpacingWidth(buttonWidth + LayoutFileUploadControl::afterButtonSpacing);
|
| float textWidth = font.width(textRun);
|
| LayoutUnit textX;
|
| if (m_layoutFileUploadControl.style()->isLeftToRightDirection())
|
| @@ -59,7 +59,7 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay
|
| if (LayoutButton* buttonLayoutObject = toLayoutButton(button->layoutObject()))
|
| textY = paintOffset.y() + m_layoutFileUploadControl.borderTop() + m_layoutFileUploadControl.paddingTop() + buttonLayoutObject->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine);
|
| else
|
| - textY = m_layoutFileUploadControl.baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine);
|
| + 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(),
|
|
|