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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 2401343002: Tracking filter mutation via SVGElementProxy (Closed)
Patch Set: Rebase Created 4 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/modules/canvas2d/CanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
index 7f4827d051da66bb8b6a89fa34e45cba8de266ca..f3c4130a7154fe8e96587e11e32b3eb7abf46716 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
@@ -31,6 +31,7 @@
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#include "core/html/canvas/CanvasRenderingContext.h"
#include "core/html/canvas/CanvasRenderingContextFactory.h"
+#include "core/style/FilterOperations.h"
#include "core/svg/SVGResourceClient.h"
#include "modules/ModulesExport.h"
#include "modules/canvas2d/BaseRenderingContext2D.h"
@@ -151,7 +152,12 @@ class MODULES_EXPORT CanvasRenderingContext2D final
String getIdFromControl(const Element*) override;
// SVGResourceClient implementation
- void filterNeedsInvalidation() override;
+ TreeScope* treeScope() override;
+ void resourceContentChanged() override;
+ void resourceElementChanged() override;
+
+ void updateFilterReferences(const FilterOperations&);
+ void clearFilterReferences();
// BaseRenderingContext2D implementation
bool originClean() const final;
@@ -247,6 +253,7 @@ class MODULES_EXPORT CanvasRenderingContext2D final
Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
+ FilterOperations m_filterOperations;
HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
bool m_pruneLocalFontCacheScheduled;
ListHashSet<String> m_fontLRUList;

Powered by Google App Engine
This is Rietveld 408576698