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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1011393003: [S.P.] Invalidate the document element for view background when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months 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: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 2fa594d795b58033d5ff04abe59b35de5c51df22..f771733345787ff5af7dbf5da53be6e53e899ad6 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -628,6 +628,12 @@ bool LayoutObject::skipInvalidationWhenLaidOutChildren() const
if (hasNonCompositedScrollbars())
return false;
+ // The document element always draws background even if it has no background specified.
+ // In non-slimming-paint mode, the invalidation rect of the LayoutView covers the area
chrishtr 2015/03/18 19:30:05 I guess it's hard to do that invalidation on the d
Xianzhu 2015/03/18 19:36:28 Will explore this way.
Xianzhu 2015/03/18 22:44:18 This seems not feasible because the layout object
+ // needing paint invalidation.
+ if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement())
+ return false;
+
return rendererHasNoBoxEffect();
}

Powered by Google App Engine
This is Rietveld 408576698