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

Side by Side Diff: Source/core/animation/LengthBoxStyleInterpolation.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, 3 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 LengthBoxStyleInterpolation_h 5 #ifndef LengthBoxStyleInterpolation_h
6 #define LengthBoxStyleInterpolation_h 6 #define LengthBoxStyleInterpolation_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/LengthStyleInterpolation.h" 9 #include "core/animation/LengthStyleInterpolation.h"
10 #include "core/css/CSSBorderImageSliceValue.h" 10 #include "core/css/CSSBorderImageSliceValue.h"
11 #include "core/css/Rect.h" 11 #include "core/css/Rect.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CORE_EXPORT LengthBoxStyleInterpolation : public StyleInterpolation { 15 class CORE_EXPORT LengthBoxStyleInterpolation : public StyleInterpolation {
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<LengthBoxStyleInterpolation> maybeCreateFrom(C SSValue&, CSSValue&, CSSPropertyID); 17 static LengthBoxStyleInterpolation* maybeCreateFrom(CSSValue&, CSSValue&, CS SPropertyID);
18 18
19 static bool usesDefaultInterpolation(const CSSValue&, const CSSValue&); 19 static bool usesDefaultInterpolation(const CSSValue&, const CSSValue&);
20 20
21 void apply(StyleResolverState&) const override; 21 void apply(StyleResolverState&) const override;
22 DECLARE_VIRTUAL_TRACE(); 22 DECLARE_VIRTUAL_TRACE();
23 23
24 private: 24 private:
25 LengthBoxStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> startI nterpolation, PassOwnPtrWillBeRawPtr<InterpolableValue> endInterpolation, CSSPro pertyID id, CSSValue* startCSS, CSSValue* endCSS) 25 LengthBoxStyleInterpolation(InterpolableValue* startInterpolation, Interpola bleValue* endInterpolation, CSSPropertyID id, CSSValue* startCSS, CSSValue* endC SS)
26 : StyleInterpolation(startInterpolation, endInterpolation, id) 26 : StyleInterpolation(startInterpolation, endInterpolation, id)
27 , m_startCSSValue(startCSS) 27 , m_startCSSValue(startCSS)
28 , m_endCSSValue(endCSS) 28 , m_endCSSValue(endCSS)
29 { } 29 { }
30 30
31 static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthBoxtoInterpolableValu e(const CSSValue&, const CSSValue&, bool); 31 static InterpolableValue* lengthBoxtoInterpolableValue(const CSSValue&, cons t CSSValue&, bool);
32 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLengthBox(Interpo lableValue*, const CSSValue&, const CSSValue&); 32 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLengthBox(Interpo lableValue*, const CSSValue&, const CSSValue&);
33 33
34 RefPtrWillBeMember<CSSValue> m_startCSSValue; 34 RefPtrWillBeMember<CSSValue> m_startCSSValue;
35 RefPtrWillBeMember<CSSValue> m_endCSSValue; 35 RefPtrWillBeMember<CSSValue> m_endCSSValue;
36 36
37 friend class AnimationLengthBoxStyleInterpolationTest; 37 friend class AnimationLengthBoxStyleInterpolationTest;
38 }; 38 };
39 39
40 } // namespace blink 40 } // namespace blink
41 41
42 #endif // LengthBoxStyleInterpolation_h 42 #endif // LengthBoxStyleInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/LegacyStyleInterpolation.h ('k') | Source/core/animation/LengthBoxStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698