| Index: Source/web/PageOverlayTest.cpp
|
| diff --git a/Source/web/PageOverlayTest.cpp b/Source/web/PageOverlayTest.cpp
|
| index afbe4049ad8fc521358cc6785640f4ba6777596a..9e738b47bfee30039f488bd34f85c787a3d478aa 100644
|
| --- a/Source/web/PageOverlayTest.cpp
|
| +++ b/Source/web/PageOverlayTest.cpp
|
| @@ -105,10 +105,11 @@ public:
|
| void paintPageOverlay(WebGraphicsContext* context, const WebSize& size) override
|
| {
|
| GraphicsContext& graphicsContext = toWebGraphicsContextImpl(context)->graphicsContext();
|
| + if (DrawingRecorder::useCachedDrawingIfPossible(graphicsContext, *this, DisplayItem::PageOverlay))
|
| + return;
|
| FloatRect rect(0, 0, size.width, size.height);
|
| DrawingRecorder drawingRecorder(graphicsContext, *this, DisplayItem::PageOverlay, rect);
|
| - if (!drawingRecorder.canUseCachedDrawing())
|
| - graphicsContext.fillRect(rect, m_color);
|
| + graphicsContext.fillRect(rect, m_color);
|
| }
|
|
|
| DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
|
|
|