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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 static SVGResources* cachedResourcesForLayoutObject(const LayoutObject*); | 44 static SVGResources* cachedResourcesForLayoutObject(const LayoutObject*); |
45 | 45 |
46 // Called from all SVG layoutObjects addChild() methods. | 46 // Called from all SVG layoutObjects addChild() methods. |
47 static void clientWasAddedToTree(LayoutObject*, | 47 static void clientWasAddedToTree(LayoutObject*, |
48 const ComputedStyle& newStyle); | 48 const ComputedStyle& newStyle); |
49 | 49 |
50 // Called from all SVG layoutObjects removeChild() methods. | 50 // Called from all SVG layoutObjects removeChild() methods. |
51 static void clientWillBeRemovedFromTree(LayoutObject*); | 51 static void clientWillBeRemovedFromTree(LayoutObject*); |
52 | 52 |
53 // Called from all SVG layoutObjects destroy() methods - except for LayoutSVGR
esourceContainer. | 53 // Called from all SVG layoutObjects destroy() methods - except for |
| 54 // LayoutSVGResourceContainer. |
54 static void clientDestroyed(LayoutObject*); | 55 static void clientDestroyed(LayoutObject*); |
55 | 56 |
56 // Called from all SVG layoutObjects layout() methods. | 57 // Called from all SVG layoutObjects layout() methods. |
57 static void clientLayoutChanged(LayoutObject*); | 58 static void clientLayoutChanged(LayoutObject*); |
58 | 59 |
59 // Called from all SVG layoutObjects styleDidChange() methods. | 60 // Called from all SVG layoutObjects styleDidChange() methods. |
60 static void clientStyleChanged(LayoutObject*, | 61 static void clientStyleChanged(LayoutObject*, |
61 StyleDifference, | 62 StyleDifference, |
62 const ComputedStyle& newStyle); | 63 const ComputedStyle& newStyle); |
63 | 64 |
64 private: | 65 private: |
65 void addResourcesFromLayoutObject(LayoutObject*, const ComputedStyle&); | 66 void addResourcesFromLayoutObject(LayoutObject*, const ComputedStyle&); |
66 void removeResourcesFromLayoutObject(LayoutObject*); | 67 void removeResourcesFromLayoutObject(LayoutObject*); |
67 | 68 |
68 typedef HashMap<const LayoutObject*, std::unique_ptr<SVGResources>> CacheMap; | 69 typedef HashMap<const LayoutObject*, std::unique_ptr<SVGResources>> CacheMap; |
69 CacheMap m_cache; | 70 CacheMap m_cache; |
70 }; | 71 }; |
71 | 72 |
72 } // namespace blink | 73 } // namespace blink |
73 | 74 |
74 #endif | 75 #endif |
OLD | NEW |