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

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

Issue 811993002: Animation: Implement DoubleStyleInterpolation in StringKeyframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Opacity runs on compositor Created 5 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 unified diff | Download patch
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 DoubleStyleInterpolation_h 5 #ifndef DoubleStyleInterpolation_h
6 #define DoubleStyleInterpolation_h 6 #define DoubleStyleInterpolation_h
7 7
8 #include "core/animation/StyleInterpolation.h" 8 #include "core/animation/StyleInterpolation.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 enum ClampRange { 12 enum ClampRange {
13 NoClamp, 13 NoClamp,
14 ClampOpacity 14 ClampOpacity,
15 ClampInteger,
16 ClampZoom,
17 ClampOrphans,
18 // ClampOne for SVGStrokeMiterLimit and Widows interpolation
19 ClampOne,
20 ClampZero
15 }; 21 };
16 22
17 class DoubleStyleInterpolation : public StyleInterpolation { 23 class DoubleStyleInterpolation : public StyleInterpolation {
18 public: 24 public:
19 static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> create(const CSSValu e& start, const CSSValue& end, CSSPropertyID id, ClampRange clamp) 25 static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> create(const CSSValu e& start, const CSSValue& end, CSSPropertyID id, ClampRange clamp)
20 { 26 {
21 return adoptRefWillBeNoop(new DoubleStyleInterpolation(doubleToInterpola bleValue(start), doubleToInterpolableValue(end), id, clamp, false)); 27 return adoptRefWillBeNoop(new DoubleStyleInterpolation(doubleToInterpola bleValue(start), doubleToInterpolableValue(end), id, clamp, false));
22 } 28 }
23 29
24 static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> maybeCreateFromMotio nRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID); 30 static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> maybeCreateFromMotio nRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID);
(...skipping 16 matching lines...) Expand all
41 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToDouble(Interpolab leValue*, ClampRange); 47 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToDouble(Interpolab leValue*, ClampRange);
42 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToMotionRotation(In terpolableValue*, bool); 48 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToMotionRotation(In terpolableValue*, bool);
43 49
44 ClampRange m_clamp; 50 ClampRange m_clamp;
45 bool m_flag; 51 bool m_flag;
46 52
47 friend class AnimationDoubleStyleInterpolationTest; 53 friend class AnimationDoubleStyleInterpolationTest;
48 }; 54 };
49 } 55 }
50 #endif 56 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/DoubleStyleInterpolation.cpp » ('j') | Source/core/animation/DoubleStyleInterpolation.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698