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

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

Issue 1309393007: [poc] redecode Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resetColorProfileForTesting rename 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..bdbf6d2fd72e434e12dde24bef9df6c52aa3bc50 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 SCG 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