Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1140)

Unified Diff: Source/core/svg/SVGAnimatedNewPropertyAnimator.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGAnimatedNewPropertyAnimator.h
diff --git a/Source/core/svg/SVGAnimatedNewPropertyAnimator.h b/Source/core/svg/SVGAnimatedNewPropertyAnimator.h
index 5747b3b33af3d25440683ef9c6b98e967f651968..712774547d8730cebefeb772cb1dba1772d49ee5 100644
--- a/Source/core/svg/SVGAnimatedNewPropertyAnimator.h
+++ b/Source/core/svg/SVGAnimatedNewPropertyAnimator.h
@@ -40,7 +40,7 @@ class NewSVGAnimatedPropertyBase;
// Bridges new SVGProperty impl. to existing SVG animation impl.
class SVGAnimatedNewPropertyAnimator : public SVGAnimatedTypeAnimator {
public:
- SVGAnimatedNewPropertyAnimator(SVGAnimationElement*, SVGElement*);
+ SVGAnimatedNewPropertyAnimator(SVGAnimationElement*, SVGElement*, AnimatedPropertyType);
virtual ~SVGAnimatedNewPropertyAnimator();
PassRefPtr<NewSVGPropertyBase> createPropertyForAnimation(const String&);
@@ -59,7 +59,13 @@ public:
virtual float calculateDistance(const String& fromString, const String& toString);
private:
+ PassRefPtr<NewSVGPropertyBase> resetAnimation(const SVGElementAnimatedPropertyList&);
+
+ // If this is not null, |this| is animating a SVG DOM animVal.
+ // If this is null, |this| is animating a CSS property.
RefPtr<NewSVGAnimatedPropertyBase> m_animatedProperty;
+
+ AnimatedPropertyType m_propertyType;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698