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 b1adc7e6e8ed0ab3df881dc8d5f483ec91cfc5d2..a2d397acf37d2de442e9ccc14f8bf9dd03ee1b58 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
@@ -169,4 +169,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)); |
+} |
+ |
} |