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

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: Another NeedsRebaseline 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
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 73d9ddfb5e830cbfb638fc3d72d3de39fb88bbe6..f5e859a4720a8f87dce35e4a1bd908f6355e92dc 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -627,7 +627,10 @@ bool LayoutObject::skipInvalidationWhenLaidOutChildren() const
if (hasNonCompositedScrollbars())
return false;
- return rendererHasNoBoxEffect();
+ if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement())
+ return !hasBoxEffect();
+
+ return rendererHasNoBoxEffectObsolete();
}
LayoutBlock* LayoutObject::firstLineBlock() const
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698