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

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

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 | « LayoutTests/fast/repaint/resources/window-resize-repaint.js ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.h
diff --git a/Source/core/layout/LayoutObject.h b/Source/core/layout/LayoutObject.h
index d5f50a66c54a71532f47776dac3e0848ace6e446..89bc6dcc4e991f9e3f987381e63c16546707dc03 100644
--- a/Source/core/layout/LayoutObject.h
+++ b/Source/core/layout/LayoutObject.h
@@ -257,11 +257,18 @@ public:
#endif
// FIXME: This could be used when changing the size of a renderer without children to skip some invalidations.
- bool rendererHasNoBoxEffect() const
+ // FIXME: This is incorrect for document element. Remove this when we enable slimming paint.
+ bool rendererHasNoBoxEffectObsolete() const
{
return !style()->hasVisualOverflowingEffect() && !style()->hasBorder() && !style()->hasBackground();
}
+ // Correct version of !rendererHasNoBoxEffectObsolete().
+ bool hasBoxEffect() const
+ {
+ return hasBoxDecorationBackground() || style()->hasVisualOverflowingEffect();
+ }
+
// Obtains the nearest enclosing block (including this block) that contributes a first-line style to our inline
// children.
virtual LayoutBlock* firstLineBlock() const;
« no previous file with comments | « LayoutTests/fast/repaint/resources/window-resize-repaint.js ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698