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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 PaintInvalidation = 1 << 2, | 80 PaintInvalidation = 1 << 2, |
81 ParentOnlyInvalidation = 1 << 3 | 81 ParentOnlyInvalidation = 1 << 3 |
82 }; | 82 }; |
83 | 83 |
84 // Used from the invalidateClient/invalidateClients methods from classes, | 84 // Used from the invalidateClient/invalidateClients methods from classes, |
85 // inheriting from us. | 85 // inheriting from us. |
86 void markAllClientsForInvalidation(InvalidationMode); | 86 void markAllClientsForInvalidation(InvalidationMode); |
87 void markClientForInvalidation(LayoutObject*, InvalidationMode); | 87 void markClientForInvalidation(LayoutObject*, InvalidationMode); |
88 | 88 |
89 void notifyContentChanged(); | 89 void notifyContentChanged(); |
90 virtual SVGElementProxySet* elementProxySet() { return nullptr; } | 90 SVGElementProxySet* elementProxySet(); |
91 | 91 |
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(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 isSVGResourceContainer()); | 140 isSVGResourceContainer()); |
141 | 141 |
142 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 142 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
143 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ | 143 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ |
144 resource->resourceType() == typeName, \ | 144 resource->resourceType() == typeName, \ |
145 resource.resourceType() == typeName) | 145 resource.resourceType() == typeName) |
146 | 146 |
147 } // namespace blink | 147 } // namespace blink |
148 | 148 |
149 #endif | 149 #endif |
OLD | NEW |