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

Side by Side 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: NeedsRebaseline (for win and mac) 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 // Invalidate the paint of a specific subrectangle within a given object. Th e rect is in the object's coordinate space. 1116 // Invalidate the paint of a specific subrectangle within a given object. Th e rect is in the object's coordinate space.
1117 void invalidatePaintRectangle(const LayoutRect&) const; 1117 void invalidatePaintRectangle(const LayoutRect&) const;
1118 1118
1119 // Walk the tree after layout issuing paint invalidations for layoutObjects that have changed or moved, updating bounds that have changed, and clearing pain t invalidation state. 1119 // Walk the tree after layout issuing paint invalidations for layoutObjects that have changed or moved, updating bounds that have changed, and clearing pain t invalidation state.
1120 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&); 1120 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
1121 1121
1122 void invalidatePaintIncludingNonCompositingDescendants(); 1122 void invalidatePaintIncludingNonCompositingDescendants();
1123 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer); 1123 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer);
1124 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 1124 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
1125 1125
1126 // Returns true if the object will not generate any effective painted output . 1126 // Returns true if the object will not generate any effective painted output regardless of current size.
pdr. 2016/08/15 23:37:42 The text you wrote in your change description was
Xianzhu 2016/08/16 01:13:54 Done (with a slightly different explanation).
1127 // It's used to skip unforced paint invalidation (which is when shouldDoFull PaintInvalidation 1127 // It's used to skip unforced paint invalidation (which is when shouldDoFull PaintInvalidation
1128 // is false, but mayNeedPaintInvalidation or childShouldCheckForPaintInvalid ation is true) to 1128 // is false, but mayNeedPaintInvalidation or childShouldCheckForPaintInvalid ation is true) to
1129 // avoid unnecessary paint invalidations of empty areas covered by such obje cts. 1129 // avoid unnecessary paint invalidations of empty areas covered by such obje cts.
1130 virtual bool paintedOutputOfObjectHasNoEffect() const { return false; } 1130 virtual bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { retu rn false; }
1131 1131
1132 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 1132 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
1133 // coordinate space. This method deals with outlines and overflow. 1133 // coordinate space. This method deals with outlines and overflow.
1134 virtual LayoutRect absoluteClippedOverflowRect() const; 1134 virtual LayoutRect absoluteClippedOverflowRect() const;
1135 1135
1136 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the object's 1136 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the object's
1137 // local coordinate space. This is for non-SVG objects and LayoutSVGRoot onl y. SVG objects (except LayoutSVGRoot) 1137 // local coordinate space. This is for non-SVG objects and LayoutSVGRoot onl y. SVG objects (except LayoutSVGRoot)
1138 // should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead. 1138 // should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead.
1139 virtual LayoutRect localOverflowRectForPaintInvalidation() const; 1139 virtual LayoutRect localOverflowRectForPaintInvalidation() const;
1140 1140
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 void showTree(const blink::LayoutObject*); 2163 void showTree(const blink::LayoutObject*);
2164 void showLineTree(const blink::LayoutObject*); 2164 void showLineTree(const blink::LayoutObject*);
2165 void showLayoutTree(const blink::LayoutObject* object1); 2165 void showLayoutTree(const blink::LayoutObject* object1);
2166 // We don't make object2 an optional parameter so that showLayoutTree 2166 // We don't make object2 an optional parameter so that showLayoutTree
2167 // can be called from gdb easily. 2167 // can be called from gdb easily.
2168 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2168 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2169 2169
2170 #endif 2170 #endif
2171 2171
2172 #endif // LayoutObject_h 2172 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698