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

Unified Diff: third_party/WebKit/Source/core/paint/ViewPainter.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/ViewPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ViewPainter.cpp b/third_party/WebKit/Source/core/paint/ViewPainter.cpp
index c975d229d1bfffd244ed6d2604e56284315247d3..9aa3efb401e76ca503519daadd1f1fc7288a17e1 100644
--- a/third_party/WebKit/Source/core/paint/ViewPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ViewPainter.cpp
@@ -167,6 +167,12 @@ void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo) {
shouldDrawBackgroundInSeparateBuffer
? rootBackgroundColor
: baseBackgroundColor.blend(rootBackgroundColor);
+ if (combinedBackgroundColor != frameView.baseBackgroundColor() &&
+ !context.getPaintController().nonDefaultBackgroundColorPainted()) {
+ TRACE_EVENT_INSTANT0("blink.user_timing", "paintNonDefaultBackgroundColor",
+ TRACE_EVENT_SCOPE_GLOBAL);
+ context.getPaintController().setNonDefaultBackgroundColorPainted();
+ }
if (combinedBackgroundColor.alpha()) {
if (!combinedBackgroundColor.hasAlpha() &&
RuntimeEnabledFeatures::slimmingPaintV2Enabled())
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698