| Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
|
| index 4f0fc551f1ad0ec13d3c1c1fc29fbc8e28792ba3..d01671376eb2b40f0b87852327598cdc732ac5d6 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
|
| @@ -527,6 +527,21 @@ void PaintController::commitNewDisplayItems(
|
| }
|
| }
|
|
|
| + if (!m_firstPainted) {
|
| + for (const auto& item : m_newDisplayItemList) {
|
| + if (item.isDrawing() &&
|
| + // Here we ignore all document-background paintings because we don't
|
| + // know if the background is default. ViewPainter should have called
|
| + // setFirstPainted() if this display item is for non-default
|
| + // background.
|
| + item.getType() != DisplayItem::kDocumentBackground &&
|
| + item.drawsContent()) {
|
| + m_firstPainted = true;
|
| + break;
|
| + }
|
| + }
|
| + }
|
| +
|
| for (auto* client : skippedCacheClients)
|
| client->setDisplayItemsUncached();
|
|
|
|
|