Changeset 112240 in webkit
- Timestamp:
- Mar 27, 2012 3:22:35 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r112239 r112240 1 2012-03-27 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Enable animVal support for SVGAnimatedString 4 https://bugs.webkit.org/show_bug.cgi?id=82316 5 6 Reviewed by Zoltan Herczeg. 7 8 Add new test covering animVal+SVGAnimatedString. 9 10 * svg/animations/script-tests/svgstring-animation-1.js: Added. 11 (sample1): 12 (sample2): 13 (sample3): 14 (executeTest): 15 * svg/animations/svgstring-animation-1-expected.txt: Added. 16 * svg/animations/svgstring-animation-1.html: Added. 17 1 18 2012-03-27 Philippe Normand <pnormand@igalia.com> 2 19 -
trunk/Source/WebCore/ChangeLog
r112238 r112240 1 2012-03-27 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Enable animVal support for SVGAnimatedString 4 https://bugs.webkit.org/show_bug.cgi?id=82316 5 6 Reviewed by Zoltan Herczeg. 7 8 Enable animVal support for SVGAnimatedString. Very simple now that everything is prepared. 9 All we have to do is add startAnimValAnimation/etc. methods to SVGAnimatedStringAnimator. 10 11 Test: svg/animations/svgstring-animation-1.html 12 13 * svg/SVGAnimatedString.cpp: 14 (WebCore::SVGAnimatedStringAnimator::startAnimValAnimation): 15 (WebCore::SVGAnimatedStringAnimator::stopAnimValAnimation): 16 (WebCore::SVGAnimatedStringAnimator::resetAnimValToBaseVal): 17 (WebCore::SVGAnimatedStringAnimator::animValWillChange): 18 (WebCore::SVGAnimatedStringAnimator::animValDidChange): 19 * svg/SVGAnimatedString.h: 20 (SVGAnimatedStringAnimator): 21 * svg/SVGAnimatedType.cpp: 22 (WebCore::SVGAnimatedType::supportsAnimVal): 23 1 24 2012-03-27 Levi Weintraub <leviw@chromium.org> 2 25 -
trunk/Source/WebCore/svg/SVGAnimatedString.cpp
r95901 r112240 37 37 animatedType->string() = string; 38 38 return animatedType.release(); 39 } 40 41 PassOwnPtr<SVGAnimatedType> SVGAnimatedStringAnimator::startAnimValAnimation(const Vector<SVGAnimatedProperty*>& properties) 42 { 43 return SVGAnimatedType::createString(constructFromOneBaseValue<String, SVGAnimatedString>(properties)); 44 } 45 46 void SVGAnimatedStringAnimator::stopAnimValAnimation(const Vector<SVGAnimatedProperty*>& properties) 47 { 48 SVGAnimatedTypeAnimator::stopAnimValAnimationForType<SVGAnimatedString>(properties); 49 } 50 51 void SVGAnimatedStringAnimator::resetAnimValToBaseVal(const Vector<SVGAnimatedProperty*>& properties, SVGAnimatedType* type) 52 { 53 resetFromOneBaseValue<String, SVGAnimatedString>(properties, type, &SVGAnimatedType::string); 54 } 55 56 void SVGAnimatedStringAnimator::animValWillChange(const Vector<SVGAnimatedProperty*>& properties) 57 { 58 animValWillChangeForType<SVGAnimatedString>(properties); 59 } 60 61 void SVGAnimatedStringAnimator::animValDidChange(const Vector<SVGAnimatedProperty*>& properties) 62 { 63 animValDidChangeForType<SVGAnimatedString>(properties); 39 64 } 40 65 -
trunk/Source/WebCore/svg/SVGAnimatedString.h
r95901 r112240 40 40 41 41 class SVGAnimatedStringAnimator : public SVGAnimatedTypeAnimator { 42 43 42 public: 44 43 SVGAnimatedStringAnimator(SVGAnimationElement*, SVGElement*); … … 46 45 47 46 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&); 47 virtual PassOwnPtr<SVGAnimatedType> startAnimValAnimation(const Vector<SVGAnimatedProperty*>&); 48 virtual void stopAnimValAnimation(const Vector<SVGAnimatedProperty*>&); 49 virtual void resetAnimValToBaseVal(const Vector<SVGAnimatedProperty*>&, SVGAnimatedType*); 50 virtual void animValWillChange(const Vector<SVGAnimatedProperty*>&); 51 virtual void animValDidChange(const Vector<SVGAnimatedProperty*>&); 48 52 49 53 virtual void calculateFromAndToValues(OwnPtr<SVGAnimatedType>& fromValue, OwnPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString); -
trunk/Source/WebCore/svg/SVGAnimatedType.cpp
r112231 r112240 480 480 case AnimatedNumberList: 481 481 case AnimatedNumberOptionalNumber: 482 case AnimatedString: 482 483 case AnimatedTransformList: 483 484 return true; … … 488 489 case AnimatedPreserveAspectRatio: 489 490 case AnimatedRect: 490 case AnimatedString:491 491 case AnimatedUnknown: 492 492 return false;
Note: See TracChangeset
for help on using the changeset viewer.