Index: Source/core/paint/DrawingRecorderTest.cpp |
diff --git a/Source/core/paint/DrawingRecorderTest.cpp b/Source/core/paint/DrawingRecorderTest.cpp |
index 8f25f5db9e2a06cfaa9a50afe35782bacfb96f6d..b284f1f967fbdc0a0f45f8cbe08a072ae076339c 100644 |
--- a/Source/core/paint/DrawingRecorderTest.cpp |
+++ b/Source/core/paint/DrawingRecorderTest.cpp |
@@ -41,12 +41,14 @@ private: |
void drawNothing(GraphicsContext* context, RenderView* renderer, PaintPhase phase, const FloatRect& bound) |
{ |
- RenderDrawingRecorder drawingRecorder(context, renderer, phase, bound); |
+ RenderDrawingRecorder drawingRecorder(context, *renderer, phase, bound); |
} |
void drawRect(GraphicsContext* context, RenderView* 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); |
} |