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

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

Issue 353403006: Consider subpixel accumulation when invalidating paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also squashing path Created 6 years, 5 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI nvalidationContainer) const; 824 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI nvalidationContainer) const;
825 825
826 // Returns the rect bounds needed to invalidate the paint of this object, in the coordinate space of the rendering backing of |paintInvalidationContainer| 826 // Returns the rect bounds needed to invalidate the paint of this object, in the coordinate space of the rendering backing of |paintInvalidationContainer|
827 LayoutRect boundsRectForPaintInvalidation(const RenderLayerModelObject* pain tInvalidationContainer) const; 827 LayoutRect boundsRectForPaintInvalidation(const RenderLayerModelObject* pain tInvalidationContainer) const;
828 828
829 // Actually do the paint invalidate of rect r for this object which has been computed in the coordinate space 829 // Actually do the paint invalidate of rect r for this object which has been computed in the coordinate space
830 // of the GraphicsLayer backing of |paintInvalidationContainer|. Note that t his coordinaten space is not the same 830 // of the GraphicsLayer backing of |paintInvalidationContainer|. Note that t his coordinaten space is not the same
831 // as the local coordinate space of |paintInvalidationContainer| in the pres ence of layer squashing. 831 // as the local coordinate space of |paintInvalidationContainer| in the pres ence of layer squashing.
832 // If |paintInvalidationContainer| is 0, invalidate paints via the view. 832 // If |paintInvalidationContainer| is 0, invalidate paints via the view.
833 // FIXME: |paintInvalidationContainer| should never be 0. See crbug.com/3636 99. 833 // FIXME: |paintInvalidationContainer| should never be 0. See crbug.com/3636 99.
834 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const IntRect&, InvalidationReason) const; 834 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const LayoutRect&, InvalidationReason) const;
835 835
836 // Invalidate the paint of the entire object. Called when, e.g., the color o f a border changes, or when a border 836 // Invalidate the paint of the entire object. Called when, e.g., the color o f a border changes, or when a border
837 // style changes. 837 // style changes.
838 void paintInvalidationForWholeRenderer() const; 838 void paintInvalidationForWholeRenderer() const;
839 839
840 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space. 840 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space.
841 void invalidatePaintRectangle(const LayoutRect&) const; 841 void invalidatePaintRectangle(const LayoutRect&) const;
842 842
843 bool invalidatePaintIfNeeded(const RenderLayerModelObject* paintInvalidation Container, 843 bool invalidatePaintIfNeeded(const RenderLayerModelObject* paintInvalidation Container,
844 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer); 844 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer);
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 void showTree(const WebCore::RenderObject*); 1492 void showTree(const WebCore::RenderObject*);
1493 void showLineTree(const WebCore::RenderObject*); 1493 void showLineTree(const WebCore::RenderObject*);
1494 void showRenderTree(const WebCore::RenderObject* object1); 1494 void showRenderTree(const WebCore::RenderObject* object1);
1495 // We don't make object2 an optional parameter so that showRenderTree 1495 // We don't make object2 an optional parameter so that showRenderTree
1496 // can be called from gdb easily. 1496 // can be called from gdb easily.
1497 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1497 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1498 1498
1499 #endif 1499 #endif
1500 1500
1501 #endif // RenderObject_h 1501 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698