Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1161)

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2481363007: Update First Paint to include paint of non-default document background color (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 4e1053ee3d1a7108222689c7fb45bb0ec4c51d73..9157dd486f8593b8e2245f5d97f48b65bb54f024 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -339,8 +339,11 @@ void GraphicsLayer::notifyFirstPaintToClient() {
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) &&
- type != DisplayItem::kDocumentBackground &&
static_cast<const DrawingDisplayItem&>(item).picture()) {
m_painted = true;
isFirstPaint = true;

Powered by Google App Engine
This is Rietveld 408576698