summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp b/Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp
index c35a344..6ed5813 100644
--- a/Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp
+++ b/Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp
@@ -81,6 +81,17 @@ void SVGComponentTransferFunctionElement::parseMappedAttribute(Attribute* attr)
SVGElement::parseMappedAttribute(attr);
}
+void SVGComponentTransferFunctionElement::svgAttributeChanged(const QualifiedName& attrName)
+{
+ SVGElement::svgAttributeChanged(attrName);
+
+ if (attrName == SVGNames::typeAttr) {
+ ComponentTransferType componentType = static_cast<ComponentTransferType>(type());
+ if (componentType < FECOMPONENTTRANSFER_TYPE_UNKNOWN || componentType > FECOMPONENTTRANSFER_TYPE_GAMMA)
+ setTypeBaseValue(FECOMPONENTTRANSFER_TYPE_UNKNOWN);
+ }
+}
+
void SVGComponentTransferFunctionElement::synchronizeProperty(const QualifiedName& attrName)
{
SVGElement::synchronizeProperty(attrName);