| OLD | NEW |
| 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 Loading... |
| 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. |
| 827 // FIXME: |paintInvalidationContainer| should never be 0. See crbug.com/3636
99. |
| 825 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali
dationContainer, const IntRect&, InvalidationReason) const; | 828 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali
dationContainer, const IntRect&, InvalidationReason) const; |
| 826 | 829 |
| 827 // Invalidate the paint of the entire object. Called when, e.g., the color o
f a border changes, or when a border | 830 // 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. | 831 // style changes. |
| 829 void paintInvalidationForWholeRenderer() const; | 832 void paintInvalidationForWholeRenderer() const; |
| 830 | 833 |
| 831 // Invalidate the paint of a specific subrectangle within a given object. Th
e rect |r| is in the object's coordinate space. | 834 // 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; | 835 void invalidatePaintRectangle(const LayoutRect&) const; |
| 833 | 836 |
| 834 // Invalidate the paint only if our old bounds and new bounds are different.
The caller may pass in newBounds if they are known. | 837 // Invalidate the paint only if our old bounds and new bounds are different.
The caller may pass in newBounds if they are known. |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 void showTree(const WebCore::RenderObject*); | 1481 void showTree(const WebCore::RenderObject*); |
| 1479 void showLineTree(const WebCore::RenderObject*); | 1482 void showLineTree(const WebCore::RenderObject*); |
| 1480 void showRenderTree(const WebCore::RenderObject* object1); | 1483 void showRenderTree(const WebCore::RenderObject* object1); |
| 1481 // We don't make object2 an optional parameter so that showRenderTree | 1484 // We don't make object2 an optional parameter so that showRenderTree |
| 1482 // can be called from gdb easily. | 1485 // can be called from gdb easily. |
| 1483 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1486 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1484 | 1487 |
| 1485 #endif | 1488 #endif |
| 1486 | 1489 |
| 1487 #endif // RenderObject_h | 1490 #endif // RenderObject_h |
| OLD | NEW |