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

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

Issue 2247543003: Tweak priorities of paint invalidation reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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: third_party/WebKit/Source/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index d0d231ec9312fbfbf1a1bd3c54fdb8f852592751..06d0afdf589946cb0a73a9bed9a9f3ac6db53ac2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1120,11 +1120,13 @@ public:
void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBoxModelObject& paintInvalidationContainer);
void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
- // Returns true if the object will not generate any effective painted output.
+ // Returns true if the object itself will not generate any effective painted output no matter what
+ // size the object is. For example, this function can return false for an object whose size is
+ // currently 0x0 but would have effective painted output if it was set a non-empty size.
// It's used to skip unforced paint invalidation (which is when shouldDoFullPaintInvalidation
// is false, but mayNeedPaintInvalidation or childShouldCheckForPaintInvalidation is true) to
// avoid unnecessary paint invalidations of empty areas covered by such objects.
- virtual bool paintedOutputOfObjectHasNoEffect() const { return false; }
+ virtual bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { return false; }
// Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
// coordinate space. This method deals with outlines and overflow.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutReplaced.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698