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

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: modify testcase-3 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
« no previous file with comments | « Source/core/svg/SVGFEComponentTransferElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEComponentTransferElement.cpp
diff --git a/Source/core/svg/SVGFEComponentTransferElement.cpp b/Source/core/svg/SVGFEComponentTransferElement.cpp
index 95427c3b9e6b0c299a302e73913ea14eaadf760a..482f08fa6975d9ecb259c5d5bacc5181b27bfcb4 100644
--- a/Source/core/svg/SVGFEComponentTransferElement.cpp
+++ b/Source/core/svg/SVGFEComponentTransferElement.cpp
@@ -56,6 +56,23 @@ bool SVGFEComponentTransferElement::isSupportedAttribute(const QualifiedName& at
return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
}
+void SVGFEComponentTransferElement::svgAttributeChanged(const QualifiedName& attrName)
+{
+ if (!isSupportedAttribute(attrName)) {
+ SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
+ return;
+ }
+
+ SVGElement::InvalidationGuard invalidationGuard(this);
+
+ if (attrName == SVGNames::inAttr) {
+ invalidate();
+ return;
+ }
+
+ ASSERT_NOT_REACHED();
+}
+
PassRefPtrWillBeRawPtr<FilterEffect> SVGFEComponentTransferElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value()));
« no previous file with comments | « Source/core/svg/SVGFEComponentTransferElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698