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

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

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 years, 11 months 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/SVGLengthListTearOff.h
diff --git a/Source/core/animation/AnimatableNeutral.h b/Source/core/svg/SVGLengthListTearOff.h
similarity index 62%
copy from Source/core/animation/AnimatableNeutral.h
copy to Source/core/svg/SVGLengthListTearOff.h
index 5b8759ce45bcc445194bd79896b71a01dee33944..8f81d0212853f5d49a8185dd6f15922dce6fb91d 100644
--- a/Source/core/animation/AnimatableNeutral.h
+++ b/Source/core/svg/SVGLengthListTearOff.h
@@ -28,35 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AnimatableNeutral_h
-#define AnimatableNeutral_h
+#ifndef SVGLengthListTearOff_h
+#define SVGLengthListTearOff_h
-#include "core/animation/AnimatableValue.h"
+#include "core/svg/SVGLengthList.h"
+#include "core/svg/properties/NewSVGListPropertyTearOffHelper.h"
namespace WebCore {
-class AnimatableNeutral : public AnimatableValue {
+class SVGLengthListTearOff :
+ public NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>,
+ public ScriptWrappable {
public:
- virtual ~AnimatableNeutral() { }
-
-protected:
- static PassRefPtr<AnimatableNeutral> create() { return adoptRef(new AnimatableNeutral()); }
- virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue* value, double fraction) const OVERRIDE
+ static PassRefPtr<SVGLengthListTearOff> create(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
{
- ASSERT_NOT_REACHED();
- return 0;
+ return adoptRef(new SVGLengthListTearOff(target, contextElement, propertyIsAnimVal, attributeName));
}
private:
- friend class AnimatableValue;
- virtual AnimatableType type() const OVERRIDE { return TypeNeutral; }
- virtual bool equalTo(const AnimatableValue* value) const OVERRIDE
+ SVGLengthListTearOff(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
+ : NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>(target, contextElement, propertyIsAnimVal, attributeName)
{
- ASSERT_NOT_REACHED();
- return true;
+ ScriptWrappable::init(this);
}
};
} // namespace WebCore
-#endif // AnimatableNeutral_h
+#endif // SVGLengthListTearOff_h_

Powered by Google App Engine
This is Rietveld 408576698