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

Unified Diff: third_party/WebKit/Source/core/style/FilterOperations.cpp

Issue 2490163002: Reland of "Tracking reference filter mutation via SVGElementProxy" (Closed)
Patch Set: Fix double observer unregistration; simplify scope selection; add tests 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/core/style/FilterOperations.cpp
diff --git a/third_party/WebKit/Source/core/style/FilterOperations.cpp b/third_party/WebKit/Source/core/style/FilterOperations.cpp
index 66e8fea6edfe19ebd91710a0cd93fadc7ca7dccb..06d944ce4532a426d7e96301dcc1aafda8cbf40b 100644
--- a/third_party/WebKit/Source/core/style/FilterOperations.cpp
+++ b/third_party/WebKit/Source/core/style/FilterOperations.cpp
@@ -25,9 +25,6 @@
#include "core/style/FilterOperations.h"
-#include "platform/LengthFunctions.h"
-#include "platform/geometry/IntSize.h"
-#include "platform/graphics/filters/FEGaussianBlur.h"
#include <numeric>
namespace blink {
@@ -108,4 +105,18 @@ bool FilterOperations::hasFilterThatMovesPixels() const {
return false;
}
+void FilterOperations::addClient(SVGResourceClient* client) const {
+ for (FilterOperation* operation : m_operations) {
+ if (operation->type() == FilterOperation::REFERENCE)
+ toReferenceFilterOperation(*operation).addClient(client);
+ }
+}
+
+void FilterOperations::removeClient(SVGResourceClient* client) const {
+ for (FilterOperation* operation : m_operations) {
+ if (operation->type() == FilterOperation::REFERENCE)
+ toReferenceFilterOperation(*operation).removeClient(client);
+ }
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/FilterOperations.h ('k') | third_party/WebKit/Source/core/svg/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698