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

Unified Diff: third_party/WebKit/Source/core/animation/NumberSVGInterpolation.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/NumberSVGInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/NumberSVGInterpolation.h b/third_party/WebKit/Source/core/animation/NumberSVGInterpolation.h
deleted file mode 100644
index 8344b00fa1ce799f3f387bf114848576478d858e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/animation/NumberSVGInterpolation.h
+++ /dev/null
@@ -1,58 +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 NumberSVGInterpolation_h
-#define NumberSVGInterpolation_h
-
-#include "core/animation/SVGInterpolation.h"
-#include "core/svg/SVGNumber.h"
-#include "core/svg/SVGNumberList.h"
-
-namespace blink {
-
-enum SVGNumberNegativeValuesMode {
- AllowNegativeNumbers,
- ForbidNegativeNumbers
-};
-
-class NumberSVGInterpolation : public SVGInterpolation {
-public:
- typedef SVGNumberList ListType;
- typedef void NonInterpolableType;
-
- static PassRefPtr<NumberSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, SVGNumberNegativeValuesMode negativeValuesMode)
- {
- return adoptRef(new NumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute, negativeValuesMode));
- }
-
- static bool canCreateFrom(SVGPropertyBase* value)
- {
- return true;
- }
-
- PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final
- {
- return fromInterpolableValue(*m_cachedValue, m_negativeValuesMode);
- }
-
- static PassOwnPtr<InterpolableNumber> toInterpolableValue(SVGPropertyBase* value)
- {
- return InterpolableNumber::create(toSVGNumber(value)->value());
- }
-
- static PassRefPtrWillBeRawPtr<SVGNumber> fromInterpolableValue(const InterpolableValue&, SVGNumberNegativeValuesMode = AllowNegativeNumbers);
-
-private:
- NumberSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, SVGNumberNegativeValuesMode negativeValuesMode)
- : SVGInterpolation(start, end, attribute)
- , m_negativeValuesMode(negativeValuesMode)
- {
- }
-
- const SVGNumberNegativeValuesMode m_negativeValuesMode;
-};
-
-}
-
-#endif // NumberSVGInterpolation_h

Powered by Google App Engine
This is Rietveld 408576698