| Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| index 90bcff377d4614c143ff1dfa32faccd5c523a3e8..d932ef3eb64962ba18e61d24ab4ca8c0ca90965a 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| @@ -338,32 +338,9 @@ bool GraphicsLayer::paintWithoutCommit(
|
|
|
| m_previousInterestRect = *interestRect;
|
| m_client->paintContents(this, context, m_paintingPhase, *interestRect);
|
| - notifyFirstPaintToClient();
|
| return true;
|
| }
|
|
|
| -void GraphicsLayer::notifyFirstPaintToClient() {
|
| - bool isFirstPaint = false;
|
| - if (!m_painted) {
|
| - DisplayItemList& itemList = m_paintController->newDisplayItemList();
|
| - for (DisplayItem& item : itemList) {
|
| - DisplayItem::Type type = item.getType();
|
| - if (type == DisplayItem::kDocumentBackground &&
|
| - !m_paintController->nonDefaultBackgroundColorPainted()) {
|
| - continue;
|
| - }
|
| - if (DisplayItem::isDrawingType(type) &&
|
| - static_cast<const DrawingDisplayItem&>(item).picture()) {
|
| - m_painted = true;
|
| - isFirstPaint = true;
|
| - break;
|
| - }
|
| - }
|
| - }
|
| - m_client->notifyPaint(isFirstPaint, m_paintController->textPainted(),
|
| - m_paintController->imagePainted());
|
| -}
|
| -
|
| void GraphicsLayer::updateChildList() {
|
| WebLayer* childHost = m_layer->layer();
|
| childHost->removeAllChildren();
|
|
|