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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void willBeDestroyed() override; | 92 void willBeDestroyed() override; |
93 | 93 |
94 bool m_isInLayout; | 94 bool m_isInLayout; |
95 | 95 |
96 private: | 96 private: |
97 friend class SVGResourcesCache; | 97 friend class SVGResourcesCache; |
98 void addClient(LayoutObject*); | 98 void addClient(LayoutObject*); |
99 void removeClient(LayoutObject*); | 99 void removeClient(LayoutObject*); |
100 void detachAllClients(); | 100 void detachAllClients(); |
101 | 101 |
102 void registerResource(); | |
103 | |
104 AtomicString m_id; | 102 AtomicString m_id; |
105 // Track global (markAllClientsForInvalidation) invals to avoid redundant | 103 // Track global (markAllClientsForInvalidation) invals to avoid redundant |
106 // crawls. | 104 // crawls. |
107 unsigned m_invalidationMask : 8; | 105 unsigned m_invalidationMask : 8; |
108 | 106 |
109 unsigned m_registered : 1; | 107 unsigned m_registered : 1; |
110 unsigned m_isInvalidating : 1; | 108 unsigned m_isInvalidating : 1; |
111 // 22 padding bits available | 109 // 22 padding bits available |
112 | 110 |
113 HashSet<LayoutObject*> m_clients; | 111 HashSet<LayoutObject*> m_clients; |
(...skipping 14 matching lines...) Expand all Loading... |
128 isSVGResourceContainer()); | 126 isSVGResourceContainer()); |
129 | 127 |
130 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 128 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
131 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ | 129 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ |
132 resource->resourceType() == typeName, \ | 130 resource->resourceType() == typeName, \ |
133 resource.resourceType() == typeName) | 131 resource.resourceType() == typeName) |
134 | 132 |
135 } // namespace blink | 133 } // namespace blink |
136 | 134 |
137 #endif | 135 #endif |
OLD | NEW |