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

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

Issue 2658333003: Add smooth interpolation support for <length> custom properties (Closed)
Patch Set: Created 3 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 LengthInterpolationFunctions_h 5 #ifndef LengthInterpolationFunctions_h
6 #define LengthInterpolationFunctions_h 6 #define LengthInterpolationFunctions_h
7 7
8 #include "core/animation/InterpolationValue.h" 8 #include "core/animation/InterpolationValue.h"
9 #include "core/animation/PairwiseInterpolationValue.h" 9 #include "core/animation/PairwiseInterpolationValue.h"
10 #include "platform/Length.h" 10 #include "platform/Length.h"
(...skipping 21 matching lines...) Expand all
32 static void composite(std::unique_ptr<InterpolableValue>&, 32 static void composite(std::unique_ptr<InterpolableValue>&,
33 RefPtr<NonInterpolableValue>&, 33 RefPtr<NonInterpolableValue>&,
34 double underlyingFraction, 34 double underlyingFraction,
35 const InterpolableValue&, 35 const InterpolableValue&,
36 const NonInterpolableValue*); 36 const NonInterpolableValue*);
37 static Length createLength(const InterpolableValue&, 37 static Length createLength(const InterpolableValue&,
38 const NonInterpolableValue*, 38 const NonInterpolableValue*,
39 const CSSToLengthConversionData&, 39 const CSSToLengthConversionData&,
40 ValueRange); 40 ValueRange);
41 41
42 // Unlike createLength() this preserves all specificed unit types via calc()
43 // expressions.
44 static const CSSValue* createCSSValue(const InterpolableValue&,
45 const NonInterpolableValue*,
46 ValueRange);
47
42 static void subtractFromOneHundredPercent(InterpolationValue& result); 48 static void subtractFromOneHundredPercent(InterpolationValue& result);
43 }; 49 };
44 50
45 } // namespace blink 51 } // namespace blink
46 52
47 #endif // LengthInterpolationFunctions_h 53 #endif // LengthInterpolationFunctions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698