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*); |