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

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

Issue 1164713010: Invalidate non-composited subtree on needsPaintInvalidationLayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 void invalidatePaintRectangle(const LayoutRect&) const; 866 void invalidatePaintRectangle(const LayoutRect&) const;
867 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR ect& r) const { invalidatePaintRectangleInternal(r); } 867 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR ect& r) const { invalidatePaintRectangleInternal(r); }
868 868
869 // 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. 869 // 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.
870 virtual void invalidateTreeIfNeeded(PaintInvalidationState&); 870 virtual void invalidateTreeIfNeeded(PaintInvalidationState&);
871 871
872 virtual void invalidatePaintForOverflow(); 872 virtual void invalidatePaintForOverflow();
873 void invalidatePaintForOverflowIfNeeded(); 873 void invalidatePaintForOverflowIfNeeded();
874 874
875 void invalidatePaintIncludingNonCompositingDescendants(); 875 void invalidatePaintIncludingNonCompositingDescendants();
876 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
876 877
877 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 878 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
878 // coordinate space. This method deals with outlines and overflow. 879 // coordinate space. This method deals with outlines and overflow.
879 virtual LayoutRect absoluteClippedOverflowRect() const; 880 virtual LayoutRect absoluteClippedOverflowRect() const;
880 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const; 881 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const;
881 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat ionState* = 0) const; 882 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat ionState* = 0) const;
882 883
883 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 884 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of
884 // that rect in the coordinate space of paintInvalidationContainer. 885 // that rect in the coordinate space of paintInvalidationContainer.
885 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; 886 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const;
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 void showTree(const blink::LayoutObject*); 1667 void showTree(const blink::LayoutObject*);
1667 void showLineTree(const blink::LayoutObject*); 1668 void showLineTree(const blink::LayoutObject*);
1668 void showLayoutTree(const blink::LayoutObject* object1); 1669 void showLayoutTree(const blink::LayoutObject* object1);
1669 // We don't make object2 an optional parameter so that showLayoutTree 1670 // We don't make object2 an optional parameter so that showLayoutTree
1670 // can be called from gdb easily. 1671 // can be called from gdb easily.
1671 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1672 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1672 1673
1673 #endif 1674 #endif
1674 1675
1675 #endif // LayoutObject_h 1676 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698