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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 if (m_isInLayout) | 54 if (m_isInLayout) |
55 return; | 55 return; |
56 | 56 |
57 AutoReset<bool> inLayoutChange(&m_isInLayout, true); | 57 AutoReset<bool> inLayoutChange(&m_isInLayout, true); |
58 | 58 |
59 LayoutSVGHiddenContainer::layout(); | 59 LayoutSVGHiddenContainer::layout(); |
60 | 60 |
61 clearInvalidationMask(); | 61 clearInvalidationMask(); |
62 } | 62 } |
63 | 63 |
| 64 SVGElementProxySet* LayoutSVGResourceContainer::elementProxySet() { |
| 65 return element()->elementProxySet(); |
| 66 } |
| 67 |
64 void LayoutSVGResourceContainer::notifyContentChanged() { | 68 void LayoutSVGResourceContainer::notifyContentChanged() { |
65 if (SVGElementProxySet* proxySet = elementProxySet()) | 69 if (SVGElementProxySet* proxySet = elementProxySet()) |
66 proxySet->notifyContentChanged(element()->treeScope()); | 70 proxySet->notifyContentChanged(element()->treeScope()); |
67 } | 71 } |
68 | 72 |
69 void LayoutSVGResourceContainer::willBeDestroyed() { | 73 void LayoutSVGResourceContainer::willBeDestroyed() { |
70 // Detach all clients referring to this resource. If the resource itself is | 74 // Detach all clients referring to this resource. If the resource itself is |
71 // a client, it will be detached from any such resources by the call to | 75 // a client, it will be detached from any such resources by the call to |
72 // LayoutSVGHiddenContainer::willBeDestroyed() below. | 76 // LayoutSVGHiddenContainer::willBeDestroyed() below. |
73 detachAllClients(); | 77 detachAllClients(); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // This will process the rest of the ancestors. | 308 // This will process the rest of the ancestors. |
305 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); | 309 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); |
306 break; | 310 break; |
307 } | 311 } |
308 | 312 |
309 current = current->parent(); | 313 current = current->parent(); |
310 } | 314 } |
311 } | 315 } |
312 | 316 |
313 } // namespace blink | 317 } // namespace blink |
OLD | NEW |