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

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

Issue 1607633003: Code cleanup: Remove SVGInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused assertion variable to make release compile Created 4 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: third_party/WebKit/Source/core/animation/SVGInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/SVGInterpolation.h b/third_party/WebKit/Source/core/animation/SVGInterpolation.h
deleted file mode 100644
index 986395b14b2163afa5652b94b66deca98ca8574f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/animation/SVGInterpolation.h
+++ /dev/null
@@ -1,48 +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 SVGInterpolation_h
-#define SVGInterpolation_h
-
-#include "core/animation/Interpolation.h"
-#include "core/animation/PropertyHandle.h"
-#include "core/svg/properties/SVGAnimatedProperty.h"
-
-namespace blink {
-
-class SVGInterpolation : public Interpolation {
-public:
- bool isSVGInterpolation() const final { return true; }
-
- SVGAnimatedPropertyBase* attribute() const { return m_attribute.get(); }
-
- const QualifiedName& attributeName() const { return m_attribute->attributeName(); }
-
- PropertyHandle property() const final
- {
- return PropertyHandle(attributeName());
- }
-
- void apply(SVGElement& targetElement) const
- {
- targetElement.setWebAnimatedAttribute(attributeName(), interpolatedValue(targetElement));
- }
-
- virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const = 0;
-
-protected:
- SVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
- : Interpolation(start, end)
- , m_attribute(attribute)
- {
- }
-
- RefPtrWillBePersistent<SVGAnimatedPropertyBase> m_attribute;
-};
-
-DEFINE_TYPE_CASTS(SVGInterpolation, Interpolation, value, value->isSVGInterpolation(), value.isSVGInterpolation());
-
-}
-
-#endif // SVGInterpolation_h

Powered by Google App Engine
This is Rietveld 408576698