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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 | 68 |
69 void LayoutSVGResourceContainer::willBeDestroyed() | 69 void LayoutSVGResourceContainer::willBeDestroyed() |
70 { | 70 { |
71 SVGResourcesCache::resourceDestroyed(this); | 71 SVGResourcesCache::resourceDestroyed(this); |
72 LayoutSVGHiddenContainer::willBeDestroyed(); | 72 LayoutSVGHiddenContainer::willBeDestroyed(); |
73 if (m_registered) | 73 if (m_registered) |
74 svgExtensionsFromElement(element()).removeResource(m_id); | 74 svgExtensionsFromElement(element()).removeResource(m_id); |
75 } | 75 } |
76 | 76 |
77 void LayoutSVGResourceContainer::styleDidChange(StyleDifference diff, const Layo
utStyle* oldStyle) | 77 void LayoutSVGResourceContainer::styleDidChange(StyleDifference diff, const Comp
utedStyle* oldStyle) |
78 { | 78 { |
79 LayoutSVGHiddenContainer::styleDidChange(diff, oldStyle); | 79 LayoutSVGHiddenContainer::styleDidChange(diff, oldStyle); |
80 | 80 |
81 if (!m_registered) { | 81 if (!m_registered) { |
82 m_registered = true; | 82 m_registered = true; |
83 registerResource(); | 83 registerResource(); |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 void LayoutSVGResourceContainer::idChanged() | 87 void LayoutSVGResourceContainer::idChanged() |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // This will process the rest of the ancestors. | 290 // This will process the rest of the ancestors. |
291 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); | 291 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); |
292 break; | 292 break; |
293 } | 293 } |
294 | 294 |
295 current = current->parent(); | 295 current = current->parent(); |
296 } | 296 } |
297 } | 297 } |
298 | 298 |
299 } | 299 } |
OLD | NEW |