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 e94252bf39b3dec21d3d11824f352fe0dfc7058a..9f81da62859f183ac1e10a9d9ba9d81ed0c8bbcf 100644 |
--- a/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp |
@@ -30,10 +30,10 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay |
m_layoutFileUploadControl.size() + LayoutSize(0, -m_layoutFileUploadControl.borderWidth() + buttonShadowHeight))); |
if (clipRect.isEmpty()) |
return; |
- clipRecorder.emplace(*paintInfo.context, m_layoutFileUploadControl, DisplayItem::ClipFileUploadControlRect, LayoutRect(clipRect)); |
+ clipRecorder.emplace(paintInfo.context, m_layoutFileUploadControl, DisplayItem::ClipFileUploadControlRect, LayoutRect(clipRect)); |
} |
- if (paintInfo.phase == PaintPhaseForeground && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutFileUploadControl, paintInfo.phase, paintOffset)) { |
+ if (paintInfo.phase == PaintPhaseForeground && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.context, m_layoutFileUploadControl, paintInfo.phase, paintOffset)) { |
const String& displayedFilename = m_layoutFileUploadControl.fileTextValue(); |
const Font& font = m_layoutFileUploadControl.style()->font(); |
TextRun textRun = constructTextRun(font, displayedFilename, m_layoutFileUploadControl.styleRef(), RespectDirection | RespectDirectionOverride); |
@@ -67,9 +67,9 @@ 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, paintOffset); |
- paintInfo.context->setFillColor(m_layoutFileUploadControl.resolveColor(CSSPropertyColor)); |
- paintInfo.context->drawBidiText(font, textRunPaintInfo, FloatPoint(roundToInt(textX), roundToInt(textY))); |
+ LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutFileUploadControl, paintInfo.phase, textRunPaintInfo.bounds, paintOffset); |
+ paintInfo.context.setFillColor(m_layoutFileUploadControl.resolveColor(CSSPropertyColor)); |
+ paintInfo.context.drawBidiText(font, textRunPaintInfo, FloatPoint(roundToInt(textX), roundToInt(textY))); |
} |
// Paint the children. |