| Index: Source/core/paint/BlockPainter.cpp
|
| diff --git a/Source/core/paint/BlockPainter.cpp b/Source/core/paint/BlockPainter.cpp
|
| index 7bc94c78b5977bf5b2a4045cf9bf85dc39ecbd4b..d3cf35e4255609e9a4d95268aa3c8c6719d060e1 100644
|
| --- a/Source/core/paint/BlockPainter.cpp
|
| +++ b/Source/core/paint/BlockPainter.cpp
|
| @@ -186,11 +186,11 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
|
|
|
| {
|
| PaintInfo scrolledPaintInfo(paintInfo);
|
| - OwnPtr<ScrollRecorder> scrollRecorder;
|
| + ScrollRecorder scrollRecorder(*paintInfo.context, m_layoutBlock, paintPhase);
|
| if (m_layoutBlock.hasOverflowClip()) {
|
| IntSize scrollOffset = m_layoutBlock.scrolledContentOffset();
|
| if (m_layoutBlock.layer()->scrollsOverflow() || !scrollOffset.isZero()) {
|
| - scrollRecorder = adoptPtr(new ScrollRecorder(*paintInfo.context, m_layoutBlock, paintPhase, scrollOffset));
|
| + scrollRecorder.begin(scrollOffset);
|
| scrolledPaintInfo.rect.move(scrollOffset);
|
| }
|
| }
|
|
|