Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: Source/WebCore/rendering/svg/SVGResourcesCache.cpp

Issue 8598007: Merge 100502 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/filters/reparent-animated-filter-target-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/svg/SVGResourcesCache.cpp
===================================================================
--- Source/WebCore/rendering/svg/SVGResourcesCache.cpp (revision 100710)
+++ Source/WebCore/rendering/svg/SVGResourcesCache.cpp (working copy)
@@ -155,6 +155,11 @@
void SVGResourcesCache::clientDestroyed(RenderObject* renderer)
{
ASSERT(renderer);
+
+ SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(renderer);
+ if (resources)
+ resources->removeClientFromCache(renderer);
+
SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer);
cache->removeResourcesFromRenderObject(renderer);
}
« no previous file with comments | « LayoutTests/svg/filters/reparent-animated-filter-target-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698