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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 337173003: Compute paint invalidation rects for selection in the space of the backing GraphicsLayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test expectation. Created 6 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 return computePaintInvalidationRect(containerForPaintInvalidation()); 814 return computePaintInvalidationRect(containerForPaintInvalidation());
815 } 815 }
816 816
817 // Returns the paint invalidation rect for this RenderObject in the coordina te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation Container|. 817 // Returns the paint invalidation rect for this RenderObject in the coordina te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation Container|.
818 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI nvalidationContainer) const; 818 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI nvalidationContainer) const;
819 819
820 // Returns the rect bounds needed to invalidate the paint of this object, in the coordinate space of the rendering backing of |paintInvalidationContainer| 820 // Returns the rect bounds needed to invalidate the paint of this object, in the coordinate space of the rendering backing of |paintInvalidationContainer|
821 LayoutRect boundsRectForPaintInvalidation(const RenderLayerModelObject* pain tInvalidationContainer) const; 821 LayoutRect boundsRectForPaintInvalidation(const RenderLayerModelObject* pain tInvalidationContainer) const;
822 822
823 // Actually do the paint invalidate of rect r for this object which has been computed in the coordinate space 823 // Actually do the paint invalidate of rect r for this object which has been computed in the coordinate space
824 // of paintInvalidationContainer. If paintInvalidationContainer is 0, invali date paints via the view. 824 // of the GraphicsLayer backing of |paintInvalidationContainer|. Note that t his coordinaten space is not the same
825 // as the local coordinate space of |paintInvalidationContainer| in the pres ence of layer squashing.
826 // If |paintInvalidationContainer| is 0, invalidate paints via the view.
leviw_travelin_and_unemployed 2014/06/17 20:39:02 Please add a FIXME about the null and point it at
825 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const IntRect&, InvalidationReason) const; 827 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const IntRect&, InvalidationReason) const;
826 828
827 // Invalidate the paint of the entire object. Called when, e.g., the color o f a border changes, or when a border 829 // Invalidate the paint of the entire object. Called when, e.g., the color o f a border changes, or when a border
828 // style changes. 830 // style changes.
829 void paintInvalidationForWholeRenderer() const; 831 void paintInvalidationForWholeRenderer() const;
830 832
831 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space. 833 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space.
832 void invalidatePaintRectangle(const LayoutRect&) const; 834 void invalidatePaintRectangle(const LayoutRect&) const;
833 835
834 // Invalidate the paint only if our old bounds and new bounds are different. The caller may pass in newBounds if they are known. 836 // Invalidate the paint only if our old bounds and new bounds are different. The caller may pass in newBounds if they are known.
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 void showTree(const WebCore::RenderObject*); 1485 void showTree(const WebCore::RenderObject*);
1484 void showLineTree(const WebCore::RenderObject*); 1486 void showLineTree(const WebCore::RenderObject*);
1485 void showRenderTree(const WebCore::RenderObject* object1); 1487 void showRenderTree(const WebCore::RenderObject* object1);
1486 // We don't make object2 an optional parameter so that showRenderTree 1488 // We don't make object2 an optional parameter so that showRenderTree
1487 // can be called from gdb easily. 1489 // can be called from gdb easily.
1488 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1490 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1489 1491
1490 #endif 1492 #endif
1491 1493
1492 #endif // RenderObject_h 1494 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698