| Index: third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
|
| index 933edec3d9fef499669e2fcce3d2c10735239b98..b34fd7280056c045dc9896a6ea0217f222335655 100644
|
| --- a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
|
| @@ -11,6 +11,7 @@
|
| #include "core/paint/PaintLayer.h"
|
| #include "platform/graphics/ContentLayerDelegate.h"
|
| #include "public/platform/WebRect.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
| #include "web/WebLocalFrameImpl.h"
|
| #include "web/WebViewImpl.h"
|
| #include "web/tests/sim/SimDisplayItemList.h"
|
| @@ -24,8 +25,9 @@ static void paintLayers(PaintLayer& layer, SimDisplayItemList& displayList)
|
| CompositedLayerMapping* mapping = layer.compositedLayerMapping();
|
| GraphicsLayer* graphicsLayer = mapping->mainGraphicsLayer();
|
| if (graphicsLayer->hasTrackedPaintInvalidations()) {
|
| + gfx::Rect recordingViewport(0, 0, layer.size().width(), layer.size().height());
|
| ContentLayerDelegate* delegate = graphicsLayer->contentLayerDelegateForTesting();
|
| - delegate->paintContents(&displayList, WebRect(0, 0, layer.size().width(), layer.size().height()));
|
| + delegate->paintContents(&displayList, &recordingViewport);
|
| graphicsLayer->resetTrackedPaintInvalidations();
|
| }
|
| }
|
|
|