Index: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
index 17f7d985006a5fcf8151526f6d3b37f7c032a2fb..07db3667661b4d1fd1624d1f462031880f512421 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
@@ -41,6 +41,7 @@ |
#include "public/platform/WebRect.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkPicture.h" |
+#include "ui/gfx/geometry/rect.h" |
namespace blink { |
@@ -81,6 +82,12 @@ static void paintArtifactToWebDisplayItemList(WebDisplayItemList* list, const Pa |
artifact.appendToWebDisplayItemList(list); |
} |
+gfx::Rect ContentLayerDelegate::paintableRegion() |
+{ |
+ IntRect interestRect = m_painter->interestRect(); |
+ return gfx::Rect(interestRect.x(), interestRect.y(), interestRect.width(), interestRect.height()); |
+} |
+ |
void ContentLayerDelegate::paintContents( |
WebDisplayItemList* webDisplayItemList, const WebRect& clip, |
WebContentLayerClient::PaintingControlSetting paintingControl) |