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

Side by Side Diff: Source/core/animation/LengthPoint3DStyleInterpolation.h

Issue 851633002: Animation: Add template for ListStyleInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add else to shadowToInterpolableValue Created 5 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 LengthPoint3DStyleInterpolation_h
6 #define LengthPoint3DStyleInterpolation_h
7
8 #include "core/animation/LengthStyleInterpolation.h"
9 #include "core/css/CSSValueList.h"
10
11 namespace blink {
12
13 class LengthPoint3DStyleInterpolation : public StyleInterpolation {
14 public:
15 static PassRefPtrWillBeRawPtr<LengthPoint3DStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
16 {
17 return adoptRefWillBeNoop(new LengthPoint3DStyleInterpolation(lengthPoin t3DtoInterpolableValue(start), lengthPoint3DtoInterpolableValue(end), id));
18 }
19
20 static bool canCreateFrom(const CSSValue&);
21
22 virtual void apply(StyleResolverState&) const override;
23 virtual void trace(Visitor*) override;
24
25 private:
26 LengthPoint3DStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> st art, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
27 : StyleInterpolation(start, end, id)
28 { }
29
30 static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthPoint3DtoInterpolable Value(const CSSValue&);
31 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLengthPoint3D(Int erpolableValue*, InterpolationRange = RangeAll);
32
33 friend class AnimationLengthPoint3DStyleInterpolationTest;
34 };
35
36 } // namespace blink
37
38 #endif // LengthPoint3DStyleInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/LengthPairStyleInterpolation.cpp ('k') | Source/core/animation/LengthPoint3DStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698