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

Unified Diff: Source/core/svg/SVGFEComponentTransferElement.cpp

Issue 1046673006: Add svgAttributeChanged function to SVGFEComponentTransferElement class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/core/svg/SVGFEComponentTransferElement.cpp
diff --git a/Source/core/svg/SVGFEComponentTransferElement.cpp b/Source/core/svg/SVGFEComponentTransferElement.cpp
index 95427c3b9e6b0c299a302e73913ea14eaadf760a..d6ba7c19cf1861210a6fcef363f9570cfb4f3f1c 100644
--- a/Source/core/svg/SVGFEComponentTransferElement.cpp
+++ b/Source/core/svg/SVGFEComponentTransferElement.cpp
@@ -48,6 +48,19 @@ DEFINE_TRACE(SVGFEComponentTransferElement)
DEFINE_NODE_FACTORY(SVGFEComponentTransferElement)
+void SVGFEComponentTransferElement::svgAttributeChanged(const QualifiedName& attrName)
fs 2015/03/31 08:25:50 Please put this method after isSupportedAttribute.
+{
+ if (!isSupportedAttribute(attrName)) {
+ SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
+ return;
+ }
+
fs 2015/03/31 08:25:50 Add SVGElement::InvalidationGuard invalidationGua
+ if (attrName == SVGNames::inAttr) {
+ invalidate();
+ return;
+ }
+}
fs 2015/03/31 08:25:50 ASSERT_NOT_REACHED()
+
bool SVGFEComponentTransferElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());

Powered by Google App Engine
This is Rietveld 408576698