Index: Source/WebCore/rendering/svg/SVGResourcesCache.h |
=================================================================== |
--- Source/WebCore/rendering/svg/SVGResourcesCache.h (revision 119626) |
+++ Source/WebCore/rendering/svg/SVGResourcesCache.h (working copy) |
@@ -37,10 +37,14 @@ |
SVGResourcesCache(); |
~SVGResourcesCache(); |
- void addResourcesFromRenderObject(RenderObject*, const RenderStyle*); |
- void removeResourcesFromRenderObject(RenderObject*); |
static SVGResources* cachedResourcesForRenderObject(const RenderObject*); |
+ // Called from all SVG renderers addChild() methods. |
+ static void clientWasAddedToTree(RenderObject*, const RenderStyle* newStyle); |
+ |
+ // Called from all SVG renderers removeChild() methods. |
+ static void clientWillBeRemovedFromTree(RenderObject*); |
+ |
// Called from all SVG renderers destroy() methods - except for RenderSVGResourceContainer. |
static void clientDestroyed(RenderObject*); |
@@ -50,13 +54,13 @@ |
// Called from all SVG renderers styleDidChange() methods. |
static void clientStyleChanged(RenderObject*, StyleDifference, const RenderStyle* newStyle); |
- // Called from all SVG renderers updateFromElement() methods. |
- static void clientUpdatedFromElement(RenderObject*, const RenderStyle* newStyle); |
- |
// Called from RenderSVGResourceContainer::willBeDestroyed(). |
static void resourceDestroyed(RenderSVGResourceContainer*); |
private: |
+ void addResourcesFromRenderObject(RenderObject*, const RenderStyle*); |
+ void removeResourcesFromRenderObject(RenderObject*); |
+ |
HashMap<const RenderObject*, SVGResources*> m_cache; |
}; |