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

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: - 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 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 // Invalidate the paint of a specific subrectangle within a given object. Th e rect is in the object's coordinate space. 1113 // Invalidate the paint of a specific subrectangle within a given object. Th e rect is in the object's coordinate space.
1114 void invalidatePaintRectangle(const LayoutRect&) const; 1114 void invalidatePaintRectangle(const LayoutRect&) const;
1115 1115
1116 // 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. 1116 // 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.
1117 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&); 1117 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
1118 1118
1119 void invalidatePaintIncludingNonCompositingDescendants(); 1119 void invalidatePaintIncludingNonCompositingDescendants();
1120 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer); 1120 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer);
1121 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 1121 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
1122 1122
1123 // Returns true if the object will not generate any effective painted output . 1123 // Returns true if the object itself will not generate any effective painted output no matter what
1124 // size the object is. For example, this function can return false for an ob ject whose size is
1125 // currently 0x0 but would have effective painted output if it was set a non -empty size.
1124 // It's used to skip unforced paint invalidation (which is when shouldDoFull PaintInvalidation 1126 // It's used to skip unforced paint invalidation (which is when shouldDoFull PaintInvalidation
1125 // is false, but mayNeedPaintInvalidation or childShouldCheckForPaintInvalid ation is true) to 1127 // is false, but mayNeedPaintInvalidation or childShouldCheckForPaintInvalid ation is true) to
1126 // avoid unnecessary paint invalidations of empty areas covered by such obje cts. 1128 // avoid unnecessary paint invalidations of empty areas covered by such obje cts.
1127 virtual bool paintedOutputOfObjectHasNoEffect() const { return false; } 1129 virtual bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { retu rn false; }
1128 1130
1129 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 1131 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
1130 // coordinate space. This method deals with outlines and overflow. 1132 // coordinate space. This method deals with outlines and overflow.
1131 virtual LayoutRect absoluteClippedOverflowRect() const; 1133 virtual LayoutRect absoluteClippedOverflowRect() const;
1132 1134
1133 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the object's 1135 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the object's
1134 // local coordinate space. This is for non-SVG objects and LayoutSVGRoot onl y. SVG objects (except LayoutSVGRoot) 1136 // local coordinate space. This is for non-SVG objects and LayoutSVGRoot onl y. SVG objects (except LayoutSVGRoot)
1135 // should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead. 1137 // should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead.
1136 virtual LayoutRect localOverflowRectForPaintInvalidation() const; 1138 virtual LayoutRect localOverflowRectForPaintInvalidation() const;
1137 1139
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 void showTree(const blink::LayoutObject*); 2159 void showTree(const blink::LayoutObject*);
2158 void showLineTree(const blink::LayoutObject*); 2160 void showLineTree(const blink::LayoutObject*);
2159 void showLayoutTree(const blink::LayoutObject* object1); 2161 void showLayoutTree(const blink::LayoutObject* object1);
2160 // We don't make object2 an optional parameter so that showLayoutTree 2162 // We don't make object2 an optional parameter so that showLayoutTree
2161 // can be called from gdb easily. 2163 // can be called from gdb easily.
2162 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2164 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2163 2165
2164 #endif 2166 #endif
2165 2167
2166 #endif // LayoutObject_h 2168 #endif // LayoutObject_h
OLDNEW
« 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