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

Unified Diff: third_party/WebKit/Source/core/animation/RectSVGInterpolation.h

Issue 1431593004: Web Animations: Migrate SVG Rect interpolation to interpolation types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: third_party/WebKit/Source/core/animation/RectSVGInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/RectSVGInterpolation.h b/third_party/WebKit/Source/core/animation/RectSVGInterpolation.h
deleted file mode 100644
index b9b9048c5f1d341a10fdf0f630e0b090ff68f936..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/animation/RectSVGInterpolation.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef RectSVGInterpolation_h
-#define RectSVGInterpolation_h
-
-#include "core/animation/SVGInterpolation.h"
-#include "core/svg/SVGRect.h"
-
-namespace blink {
-
-class SVGRect;
-
-class RectSVGInterpolation : public SVGInterpolation {
-public:
- static PassRefPtr<RectSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
- {
- return adoptRef(new RectSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute));
- }
-
- PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final
- {
- return fromInterpolableValue(*m_cachedValue);
- }
-
-private:
- RectSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
- : SVGInterpolation(start, end, attribute)
- {
- }
-
- static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase*);
-
- static PassRefPtrWillBeRawPtr<SVGRect> fromInterpolableValue(const InterpolableValue&);
-};
-
-}
-
-#endif // RectSVGInterpolation_h

Powered by Google App Engine
This is Rietveld 408576698