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

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

Issue 811993002: Animation: Implement DoubleStyleInterpolation in StringKeyframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove shape image threshold test 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
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef StyleInterpolation_h 5 #ifndef StyleInterpolation_h
6 #define StyleInterpolation_h 6 #define StyleInterpolation_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/animation/Interpolation.h" 9 #include "core/animation/Interpolation.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class StyleResolverState; 13 class StyleResolverState;
14 14
15 enum InterpolationRange { 15 enum InterpolationRange {
16 RangeAll,
17 RangeFloor,
18 RangeGreaterThanOrEqualToOne,
16 RangeNonNegative, 19 RangeNonNegative,
20 RangePositive,
21 RangeRound,
22 RangeRoundGreaterThanOrEqualToOne,
17 RangeOpacityFIXME, 23 RangeOpacityFIXME,
18 RangeAll 24 RangeZeroToOne
19 }; 25 };
20 26
21 class StyleInterpolation : public Interpolation { 27 class StyleInterpolation : public Interpolation {
22 public: 28 public:
23 // 1) convert m_cachedValue into an X 29 // 1) convert m_cachedValue into an X
24 // 2) shove X into StyleResolverState 30 // 2) shove X into StyleResolverState
25 // X can be: 31 // X can be:
26 // (1) a CSSValue (and applied via StyleBuilder::applyProperty) 32 // (1) a CSSValue (and applied via StyleBuilder::applyProperty)
27 // (2) an AnimatableValue (and applied via // AnimatedStyleBuilder::applyPro perty) 33 // (2) an AnimatableValue (and applied via // AnimatedStyleBuilder::applyPro perty)
28 // (3) a custom value that is inserted directly into the StyleResolverState. 34 // (3) a custom value that is inserted directly into the StyleResolverState.
(...skipping 16 matching lines...) Expand all
45 , m_id(id) 51 , m_id(id)
46 { 52 {
47 } 53 }
48 }; 54 };
49 55
50 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation()); 56 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation());
51 57
52 } 58 }
53 59
54 #endif 60 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698