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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGNumberInterpolationType.h

Issue 1410643011: Web Animations: Add SVGNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyHandleFilter
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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SVGNumberInterpolationType_h
6 #define SVGNumberInterpolationType_h
7
8 #include "core/animation/NumberAttributeFunctions.h"
9 #include "core/animation/SVGInterpolationType.h"
10
11 namespace blink {
12
13 class SVGNumberInterpolationType : public SVGInterpolationType {
14 public:
15 SVGNumberInterpolationType(const QualifiedName& attribute)
16 : SVGInterpolationType(attribute)
17 , m_isNonNegative(NumberAttributeFunctions::isNonNegative(attribute))
18 { }
19
20 private:
21 PassOwnPtr<InterpolationValue> maybeConvertNeutral() const final;
22 PassOwnPtr<InterpolationValue> maybeConvertSVGValue(const SVGPropertyBase& s vgValue) const final;
23 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const Interpolati onEnvironment&) const final;
24 RefPtrWillBeRawPtr<SVGPropertyBase> appliedSVGValue(const InterpolableValue& , const NonInterpolableValue*) const final;
25
26 bool m_isNonNegative;
27 };
28
29 } // namespace blink
30
31 #endif // SVGNumberInterpolationType_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698