diff options
Diffstat (limited to 'Source/WebCore/svg/SVGAnimatedEnumeration.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGAnimatedEnumeration.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/svg/SVGAnimatedEnumeration.cpp b/Source/WebCore/svg/SVGAnimatedEnumeration.cpp index b861b6033..819d257e6 100644 --- a/Source/WebCore/svg/SVGAnimatedEnumeration.cpp +++ b/Source/WebCore/svg/SVGAnimatedEnumeration.cpp @@ -18,8 +18,6 @@ */ #include "config.h" - -#if ENABLE(SVG) #include "SVGAnimatedEnumeration.h" #include "SVGAnimationElement.h" @@ -64,7 +62,6 @@ static inline unsigned enumerationValueForTargetAttribute(SVGElement* targetElem if (attrName == SVGNames::spreadMethodAttr) return SVGPropertyTraits<SVGSpreadMethodType>::fromString(value); -#if ENABLE(FILTERS) if (attrName == SVGNames::edgeModeAttr) return SVGPropertyTraits<EdgeModeType>::fromString(value); @@ -88,15 +85,17 @@ static inline unsigned enumerationValueForTargetAttribute(SVGElement* targetElem return SVGPropertyTraits<ComponentTransferType>::fromString(value); } - if (attrName == SVGNames::modeAttr) - return SVGPropertyTraits<BlendModeType>::fromString(value); + if (attrName == SVGNames::modeAttr) { + BlendMode mode = BlendModeNormal; + parseBlendMode(value, mode); + return mode; + } if (attrName == SVGNames::stitchTilesAttr) return SVGPropertyTraits<SVGStitchOptions>::fromString(value); if (attrName == SVGNames::xChannelSelectorAttr) return SVGPropertyTraits<ChannelSelectorType>::fromString(value); if (attrName == SVGNames::yChannelSelectorAttr) return SVGPropertyTraits<ChannelSelectorType>::fromString(value); -#endif ASSERT_NOT_REACHED(); return 0; @@ -125,7 +124,7 @@ void SVGAnimatedEnumerationAnimator::stopAnimValAnimation(const SVGElementAnimat stopAnimValAnimationForType<SVGAnimatedEnumeration>(animatedTypes); } -void SVGAnimatedEnumerationAnimator::resetAnimValToBaseVal(const SVGElementAnimatedPropertyList& animatedTypes, SVGAnimatedType* type) +void SVGAnimatedEnumerationAnimator::resetAnimValToBaseVal(const SVGElementAnimatedPropertyList& animatedTypes, SVGAnimatedType& type) { resetFromBaseValue<SVGAnimatedEnumeration>(animatedTypes, type, &SVGAnimatedType::enumeration); } @@ -164,5 +163,3 @@ float SVGAnimatedEnumerationAnimator::calculateDistance(const String&, const Str } } - -#endif // ENABLE(SVG) |