From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/svg/SVGAnimatedEnumeration.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Source/WebCore/svg/SVGAnimatedEnumeration.cpp') 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::fromString(value); -#if ENABLE(FILTERS) if (attrName == SVGNames::edgeModeAttr) return SVGPropertyTraits::fromString(value); @@ -88,15 +85,17 @@ static inline unsigned enumerationValueForTargetAttribute(SVGElement* targetElem return SVGPropertyTraits::fromString(value); } - if (attrName == SVGNames::modeAttr) - return SVGPropertyTraits::fromString(value); + if (attrName == SVGNames::modeAttr) { + BlendMode mode = BlendModeNormal; + parseBlendMode(value, mode); + return mode; + } if (attrName == SVGNames::stitchTilesAttr) return SVGPropertyTraits::fromString(value); if (attrName == SVGNames::xChannelSelectorAttr) return SVGPropertyTraits::fromString(value); if (attrName == SVGNames::yChannelSelectorAttr) return SVGPropertyTraits::fromString(value); -#endif ASSERT_NOT_REACHED(); return 0; @@ -125,7 +124,7 @@ void SVGAnimatedEnumerationAnimator::stopAnimValAnimation(const SVGElementAnimat stopAnimValAnimationForType(animatedTypes); } -void SVGAnimatedEnumerationAnimator::resetAnimValToBaseVal(const SVGElementAnimatedPropertyList& animatedTypes, SVGAnimatedType* type) +void SVGAnimatedEnumerationAnimator::resetAnimValToBaseVal(const SVGElementAnimatedPropertyList& animatedTypes, SVGAnimatedType& type) { resetFromBaseValue(animatedTypes, type, &SVGAnimatedType::enumeration); } @@ -164,5 +163,3 @@ float SVGAnimatedEnumerationAnimator::calculateDistance(const String&, const Str } } - -#endif // ENABLE(SVG) -- cgit v1.2.1