| Index: Source/core/paint/ViewDisplayListTest.cpp
|
| diff --git a/Source/core/paint/ViewDisplayListTest.cpp b/Source/core/paint/ViewDisplayListTest.cpp
|
| index badae7c95cde2588fad9e3c0985c814b8cd685bc..2013dfd499eee3a419c69022ca0a4b2d63dd6d2c 100644
|
| --- a/Source/core/paint/ViewDisplayListTest.cpp
|
| +++ b/Source/core/paint/ViewDisplayListTest.cpp
|
| @@ -59,7 +59,9 @@ public:
|
|
|
| void drawRect(GraphicsContext* context, RenderObject* renderer, PaintPhase phase, const FloatRect& bound)
|
| {
|
| - RenderDrawingRecorder drawingRecorder(context, renderer, phase, bound);
|
| + RenderDrawingRecorder drawingRecorder(context, *renderer, phase, bound);
|
| + if (drawingRecorder.canUseCachedDrawing())
|
| + return;
|
| IntRect rect(0, 0, 10, 10);
|
| context->drawRect(rect);
|
| }
|
|
|