Changeset 242970 in webkit
- Timestamp:
- Mar 14, 2019, 3:11:42 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 22 edited
-
ChangeLog (modified) (1 diff)
-
svg/SVGAnimateElementBase.cpp (modified) (2 diffs)
-
svg/SVGAnimateMotionElement.cpp (modified) (3 diffs)
-
svg/SVGAnimatedAngle.cpp (modified) (1 diff)
-
svg/SVGAnimatedBoolean.cpp (modified) (1 diff)
-
svg/SVGAnimatedColor.cpp (modified) (1 diff)
-
svg/SVGAnimatedEnumeration.cpp (modified) (1 diff)
-
svg/SVGAnimatedInteger.cpp (modified) (1 diff)
-
svg/SVGAnimatedIntegerOptionalInteger.cpp (modified) (1 diff)
-
svg/SVGAnimatedLength.cpp (modified) (1 diff)
-
svg/SVGAnimatedLengthList.cpp (modified) (1 diff)
-
svg/SVGAnimatedNumber.cpp (modified) (1 diff)
-
svg/SVGAnimatedNumberList.cpp (modified) (1 diff)
-
svg/SVGAnimatedNumberOptionalNumber.cpp (modified) (1 diff)
-
svg/SVGAnimatedPath.cpp (modified) (1 diff)
-
svg/SVGAnimatedPointList.cpp (modified) (1 diff)
-
svg/SVGAnimatedPreserveAspectRatio.cpp (modified) (1 diff)
-
svg/SVGAnimatedRect.cpp (modified) (1 diff)
-
svg/SVGAnimatedTransformList.cpp (modified) (1 diff)
-
svg/SVGAnimationElement.cpp (modified) (9 diffs)
-
svg/SVGAnimationElement.h (modified) (6 diffs)
-
svg/SVGSetElement.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r242964 r242970 1 2019-03-14 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 Use enum class for AnimationMode 4 https://bugs.webkit.org/show_bug.cgi?id=195762 5 6 Reviewed by Tim Horton. 7 8 Convert AnimationMode into an enum class. 9 10 * svg/SVGAnimateElementBase.cpp: 11 (WebCore::SVGAnimateElementBase::calculateFromAndByValues): 12 (WebCore::SVGAnimateElementBase::isAdditive const): 13 * svg/SVGAnimateMotionElement.cpp: 14 (WebCore::SVGAnimateMotionElement::calculateFromAndByValues): 15 (WebCore::SVGAnimateMotionElement::calculateAnimatedValue): 16 (WebCore::SVGAnimateMotionElement::updateAnimationMode): 17 * svg/SVGAnimatedAngle.cpp: 18 (WebCore::SVGAnimatedAngleAnimator::calculateAnimatedValue): 19 * svg/SVGAnimatedBoolean.cpp: 20 (WebCore::SVGAnimatedBooleanAnimator::calculateAnimatedValue): 21 * svg/SVGAnimatedColor.cpp: 22 (WebCore::SVGAnimatedColorAnimator::calculateAnimatedValue): 23 * svg/SVGAnimatedEnumeration.cpp: 24 (WebCore::SVGAnimatedEnumerationAnimator::calculateAnimatedValue): 25 * svg/SVGAnimatedInteger.cpp: 26 (WebCore::SVGAnimatedIntegerAnimator::calculateAnimatedValue): 27 * svg/SVGAnimatedIntegerOptionalInteger.cpp: 28 (WebCore::SVGAnimatedIntegerOptionalIntegerAnimator::calculateAnimatedValue): 29 * svg/SVGAnimatedLength.cpp: 30 (WebCore::SVGAnimatedLengthAnimator::calculateAnimatedValue): 31 * svg/SVGAnimatedLengthList.cpp: 32 (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue): 33 * svg/SVGAnimatedNumber.cpp: 34 (WebCore::SVGAnimatedNumberAnimator::calculateAnimatedValue): 35 * svg/SVGAnimatedNumberList.cpp: 36 (WebCore::SVGAnimatedNumberListAnimator::calculateAnimatedValue): 37 * svg/SVGAnimatedNumberOptionalNumber.cpp: 38 (WebCore::SVGAnimatedNumberOptionalNumberAnimator::calculateAnimatedValue): 39 * svg/SVGAnimatedPath.cpp: 40 (WebCore::SVGAnimatedPathAnimator::calculateAnimatedValue): 41 * svg/SVGAnimatedPointList.cpp: 42 (WebCore::SVGAnimatedPointListAnimator::calculateAnimatedValue): 43 * svg/SVGAnimatedPreserveAspectRatio.cpp: 44 (WebCore::SVGAnimatedPreserveAspectRatioAnimator::calculateAnimatedValue): 45 * svg/SVGAnimatedRect.cpp: 46 (WebCore::SVGAnimatedRectAnimator::calculateAnimatedValue): 47 * svg/SVGAnimatedTransformList.cpp: 48 (WebCore::SVGAnimatedTransformListAnimator::calculateAnimatedValue): 49 * svg/SVGAnimationElement.cpp: 50 (WebCore::SVGAnimationElement::updateAnimationMode): 51 (WebCore::SVGAnimationElement::isAdditive const): 52 (WebCore::SVGAnimationElement::isAccumulated const): 53 (WebCore::SVGAnimationElement::calculateKeyTimesForCalcModePaced): 54 (WebCore::SVGAnimationElement::startedActiveInterval): 55 (WebCore::SVGAnimationElement::updateAnimation): 56 * svg/SVGAnimationElement.h: 57 (WebCore::SVGAnimationElement::adjustFromToListValues): 58 (WebCore::SVGAnimationElement::animateDiscreteType): 59 (WebCore::SVGAnimationElement::animateAdditiveNumber): 60 * svg/SVGSetElement.cpp: 61 (WebCore::SVGSetElement::SVGSetElement): 62 (WebCore::SVGSetElement::updateAnimationMode): 63 1 64 2019-03-14 Ryosuke Niwa <rniwa@webkit.org> 2 65 -
trunk/Source/WebCore/svg/SVGAnimateElementBase.cpp
r239965 r242970 164 164 return false; 165 165 166 if (animationMode() == ByAnimation&& !isAdditive())166 if (animationMode() == AnimationMode::By && !isAdditive()) 167 167 return false; 168 168 169 169 // from-by animation may only be used with attributes that support addition (e.g. most numeric attributes). 170 if (animationMode() == FromByAnimation&& !animatedPropertyTypeSupportsAddition())170 if (animationMode() == AnimationMode::FromBy && !animatedPropertyTypeSupportsAddition()) 171 171 return false; 172 172 … … 413 413 bool SVGAnimateElementBase::isAdditive() const 414 414 { 415 if (animationMode() == ByAnimation || animationMode() == FromByAnimation) {415 if (animationMode() == AnimationMode::By || animationMode() == AnimationMode::FromBy) { 416 416 if (!animatedPropertyTypeSupportsAddition()) 417 417 return false; -
trunk/Source/WebCore/svg/SVGAnimateMotionElement.cpp
r229694 r242970 177 177 { 178 178 m_hasToPointAtEndOfDuration = false; 179 if (animationMode() == ByAnimation&& !isAdditive())179 if (animationMode() == AnimationMode::By && !isAdditive()) 180 180 return false; 181 181 parsePoint(fromString, m_fromPoint); … … 223 223 transform->makeIdentity(); 224 224 225 if (animationMode() != PathAnimation) {225 if (animationMode() != AnimationMode::Path) { 226 226 FloatPoint toPointAtEndOfDuration = m_toPoint; 227 227 if (isAccumulated() && repeatCount && m_hasToPointAtEndOfDuration) … … 289 289 { 290 290 if (!m_animationPath.isEmpty()) 291 setAnimationMode( PathAnimation);291 setAnimationMode(AnimationMode::Path); 292 292 else 293 293 SVGAnimationElement::updateAnimationMode(); -
trunk/Source/WebCore/svg/SVGAnimatedAngle.cpp
r229417 r242970 81 81 ASSERT(m_contextElement); 82 82 83 const auto& fromAngleAndEnumeration = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<std::pair<SVGAngleValue, unsigned>>();83 const auto& fromAngleAndEnumeration = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<std::pair<SVGAngleValue, unsigned>>(); 84 84 auto& toAngleAndEnumeration = to->as<std::pair<SVGAngleValue, unsigned>>(); 85 85 auto& toAtEndOfDurationAngleAndEnumeration = toAtEndOfDuration->as<std::pair<SVGAngleValue, unsigned>>(); -
trunk/Source/WebCore/svg/SVGAnimatedBoolean.cpp
r229417 r242970 71 71 ASSERT(m_contextElement); 72 72 73 const auto fromBoolean = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<bool>();73 const auto fromBoolean = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<bool>(); 74 74 const auto toBoolean = to->as<bool>(); 75 75 auto& animatedBoolean = animated->as<bool>(); -
trunk/Source/WebCore/svg/SVGAnimatedColor.cpp
r229417 r242970 71 71 ASSERT(m_contextElement); 72 72 73 auto fromColor = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<Color>();73 auto fromColor = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<Color>(); 74 74 auto toColor = to->as<Color>(); 75 75 -
trunk/Source/WebCore/svg/SVGAnimatedEnumeration.cpp
r234610 r242970 149 149 ASSERT(m_contextElement); 150 150 151 const auto fromEnumeration = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<unsigned>();151 const auto fromEnumeration = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<unsigned>(); 152 152 const auto toEnumeration = to->as<unsigned>(); 153 153 auto& animatedEnumeration = animated->as<unsigned>(); -
trunk/Source/WebCore/svg/SVGAnimatedInteger.cpp
r229417 r242970 83 83 ASSERT(m_contextElement); 84 84 85 const auto fromInteger = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<int>();85 const auto fromInteger = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<int>(); 86 86 const auto toInteger = to->as<int>(); 87 87 const auto toAtEndOfDurationInteger = toAtEndOfDuration->as<int>(); -
trunk/Source/WebCore/svg/SVGAnimatedIntegerOptionalInteger.cpp
r229417 r242970 79 79 ASSERT(m_contextElement); 80 80 81 const auto& fromIntegerPair = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<std::pair<int, int>>();81 const auto& fromIntegerPair = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<std::pair<int, int>>(); 82 82 const auto& toIntegerPair = to->as<std::pair<int, int>>(); 83 83 const auto& toAtEndOfDurationIntegerPair = toAtEndOfDuration->as<std::pair<int, int>>(); -
trunk/Source/WebCore/svg/SVGAnimatedLength.cpp
r229417 r242970 87 87 ASSERT(m_contextElement); 88 88 89 auto fromSVGLength = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<SVGLengthValue>();89 auto fromSVGLength = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<SVGLengthValue>(); 90 90 auto toSVGLength = to->as<SVGLengthValue>(); 91 91 const auto& toAtEndOfDurationSVGLength = toAtEndOfDuration->as<SVGLengthValue>(); -
trunk/Source/WebCore/svg/SVGAnimatedLengthList.cpp
r229417 r242970 91 91 ASSERT(m_contextElement); 92 92 93 auto fromLengthList = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<SVGLengthListValues>();93 auto fromLengthList = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<SVGLengthListValues>(); 94 94 auto toLengthList = to->as<SVGLengthListValues>(); 95 95 const auto& toAtEndOfDurationLengthList = toAtEndOfDuration->as<SVGLengthListValues>(); -
trunk/Source/WebCore/svg/SVGAnimatedNumber.cpp
r229417 r242970 80 80 ASSERT(m_contextElement); 81 81 82 auto fromNumber = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<float>();82 auto fromNumber = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<float>(); 83 83 auto toNumber = to->as<float>(); 84 84 const auto toAtEndOfDurationNumber = toAtEndOfDuration->as<float>(); -
trunk/Source/WebCore/svg/SVGAnimatedNumberList.cpp
r229417 r242970 82 82 ASSERT(m_animationElement); 83 83 84 const auto& fromNumberList = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<SVGNumberListValues>();84 const auto& fromNumberList = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<SVGNumberListValues>(); 85 85 const auto& toNumberList = to->as<SVGNumberListValues>(); 86 86 const auto& toAtEndOfDurationNumberList = toAtEndOfDuration->as<SVGNumberListValues>(); -
trunk/Source/WebCore/svg/SVGAnimatedNumberOptionalNumber.cpp
r229417 r242970 79 79 ASSERT(m_contextElement); 80 80 81 const auto& fromNumberPair = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<std::pair<float, float>>();81 const auto& fromNumberPair = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<std::pair<float, float>>(); 82 82 const auto& toNumberPair = to->as<std::pair<float, float>>(); 83 83 const auto& toAtEndOfDurationNumberPair = toAtEndOfDuration->as<std::pair<float, float>>(); -
trunk/Source/WebCore/svg/SVGAnimatedPath.cpp
r229417 r242970 109 109 ASSERT(m_contextElement); 110 110 111 bool isToAnimation = m_animationElement->animationMode() == ToAnimation;111 bool isToAnimation = m_animationElement->animationMode() == AnimationMode::To; 112 112 auto& animatedPath = animated->as<SVGPathByteStream>(); 113 113 -
trunk/Source/WebCore/svg/SVGAnimatedPointList.cpp
r229417 r242970 83 83 ASSERT(m_animationElement); 84 84 85 const auto& fromPointList = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<SVGPointListValues>();85 const auto& fromPointList = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<SVGPointListValues>(); 86 86 const auto& toPointList = to->as<SVGPointListValues>(); 87 87 const auto& toAtEndOfDurationPointList = toAtEndOfDuration->as<SVGPointListValues>(); -
trunk/Source/WebCore/svg/SVGAnimatedPreserveAspectRatio.cpp
r229417 r242970 70 70 ASSERT(m_contextElement); 71 71 72 const auto& fromPreserveAspectRatio = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<SVGPreserveAspectRatioValue>();72 const auto& fromPreserveAspectRatio = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<SVGPreserveAspectRatioValue>(); 73 73 const auto& toPreserveAspectRatio = to->as<SVGPreserveAspectRatioValue>(); 74 74 auto& animatedPreserveAspectRatio = animated->as<SVGPreserveAspectRatioValue>(); -
trunk/Source/WebCore/svg/SVGAnimatedRect.cpp
r229417 r242970 74 74 ASSERT(m_contextElement); 75 75 76 const auto& fromRect = (m_animationElement->animationMode() == ToAnimation? animated : from)->as<FloatRect>();76 const auto& fromRect = (m_animationElement->animationMode() == AnimationMode::To ? animated : from)->as<FloatRect>(); 77 77 const auto& toRect = to->as<FloatRect>(); 78 78 const auto& toAtEndOfDurationRect = toAtEndOfDuration->as<FloatRect>(); -
trunk/Source/WebCore/svg/SVGAnimatedTransformList.cpp
r229417 r242970 106 106 107 107 // Never resize the animatedTransformList to the toTransformList size, instead either clear the list or append to it. 108 if (!animatedTransformList.isEmpty() && (!m_animationElement->isAdditive() || m_animationElement->animationMode() == ToAnimation))108 if (!animatedTransformList.isEmpty() && (!m_animationElement->isAdditive() || m_animationElement->animationMode() == AnimationMode::To)) 109 109 animatedTransformList.clear(); 110 110 -
trunk/Source/WebCore/svg/SVGAnimationElement.cpp
r234620 r242970 269 269 // http://www.w3.org/TR/2001/REC-smil-animation-20010904/#AnimFuncValues 270 270 if (hasAttribute(SVGNames::valuesAttr)) 271 setAnimationMode( ValuesAnimation);271 setAnimationMode(AnimationMode::Values); 272 272 else if (!toValue().isEmpty()) 273 setAnimationMode(fromValue().isEmpty() ? ToAnimation : FromToAnimation);273 setAnimationMode(fromValue().isEmpty() ? AnimationMode::To : AnimationMode::FromTo); 274 274 else if (!byValue().isEmpty()) 275 setAnimationMode(fromValue().isEmpty() ? ByAnimation : FromByAnimation);275 setAnimationMode(fromValue().isEmpty() ? AnimationMode::By : AnimationMode::FromBy); 276 276 else 277 setAnimationMode( NoAnimation);277 setAnimationMode(AnimationMode::None); 278 278 } 279 279 … … 328 328 static NeverDestroyed<const AtomicString> sum("sum", AtomicString::ConstructFromLiteral); 329 329 const AtomicString& value = attributeWithoutSynchronization(SVGNames::additiveAttr); 330 return value == sum || animationMode() == ByAnimation;330 return value == sum || animationMode() == AnimationMode::By; 331 331 } 332 332 … … 335 335 static NeverDestroyed<const AtomicString> sum("sum", AtomicString::ConstructFromLiteral); 336 336 const AtomicString& value = attributeWithoutSynchronization(SVGNames::accumulateAttr); 337 return value == sum && animationMode() != ToAnimation;337 return value == sum && animationMode() != AnimationMode::To; 338 338 } 339 339 … … 370 370 { 371 371 ASSERT(calcMode() == CalcMode::Paced); 372 ASSERT(animationMode() == ValuesAnimation);372 ASSERT(animationMode() == AnimationMode::Values); 373 373 374 374 unsigned valuesCount = m_values.size(); … … 555 555 if (!splinesCount 556 556 || (hasAttributeWithoutSynchronization(SVGNames::keyPointsAttr) && m_keyPoints.size() - 1 != splinesCount) 557 || (animationMode == ValuesAnimation&& m_values.size() - 1 != splinesCount)557 || (animationMode == AnimationMode::Values && m_values.size() - 1 != splinesCount) 558 558 || (hasAttributeWithoutSynchronization(SVGNames::keyTimesAttr) && m_keyTimes.size() - 1 != splinesCount)) 559 559 return; … … 563 563 String to = toValue(); 564 564 String by = byValue(); 565 if (animationMode == NoAnimation)566 return; 567 if ((animationMode == FromToAnimation || animationMode == FromByAnimation || animationMode == ToAnimation || animationMode == ByAnimation)565 if (animationMode == AnimationMode::None) 566 return; 567 if ((animationMode == AnimationMode::FromTo || animationMode == AnimationMode::FromBy || animationMode == AnimationMode::To || animationMode == AnimationMode::By) 568 568 && (hasAttributeWithoutSynchronization(SVGNames::keyPointsAttr) && hasAttributeWithoutSynchronization(SVGNames::keyTimesAttr) && (m_keyTimes.size() < 2 || m_keyTimes.size() != m_keyPoints.size()))) 569 569 return; 570 if (animationMode == FromToAnimation)570 if (animationMode == AnimationMode::FromTo) 571 571 m_animationValid = calculateFromAndToValues(from, to); 572 else if (animationMode == ToAnimation) {572 else if (animationMode == AnimationMode::To) { 573 573 // For to-animations the from value is the current accumulated value from lower priority animations. 574 574 // The value is not static and is determined during the animation. 575 575 m_animationValid = calculateFromAndToValues(emptyString(), to); 576 } else if (animationMode == FromByAnimation)576 } else if (animationMode == AnimationMode::FromBy) 577 577 m_animationValid = calculateFromAndByValues(from, by); 578 else if (animationMode == ByAnimation)578 else if (animationMode == AnimationMode::By) 579 579 m_animationValid = calculateFromAndByValues(emptyString(), by); 580 else if (animationMode == ValuesAnimation) {580 else if (animationMode == AnimationMode::Values) { 581 581 m_animationValid = m_values.size() >= 1 582 582 && (calcMode == CalcMode::Paced || !hasAttributeWithoutSynchronization(SVGNames::keyTimesAttr) || hasAttributeWithoutSynchronization(SVGNames::keyPointsAttr) || (m_values.size() == m_keyTimes.size())) … … 588 588 if (calcMode == CalcMode::Paced && m_animationValid) 589 589 calculateKeyTimesForCalcModePaced(); 590 } else if (animationMode == PathAnimation)590 } else if (animationMode == AnimationMode::Path) 591 591 m_animationValid = calcMode == CalcMode::Paced || !hasAttributeWithoutSynchronization(SVGNames::keyPointsAttr) || (m_keyTimes.size() > 1 && m_keyTimes.size() == m_keyPoints.size()); 592 592 } … … 600 600 CalcMode calcMode = this->calcMode(); 601 601 AnimationMode animationMode = this->animationMode(); 602 if (animationMode == ValuesAnimation) {602 if (animationMode == AnimationMode::Values) { 603 603 String from; 604 604 String to; … … 615 615 else if (m_keyPoints.isEmpty() && calcMode == CalcMode::Spline && m_keyTimes.size() > 1) 616 616 effectivePercent = calculatePercentForSpline(percent, calculateKeyTimesIndex(percent)); 617 else if (animationMode == FromToAnimation || animationMode == ToAnimation)617 else if (animationMode == AnimationMode::FromTo || animationMode == AnimationMode::To) 618 618 effectivePercent = calculatePercentForFromTo(percent); 619 619 else -
trunk/Source/WebCore/svg/SVGAnimationElement.h
r234620 r242970 37 37 class TimeContainer; 38 38 39 enum AnimationMode{40 No Animation,41 FromTo Animation,42 FromBy Animation,43 To Animation,44 By Animation,45 Values Animation,46 Path Animation// Used by AnimateMotion.39 enum class AnimationMode : uint8_t { 40 None, 41 FromTo, 42 FromBy, 43 To, 44 By, 45 Values, 46 Path // Used by AnimateMotion. 47 47 }; 48 48 … … 51 51 enum AnimatedPropertyValueType { RegularPropertyValue, CurrentColorValue, InheritValue }; 52 52 53 enum class CalcMode { Discrete, Linear, Paced, Spline };53 enum class CalcMode : uint8_t { Discrete, Linear, Paced, Spline }; 54 54 55 55 class SVGAnimationElement : public SVGSMILElement, public SVGExternalResourcesRequired, public SVGTests { … … 106 106 if (fromListSize != toListSize && fromListSize) { 107 107 if (percentage < 0.5) { 108 if (animationMode() != ToAnimation)108 if (animationMode() != AnimationMode::To) 109 109 animatedList = AnimatedType(fromList); 110 110 } else … … 123 123 template<typename AnimatedType> void animateDiscreteType(float percentage, const AnimatedType& fromType, const AnimatedType& toType, AnimatedType& animatedType) 124 124 { 125 if ((animationMode() == FromToAnimation && percentage > 0.5) || animationMode() == ToAnimation|| percentage == 1) {125 if ((animationMode() == AnimationMode::FromTo && percentage > 0.5) || animationMode() == AnimationMode::To || percentage == 1) { 126 126 animatedType = AnimatedType(toType); 127 127 return; … … 141 141 number += toAtEndOfDurationNumber * repeatCount; 142 142 143 if (isAdditive() && animationMode() != ToAnimation)143 if (isAdditive() && animationMode() != AnimationMode::To) 144 144 animatedNumber += number; 145 145 else … … 221 221 bool m_hasInvalidCSSAttributeType { false }; 222 222 CalcMode m_calcMode { CalcMode::Linear }; 223 AnimationMode m_animationMode { NoAnimation};223 AnimationMode m_animationMode { AnimationMode::None }; 224 224 AttributeOwnerProxy m_attributeOwnerProxy { *this }; 225 225 }; -
trunk/Source/WebCore/svg/SVGSetElement.cpp
r229694 r242970 32 32 : SVGAnimateElementBase(tagName, document) 33 33 { 34 setAnimationMode( ToAnimation);34 setAnimationMode(AnimationMode::To); 35 35 ASSERT(hasTagName(SVGNames::setTag)); 36 36 } … … 43 43 void SVGSetElement::updateAnimationMode() 44 44 { 45 // No-op, as <set> has a constant animation mode of ToAnimation.45 // No-op, as <set> has a constant animation mode of AnimationMode::To. 46 46 // See: http://www.w3.org/TR/SVG/single-page.html#animate-SetElement 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.