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

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

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.h
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h
index 1b1c82680cb19f6113930738b1135707d7bc4527..b69edd59f8df55796eea0215b8be3833f31b5cab 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h
@@ -28,6 +28,7 @@
namespace blink {
+class Document;
class LayoutObject;
class ComputedStyle;
class LayoutSVGResourceContainer;
@@ -56,6 +57,9 @@ public:
// Called from all SVG layoutObjects styleDidChange() methods.
static void clientStyleChanged(LayoutObject*, StyleDifference, const ComputedStyle& newStyle);
+ // A big hammer used to clear out the SVG image pattern cache: see crbug.com/531258
+ static void invalidateAllResources(Document&);
+
private:
void addResourcesFromLayoutObject(LayoutObject*, const ComputedStyle&);
void removeResourcesFromLayoutObject(LayoutObject*);

Powered by Google App Engine
This is Rietveld 408576698