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

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

Issue 1418193007: Web Animations: Add SVGNumberOptionalNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgIntegerInterpolationType
Patch Set: neutralKeyframe 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/SVGNumberOptionalNumberInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/SVGNumberInterpolationType.h b/third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.h
similarity index 67%
copy from third_party/WebKit/Source/core/animation/SVGNumberInterpolationType.h
copy to third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.h
index f0f432d5b857aa390b28a363b13f032a5953019f..fe75895e9d7e7eaa35533c1a6d9490313af9527f 100644
--- a/third_party/WebKit/Source/core/animation/SVGNumberInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.h
@@ -2,29 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SVGNumberInterpolationType_h
-#define SVGNumberInterpolationType_h
+#ifndef SVGNumberOptionalNumberInterpolationType_h
+#define SVGNumberOptionalNumberInterpolationType_h
#include "core/animation/NumberAttributeFunctions.h"
#include "core/animation/SVGInterpolationType.h"
namespace blink {
-class SVGNumberInterpolationType : public SVGInterpolationType {
+class SVGNumberOptionalNumberInterpolationType : public SVGInterpolationType {
public:
- SVGNumberInterpolationType(const QualifiedName& attribute)
+ SVGNumberOptionalNumberInterpolationType(const QualifiedName& attribute)
: SVGInterpolationType(attribute)
- , m_isNonNegative(NumberAttributeFunctions::isNonNegative(attribute))
{ }
private:
PassOwnPtr<InterpolationValue> maybeConvertNeutral(const UnderlyingValue&, ConversionCheckers&) const final;
PassOwnPtr<InterpolationValue> maybeConvertSVGValue(const SVGPropertyBase& svgValue) const final;
PassRefPtrWillBeRawPtr<SVGPropertyBase> appliedSVGValue(const InterpolableValue&, const NonInterpolableValue*) const final;
-
- bool m_isNonNegative;
};
} // namespace blink
-#endif // SVGNumberInterpolationType_h
+#endif // SVGNumberOptionalNumberInterpolationType_h

Powered by Google App Engine
This is Rietveld 408576698