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

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: Draw layered images with a recording GraphicContext Created 5 years, 1 month 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..bbed1f83c4f1be34feaef757b737a94e7d2e2d55 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 pattern cache: refer to 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