| Index: third_party/WebKit/Source/web/PageWidgetDelegate.cpp
|
| diff --git a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
|
| index 5634cf369a1e1374d908aa13a8bc93fb90990782..099db3d1be9ff66e47d937fd980a7915f33edf39 100644
|
| --- a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
|
| +++ b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
|
| @@ -42,6 +42,7 @@
|
| #include "platform/Logging.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| #include "platform/graphics/paint/ClipRecorder.h"
|
| +#include "platform/graphics/paint/CullRect.h"
|
| #include "platform/graphics/paint/DrawingRecorder.h"
|
| #include "platform/graphics/paint/SkPictureBuilder.h"
|
| #include "platform/transforms/AffineTransform.h"
|
| @@ -87,7 +88,7 @@ static void paintInternal(Page& page, WebCanvas* canvas,
|
| if (view) {
|
| ClipRecorder clipRecorder(paintContext, root, DisplayItem::PageWidgetDelegateClip, LayoutRect(dirtyRect));
|
|
|
| - view->paint(&paintContext, globalPaintFlags, dirtyRect);
|
| + view->paint(&paintContext, globalPaintFlags, CullRect(dirtyRect));
|
| } else if (!DrawingRecorder::useCachedDrawingIfPossible(paintContext, root, DisplayItem::PageWidgetDelegateBackgroundFallback)) {
|
| DrawingRecorder drawingRecorder(paintContext, root, DisplayItem::PageWidgetDelegateBackgroundFallback, dirtyRect);
|
| paintContext.fillRect(dirtyRect, Color::white);
|
|
|