diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFEDisplacementMapElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGFEDisplacementMapElement.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGFEDisplacementMapElement.cpp b/Source/WebCore/svg/SVGFEDisplacementMapElement.cpp index 56315b6..b5f2e32 100644 --- a/Source/WebCore/svg/SVGFEDisplacementMapElement.cpp +++ b/Source/WebCore/svg/SVGFEDisplacementMapElement.cpp @@ -116,6 +116,24 @@ void SVGFEDisplacementMapElement::synchronizeProperty(const QualifiedName& attrN synchronizeScale(); } +AttributeToPropertyTypeMap& SVGFEDisplacementMapElement::attributeToPropertyTypeMap() +{ + DEFINE_STATIC_LOCAL(AttributeToPropertyTypeMap, s_attributeToPropertyTypeMap, ()); + return s_attributeToPropertyTypeMap; +} + +void SVGFEDisplacementMapElement::fillAttributeToPropertyTypeMap() +{ + AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap(); + + SVGFilterPrimitiveStandardAttributes::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap); + attributeToPropertyTypeMap.set(SVGNames::inAttr, AnimatedString); + attributeToPropertyTypeMap.set(SVGNames::in2Attr, AnimatedString); + attributeToPropertyTypeMap.set(SVGNames::xChannelSelectorAttr, AnimatedEnumeration); + attributeToPropertyTypeMap.set(SVGNames::yChannelSelectorAttr, AnimatedEnumeration); + attributeToPropertyTypeMap.set(SVGNames::scaleAttr, AnimatedNumber); +} + PassRefPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filterBuilder, Filter* filter) { FilterEffect* input1 = filterBuilder->getEffectById(in1()); |