Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index 8b43865107c3c03ed3f4aef590f6580215115b9a..4710794a11695ca31fa2a8fcadc5c27d30125f5b 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -92,6 +92,7 @@ |
#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/GraphicsLayer.h" |
#include "platform/graphics/GraphicsLayerDebugInfo.h" |
+#include "platform/graphics/paint/CullRect.h" |
#include "platform/graphics/paint/PaintController.h" |
#include "platform/scheduler/CancellableTaskFactory.h" |
#include "platform/scroll/ScrollAnimator.h" |
@@ -3760,17 +3761,17 @@ ScrollBehavior FrameView::scrollBehaviorStyle() const |
return ScrollBehaviorInstant; |
} |
-void FrameView::paint(GraphicsContext* context, const IntRect& rect) const |
+void FrameView::paint(GraphicsContext* context, const CullRect& cullRect) const |
{ |
- paint(context, GlobalPaintNormalPhase, rect); |
+ paint(context, GlobalPaintNormalPhase, cullRect); |
} |
-void FrameView::paint(GraphicsContext* context, const GlobalPaintFlags globalPaintFlags, const IntRect& rect) const |
+void FrameView::paint(GraphicsContext* context, const GlobalPaintFlags globalPaintFlags, const CullRect& cullRect) const |
{ |
// TODO(skyostil): Remove this early-out in favor of painting cached scrollbars. |
if (shouldThrottleRendering()) |
return; |
- FramePainter(*this).paint(context, globalPaintFlags, rect); |
+ FramePainter(*this).paint(context, globalPaintFlags, cullRect); |
} |
void FrameView::paintContents(GraphicsContext* context, const GlobalPaintFlags globalPaintFlags, const IntRect& damageRect) const |