Index: third_party/WebKit/Source/core/paint/ScrollRecorder.cpp |
diff --git a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp |
index 5d788de3eb3a19f4f97b34374cee44859d296d34..d282245a92c70a4e113e901f879af66053f89b25 100644 |
--- a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp |
+++ b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp |
@@ -10,23 +10,35 @@ |
namespace blink { |
-ScrollRecorder::ScrollRecorder(GraphicsContext& context, |
- const DisplayItemClient& client, |
- DisplayItem::Type type, |
- const IntSize& currentOffset) |
- : m_client(client), m_beginItemType(type), m_context(context) { |
+ScrollRecorder::ScrollRecorder( |
+ GraphicsContext& context, |
+ DisplayItem::Type type, |
+ const IntSize& currentOffset, |
+ const LayoutRect& visualRect, |
+ const WTF::String& debugName, |
+ bool paintedOutputOfObjectHasNoEffectRegardlessOfSize) |
+ : m_client(visualRect, |
+ debugName, |
+ paintedOutputOfObjectHasNoEffectRegardlessOfSize), |
+ m_beginItemType(type), |
+ m_context(context) { |
m_context.getPaintController().createAndAppend<BeginScrollDisplayItem>( |
m_client, m_beginItemType, currentOffset); |
} |
-ScrollRecorder::ScrollRecorder(GraphicsContext& context, |
- const DisplayItemClient& client, |
- PaintPhase phase, |
- const IntSize& currentOffset) |
+ScrollRecorder::ScrollRecorder( |
+ GraphicsContext& context, |
+ PaintPhase phase, |
+ const IntSize& currentOffset, |
+ const LayoutRect& visualRect, |
+ const WTF::String& debugName, |
+ bool paintedOutputOfObjectHasNoEffectRegardlessOfSize) |
: ScrollRecorder(context, |
- client, |
DisplayItem::paintPhaseToScrollType(phase), |
- currentOffset) {} |
+ currentOffset, |
+ visualRect, |
+ debugName, |
+ paintedOutputOfObjectHasNoEffectRegardlessOfSize) {} |
ScrollRecorder::~ScrollRecorder() { |
m_context.getPaintController().endItem<EndScrollDisplayItem>( |