Chromium Code Reviews| Index: Source/core/paint/FileUploadControlPainter.cpp |
| diff --git a/Source/core/paint/FileUploadControlPainter.cpp b/Source/core/paint/FileUploadControlPainter.cpp |
| index 479bd661aedc2a332dba4c9efb789d84c03ce006..93f03317f93582592c8b1abb76aacef18f51bd40 100644 |
| --- a/Source/core/paint/FileUploadControlPainter.cpp |
| +++ b/Source/core/paint/FileUploadControlPainter.cpp |
| @@ -67,7 +67,7 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay |
| textWidth, m_layoutFileUploadControl.style()->fontMetrics().height()); |
| // Draw the filename. |
| - LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutFileUploadControl, paintInfo.phase, textRunPaintInfo.bounds); |
| + LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutFileUploadControl, paintInfo.phase, LayoutRect(enclosingIntRect(textRunPaintInfo.bounds))); |
|
jbroman
2015/08/26 19:06:43
ditto
chrishtr
2015/08/26 20:53:51
Reverted.
|
| paintInfo.context->setFillColor(m_layoutFileUploadControl.resolveColor(CSSPropertyColor)); |
| paintInfo.context->drawBidiText(font, textRunPaintInfo, FloatPoint(roundToInt(textX), roundToInt(textY))); |
| } |