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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 void idChanged(); | 65 void idChanged(); |
66 | 66 |
67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr); | 67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr); |
68 | 68 |
69 static void markForLayoutAndParentResourceInvalidation( | 69 static void markForLayoutAndParentResourceInvalidation( |
70 LayoutObject*, | 70 LayoutObject*, |
71 bool needsLayout = true); | 71 bool needsLayout = true); |
72 | 72 |
73 void clearInvalidationMask() { m_invalidationMask = 0; } | 73 void clearInvalidationMask() { m_invalidationMask = 0; } |
| 74 const HashSet<LayoutObject*>& clients() { return m_clients; } |
74 | 75 |
75 protected: | 76 protected: |
76 // When adding modes, make sure we don't overflow m_invalidationMask below. | 77 // When adding modes, make sure we don't overflow m_invalidationMask below. |
77 enum InvalidationMode { | 78 enum InvalidationMode { |
78 LayoutAndBoundariesInvalidation = 1 << 0, | 79 LayoutAndBoundariesInvalidation = 1 << 0, |
79 BoundariesInvalidation = 1 << 1, | 80 BoundariesInvalidation = 1 << 1, |
80 PaintInvalidation = 1 << 2, | 81 PaintInvalidation = 1 << 2, |
81 ParentOnlyInvalidation = 1 << 3 | 82 ParentOnlyInvalidation = 1 << 3 |
82 }; | 83 }; |
83 | 84 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 isSVGResourceContainer()); | 141 isSVGResourceContainer()); |
141 | 142 |
142 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 143 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
143 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ | 144 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ |
144 resource->resourceType() == typeName, \ | 145 resource->resourceType() == typeName, \ |
145 resource.resourceType() == typeName) | 146 resource.resourceType() == typeName) |
146 | 147 |
147 } // namespace blink | 148 } // namespace blink |
148 | 149 |
149 #endif | 150 #endif |
OLD | NEW |