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

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

Issue 2401343002: Tracking filter mutation via SVGElementProxy (Closed)
Patch Set: Rebase Created 4 years, 2 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/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 b5680fc25396643242adfb74f9ac1ed8cfb741fe..fc8c1953ae17a406f3a48adeaf58229aa452f107 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"
@@ -154,7 +155,11 @@ class MODULES_EXPORT CanvasRenderingContext2D final
String getIdFromControl(const Element*) override;
// SVGResourceClient implementation
- void filterNeedsInvalidation() override;
+ void resourceContentChanged(SVGElementProxy*) override;
+ void resourceReferenceChanged(SVGElementProxy*) override;
+
+ void updateFilterReferences(const FilterOperations&);
+ void clearFilterReferences();
// BaseRenderingContext2D implementation
bool originClean() const final;
@@ -250,6 +255,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