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. |