Index: Source/core/paint/LayerClipRecorderTest.cpp |
diff --git a/Source/core/paint/LayerClipRecorderTest.cpp b/Source/core/paint/LayerClipRecorderTest.cpp |
index cbe1567b182fdcd3bc0df446011db77ae63d8d12..da75862b9ef012f68d403b01e61ba1370780cfc9 100644 |
--- a/Source/core/paint/LayerClipRecorderTest.cpp |
+++ b/Source/core/paint/LayerClipRecorderTest.cpp |
@@ -60,9 +60,10 @@ void drawRectInClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase |
IntRect rect(1, 1, 9, 9); |
ClipRect clipRect((LayoutRect(rect))); |
LayerClipRecorder LayerClipRecorder(context, *layoutView.compositor()->rootLayer()->layoutObject(), DisplayItem::ClipLayerForeground, clipRect, 0, LayoutPoint(), PaintLayerFlags()); |
- LayoutObjectDrawingRecorder drawingRecorder(context, layoutView, phase, bound); |
- if (!drawingRecorder.canUseCachedDrawing()) |
+ if (!LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(context, layoutView, phase)) { |
+ LayoutObjectDrawingRecorder drawingRecorder(context, layoutView, phase, bound); |
context.drawRect(rect); |
+ } |
} |
TEST_F(LayerClipRecorderTest, Single) |