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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2549553002: Verify paintedOutputOfObjectHasNoEffectRegardlessOfSize during painting (Closed)
Patch Set: Remove from LayoutObject.h Created 4 years 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. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 LayoutRect invalidatePaintRectangle(const LayoutRect&, 1302 LayoutRect invalidatePaintRectangle(const LayoutRect&,
1303 DisplayItemClient* = nullptr) const; 1303 DisplayItemClient* = nullptr) const;
1304 1304
1305 // Walk the tree after layout issuing paint invalidations for layoutObjects 1305 // Walk the tree after layout issuing paint invalidations for layoutObjects
1306 // that have changed or moved, updating bounds that have changed, and clearing 1306 // that have changed or moved, updating bounds that have changed, and clearing
1307 // paint invalidation state. 1307 // paint invalidation state.
1308 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&); 1308 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
1309 1309
1310 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 1310 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
1311 1311
1312 // Returns true if the object itself will not generate any effective painted
1313 // output no matter what size the object is. For example, this function can
1314 // return false for an object whose size is currently 0x0 but would have
1315 // effective painted output if it was set a non-empty size.
1316 // It's used to skip unforced paint invalidation (which is when
1317 // shouldDoFullPaintInvalidation is false, but mayNeedPaintInvalidation or
1318 // childShouldCheckForPaintInvalidation is true) to avoid unnecessary paint
1319 // invalidations of empty areas covered by such objects.
1320 virtual bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
1321 return false;
1322 }
1323
1324 // Returns the rect that should have paint invalidated whenever this object 1312 // Returns the rect that should have paint invalidated whenever this object
1325 // changes. The rect is in the view's coordinate space. This method deals with 1313 // changes. The rect is in the view's coordinate space. This method deals with
1326 // outlines and overflow. 1314 // outlines and overflow.
1327 virtual LayoutRect absoluteVisualRect() const; 1315 virtual LayoutRect absoluteVisualRect() const;
1328 1316
1329 // Returns the rect that should have paint invalidated whenever this object 1317 // Returns the rect that should have paint invalidated whenever this object
1330 // changes. The rect is in the object's local coordinate space. This is for 1318 // changes. The rect is in the object's local coordinate space. This is for
1331 // non-SVG objects and LayoutSVGRoot only. SVG objects (except LayoutSVGRoot) 1319 // non-SVG objects and LayoutSVGRoot only. SVG objects (except LayoutSVGRoot)
1332 // should use visualRectInLocalSVGCoordinates() and map with SVG transforms 1320 // should use visualRectInLocalSVGCoordinates() and map with SVG transforms
1333 // instead. 1321 // instead.
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2650 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2663 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2651 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2664 // We don't make object2 an optional parameter so that showLayoutTree 2652 // We don't make object2 an optional parameter so that showLayoutTree
2665 // can be called from gdb easily. 2653 // can be called from gdb easily.
2666 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2654 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2667 const blink::LayoutObject* object2); 2655 const blink::LayoutObject* object2);
2668 2656
2669 #endif 2657 #endif
2670 2658
2671 #endif // LayoutObject_h 2659 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutDetailsMarker.h ('k') | third_party/WebKit/Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698