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

Unified Diff: Source/core/layout/svg/SVGResourcesCache.cpp

Issue 1302713003: Don't register excessive pending SVG resources (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months 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 | « Source/core/layout/svg/SVGResourcesCache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGResourcesCache.cpp
diff --git a/Source/core/layout/svg/SVGResourcesCache.cpp b/Source/core/layout/svg/SVGResourcesCache.cpp
index b2ad428c7a5755ba1928de2d01a072deb87453e7..b1adc7e6e8ed0ab3df881dc8d5f483ec91cfc5d2 100644
--- a/Source/core/layout/svg/SVGResourcesCache.cpp
+++ b/Source/core/layout/svg/SVGResourcesCache.cpp
@@ -169,24 +169,4 @@ void SVGResourcesCache::clientDestroyed(LayoutObject* layoutObject)
cache.removeResourcesFromLayoutObject(layoutObject);
}
-void SVGResourcesCache::resourceDestroyed(LayoutSVGResourceContainer* resource)
-{
- ASSERT(resource);
- SVGResourcesCache& cache = resourcesCache(resource->document());
-
- // The resource itself may have clients, that need to be notified.
- cache.removeResourcesFromLayoutObject(resource);
-
- for (auto& objectResources : cache.m_cache) {
- objectResources.value->resourceDestroyed(resource);
-
- // Mark users of destroyed resources as pending resolution based on the id of the old resource.
- Element* resourceElement = resource->element();
- Element* clientElement = toElement(objectResources.key->node());
- SVGDocumentExtensions& extensions = clientElement->document().accessSVGExtensions();
-
- extensions.addPendingResource(resourceElement->fastGetAttribute(HTMLNames::idAttr), clientElement);
- }
-}
-
}
« no previous file with comments | « Source/core/layout/svg/SVGResourcesCache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698