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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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
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));
+}
+
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h ('k') | third_party/WebKit/Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698