OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void addClientRenderLayer(RenderLayer*); | 45 void addClientRenderLayer(RenderLayer*); |
46 void removeClientRenderLayer(RenderLayer*); | 46 void removeClientRenderLayer(RenderLayer*); |
47 | 47 |
48 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0); | 48 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0); |
49 | 49 |
50 protected: | 50 protected: |
51 // When adding modes, make sure we don't overflow m_invalidationMask below. | 51 // When adding modes, make sure we don't overflow m_invalidationMask below. |
52 enum InvalidationMode { | 52 enum InvalidationMode { |
53 LayoutAndBoundariesInvalidation = 1 << 0, | 53 LayoutAndBoundariesInvalidation = 1 << 0, |
54 BoundariesInvalidation = 1 << 1, | 54 BoundariesInvalidation = 1 << 1, |
55 RepaintInvalidation = 1 << 2, | 55 PaintInvalidation = 1 << 2, |
56 ParentOnlyInvalidation = 1 << 3 | 56 ParentOnlyInvalidation = 1 << 3 |
57 }; | 57 }; |
58 | 58 |
59 // Used from the invalidateClient/invalidateClients methods from classes, in
heriting from us. | 59 // Used from the invalidateClient/invalidateClients methods from classes, in
heriting from us. |
60 void markAllClientsForInvalidation(InvalidationMode); | 60 void markAllClientsForInvalidation(InvalidationMode); |
61 void markAllClientLayersForInvalidation(); | 61 void markAllClientLayersForInvalidation(); |
62 void markClientForInvalidation(RenderObject*, InvalidationMode); | 62 void markClientForInvalidation(RenderObject*, InvalidationMode); |
63 | 63 |
64 void clearInvalidationMask() { m_invalidationMask = 0; } | 64 void clearInvalidationMask() { m_invalidationMask = 0; } |
65 | 65 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 return container->cast<Renderer>(); | 105 return container->cast<Renderer>(); |
106 | 106 |
107 return 0; | 107 return 0; |
108 } | 108 } |
109 | 109 |
110 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain
er()); | 110 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain
er()); |
111 | 111 |
112 } | 112 } |
113 | 113 |
114 #endif | 114 #endif |
OLD | NEW |