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

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

Issue 995253002: Web Animations: Split image slice interpolation out of LengthBoxStyleInterpolation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: crbug.com/466536 Created 5 years, 9 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 | Annotate | Revision Log
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/animation/LengthStyleInterpolation.h" 8 #include "core/animation/LengthStyleInterpolation.h"
9 #include "core/css/CSSBorderImageSliceValue.h" 9 #include "core/css/CSSBorderImageSliceValue.h"
10 #include "core/css/Rect.h" 10 #include "core/css/Rect.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LengthBoxStyleInterpolation : public StyleInterpolation { 14 class LengthBoxStyleInterpolation : public StyleInterpolation {
15 public: 15 public:
16 static PassRefPtrWillBeRawPtr<LengthBoxStyleInterpolation> maybeCreateFrom(C SSValue&, CSSValue&, CSSPropertyID); 16 static PassRefPtrWillBeRawPtr<LengthBoxStyleInterpolation> maybeCreateFrom(C SSValue&, CSSValue&, CSSPropertyID);
17 17
18 static bool usesDefaultInterpolation(const CSSValue&, const CSSValue&); 18 static bool usesDefaultInterpolation(const CSSValue&, const CSSValue&);
19 19
20 virtual void apply(StyleResolverState&) const override; 20 virtual void apply(StyleResolverState&) const override;
21 DECLARE_VIRTUAL_TRACE(); 21 DECLARE_VIRTUAL_TRACE();
22 22
23 private: 23 private:
24 LengthBoxStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> startI nterpolation, PassOwnPtrWillBeRawPtr<InterpolableValue> endInterpolation, CSSPro pertyID id, bool fill, CSSValue* startCSS, CSSValue* endCSS) 24 LengthBoxStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> startI nterpolation, PassOwnPtrWillBeRawPtr<InterpolableValue> endInterpolation, CSSPro pertyID id, CSSValue* startCSS, CSSValue* endCSS)
25 : StyleInterpolation(startInterpolation, endInterpolation, id) 25 : StyleInterpolation(startInterpolation, endInterpolation, id)
26 , m_fill(fill)
27 , m_startCSSValue(startCSS) 26 , m_startCSSValue(startCSS)
28 , m_endCSSValue(endCSS) 27 , m_endCSSValue(endCSS)
29 { } 28 { }
30 29
31 static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthBoxtoInterpolableValu e(const CSSValue&, const CSSValue&, bool); 30 static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthBoxtoInterpolableValu e(const CSSValue&, const CSSValue&, bool);
32 static PassOwnPtrWillBeRawPtr<InterpolableValue> borderImageSlicetoInterpola bleValue(const CSSValue&);
33 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLengthBox(Interpo lableValue*, const CSSValue&, const CSSValue&); 31 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLengthBox(Interpo lableValue*, const CSSValue&, const CSSValue&);
34 static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToBorderImageSlice( InterpolableValue*, bool);
35 32
36 bool m_fill;
37 RefPtrWillBeMember<CSSValue> m_startCSSValue; 33 RefPtrWillBeMember<CSSValue> m_startCSSValue;
38 RefPtrWillBeMember<CSSValue> m_endCSSValue; 34 RefPtrWillBeMember<CSSValue> m_endCSSValue;
39 35
40 friend class AnimationLengthBoxStyleInterpolationTest; 36 friend class AnimationLengthBoxStyleInterpolationTest;
41 }; 37 };
42 38
43 } // namespace blink 39 } // namespace blink
44 40
45 #endif // LengthBoxStyleInterpolation_h 41 #endif // LengthBoxStyleInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/ImageSliceStyleInterpolation.cpp ('k') | Source/core/animation/LengthBoxStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698