OLD | NEW |
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 SVGStrokeDasharrayStyleInterpolation_h | 5 #ifndef SVGStrokeDasharrayStyleInterpolation_h |
6 #define SVGStrokeDasharrayStyleInterpolation_h | 6 #define SVGStrokeDasharrayStyleInterpolation_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/StyleInterpolation.h" | 9 #include "core/animation/StyleInterpolation.h" |
10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class CSSValueList; | 14 class CSSValueList; |
15 | 15 |
16 class CORE_EXPORT SVGStrokeDasharrayStyleInterpolation : public StyleInterpolati
on { | 16 class CORE_EXPORT SVGStrokeDasharrayStyleInterpolation : public StyleInterpolati
on { |
17 public: | 17 public: |
18 static PassRefPtrWillBeRawPtr<SVGStrokeDasharrayStyleInterpolation> maybeCre
ate(const CSSValue& start, const CSSValue& end, CSSPropertyID); | 18 static SVGStrokeDasharrayStyleInterpolation* maybeCreate(const CSSValue& sta
rt, const CSSValue& end, CSSPropertyID); |
19 | 19 |
20 virtual void apply(StyleResolverState&) const override; | 20 virtual void apply(StyleResolverState&) const override; |
21 | 21 |
22 virtual void trace(Visitor* visitor) override | 22 virtual void trace(Visitor* visitor) override |
23 { | 23 { |
24 StyleInterpolation::trace(visitor); | 24 StyleInterpolation::trace(visitor); |
25 } | 25 } |
26 | 26 |
27 private: | 27 private: |
28 SVGStrokeDasharrayStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValu
e> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id) | 28 SVGStrokeDasharrayStyleInterpolation(InterpolableValue* start, InterpolableV
alue* end, CSSPropertyID id) |
29 : StyleInterpolation(start, end, id) | 29 : StyleInterpolation(start, end, id) |
30 { } | 30 { } |
31 | 31 |
32 static bool canCreateFrom(const CSSValue&); | 32 static bool canCreateFrom(const CSSValue&); |
33 static PassRefPtrWillBeRawPtr<CSSValueList> interpolableValueToStrokeDasharr
ay(const InterpolableValue&); | 33 static PassRefPtrWillBeRawPtr<CSSValueList> interpolableValueToStrokeDasharr
ay(const InterpolableValue&); |
34 | 34 |
35 friend class AnimationSVGStrokeDasharrayStyleInterpolationTest; | 35 friend class AnimationSVGStrokeDasharrayStyleInterpolationTest; |
36 }; | 36 }; |
37 | 37 |
38 } | 38 } |
39 | 39 |
40 #endif // SVGStrokeDasharrayStyleInterpolation_h | 40 #endif // SVGStrokeDasharrayStyleInterpolation_h |
OLD | NEW |