| Index: Source/core/paint/FileUploadControlPainter.cpp
|
| diff --git a/Source/core/paint/FileUploadControlPainter.cpp b/Source/core/paint/FileUploadControlPainter.cpp
|
| index 34b3031de96de022954b2cb7d4e69470b34ba2d0..72308dd76a1fe7abb8907689cbb7872c40c2f8bb 100644
|
| --- a/Source/core/paint/FileUploadControlPainter.cpp
|
| +++ b/Source/core/paint/FileUploadControlPainter.cpp
|
| @@ -22,14 +22,14 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay
|
| return;
|
|
|
| // Push a clip.
|
| - OwnPtr<ClipRecorder> clipRecorder;
|
| + ClipRecorder clipRecorder(*paintInfo.context, m_layoutFileUploadControl, DisplayItem::ClipFileUploadControlRect);
|
| if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds) {
|
| IntRect clipRect = enclosingIntRect(LayoutRect(
|
| LayoutPoint(paintOffset.x() + m_layoutFileUploadControl.borderLeft(), paintOffset.y() + m_layoutFileUploadControl.borderTop()),
|
| m_layoutFileUploadControl.size() + LayoutSize(0, -m_layoutFileUploadControl.borderWidth() + buttonShadowHeight)));
|
| if (clipRect.isEmpty())
|
| return;
|
| - clipRecorder = adoptPtr(new ClipRecorder(*paintInfo.context, m_layoutFileUploadControl, DisplayItem::ClipFileUploadControlRect, LayoutRect(clipRect)));
|
| + clipRecorder.begin(LayoutRect(clipRect));
|
| }
|
|
|
| if (paintInfo.phase == PaintPhaseForeground) {
|
|
|