Index: Source/web/PageWidgetDelegate.cpp |
diff --git a/Source/web/PageWidgetDelegate.cpp b/Source/web/PageWidgetDelegate.cpp |
index 74437cd62d55069b697132de06d21735aada426c..a0723ebf497619369acfcc5bbd582d8d75ce4d41 100644 |
--- a/Source/web/PageWidgetDelegate.cpp |
+++ b/Source/web/PageWidgetDelegate.cpp |
@@ -94,10 +94,9 @@ void PageWidgetDelegate::paint(Page& page, PageOverlayList* overlays, WebCanvas* |
view->paint(&paintContext, dirtyRect); |
if (overlays) |
overlays->paintWebFrame(paintContext); |
- } else { |
+ } else if (!DrawingRecorder::useCachedDrawingIfPossible(paintContext, root, DisplayItem::PageWidgetDelegateBackgroundFallback)) { |
DrawingRecorder drawingRecorder(paintContext, root, DisplayItem::PageWidgetDelegateBackgroundFallback, dirtyRect); |
- if (!drawingRecorder.canUseCachedDrawing()) |
- paintContext.fillRect(dirtyRect, Color::white); |
+ paintContext.fillRect(dirtyRect, Color::white); |
} |
} |
pictureBuilder.endRecording()->playback(canvas); |