Index: third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
index c48336c2bf07f47ca12034bc641d3d818887a7fe..84515f0e4ca37f8ea0bf8b71db31b69fdb0f6da4 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
@@ -168,4 +168,12 @@ void SVGResourcesCache::clientDestroyed(LayoutObject* layoutObject) |
cache.removeResourcesFromLayoutObject(layoutObject); |
} |
+void SVGResourcesCache::invalidateAllResources(Document& document) |
+{ |
+ ASSERT(RuntimeEnabledFeatures::imageColorProfilesEnabled()); // See crbug.com/531258 |
+ |
+ for (auto& cacheEntry : resourcesCache(document).m_cache) |
+ cacheEntry.value->removeClientFromCache(const_cast<LayoutObject*>(cacheEntry.key)); |
+} |
+ |
} |