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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 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 2015 The Chromium Authors. All rights reserved. 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 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 LengthInterpolationType_h 5 #ifndef LengthInterpolationType_h
6 #define LengthInterpolationType_h 6 #define LengthInterpolationType_h
7 7
8 #include "core/animation/InterpolationType.h" 8 #include "core/animation/InterpolationType.h"
9 #include "core/animation/LengthPropertyFunctions.h" 9 #include "core/animation/LengthPropertyFunctions.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LengthInterpolationType : public InterpolationType { 13 class LengthInterpolationType : public InterpolationType {
14 public: 14 public:
15 LengthInterpolationType(CSSPropertyID); 15 LengthInterpolationType(CSSPropertyID);
16 16
17 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertUnderlyingValue(const StyleResolverState&) const final; 17 InterpolationValue* maybeConvertUnderlyingValue(const StyleResolverState&) c onst final;
18 void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResol verState&) const final; 18 void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResol verState&) const final;
19 19
20 private: 20 private:
21 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertLength(const Length&, float zoom) const; 21 InterpolationValue* maybeConvertLength(const Length&, float zoom) const;
22 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertNeutral() const final ; 22 InterpolationValue* maybeConvertNeutral() const final;
23 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertInitial() const final ; 23 InterpolationValue* maybeConvertInitial() const final;
24 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertInherit(const StyleRe solverState*, ConversionCheckers&) const final; 24 InterpolationValue* maybeConvertInherit(const StyleResolverState*, Conversio nCheckers&) const final;
25 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertValue(const CSSValue& , const StyleResolverState*, ConversionCheckers&) const final; 25 InterpolationValue* maybeConvertValue(const CSSValue&, const StyleResolverSt ate*, ConversionCheckers&) const final;
26 26
27 const ValueRange m_valueRange; 27 const ValueRange m_valueRange;
28 }; 28 };
29 29
30 } // namespace blink 30 } // namespace blink
31 31
32 #endif // LengthInterpolationType_h 32 #endif // LengthInterpolationType_h
OLDNEW
« no previous file with comments | « Source/core/animation/LengthBoxStyleInterpolationTest.cpp ('k') | Source/core/animation/LengthInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698