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

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: Fix rendererHasNoBoxEffect() and TestExpectations 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
« Source/core/layout/LayoutObject.h ('K') | « 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 3dd14adb668dff34bc8254334ce61394e7e440bf..605c065a0814fdce73eb0eb2c5c3df475e2f4f59 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -628,7 +628,10 @@ bool LayoutObject::skipInvalidationWhenLaidOutChildren() const
if (hasNonCompositedScrollbars())
return false;
- return rendererHasNoBoxEffect();
+ if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement())
+ return !hasBoxEffect();
+
+ return rendererHasNoBoxEffectObsolete();
}
LayoutBlock* LayoutObject::firstLineBlock() const
« Source/core/layout/LayoutObject.h ('K') | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698