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

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

Issue 2811253003: Make InterpolationEnvironment virutal (Closed)
Patch Set: protected Created 3 years, 6 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 CSSInterpolationType_h 5 #ifndef CSSInterpolationType_h
6 #define CSSInterpolationType_h 6 #define CSSInterpolationType_h
7 7
8 #include "core/animation/InterpolationEnvironment.h" 8 #include "core/animation/CSSInterpolationEnvironment.h"
9 #include "core/animation/InterpolationType.h" 9 #include "core/animation/InterpolationType.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class CSSCustomPropertyDeclaration; 13 class CSSCustomPropertyDeclaration;
14 class ComputedStyle;
14 class PropertyRegistration; 15 class PropertyRegistration;
16 class StyleResolverState;
15 17
16 class CSSInterpolationType : public InterpolationType { 18 class CSSInterpolationType : public InterpolationType {
17 public: 19 public:
18 void SetCustomPropertyRegistration(const PropertyRegistration&); 20 void SetCustomPropertyRegistration(const PropertyRegistration&);
19 21
20 class CSSConversionChecker : public ConversionChecker { 22 class CSSConversionChecker : public ConversionChecker {
21 public: 23 public:
22 bool IsValid(const InterpolationEnvironment& environment, 24 bool IsValid(const InterpolationEnvironment& environment,
23 const InterpolationValue& underlying) const final { 25 const InterpolationValue& underlying) const final {
24 return IsValid(environment.GetState(), underlying); 26 return IsValid(ToCSSInterpolationEnvironment(environment).GetState(),
27 underlying);
25 } 28 }
26 29
27 protected: 30 protected:
28 virtual bool IsValid(const StyleResolverState&, 31 virtual bool IsValid(const StyleResolverState&,
29 const InterpolationValue& underlying) const = 0; 32 const InterpolationValue& underlying) const = 0;
30 }; 33 };
31 34
32 protected: 35 protected:
33 CSSInterpolationType(PropertyHandle); 36 CSSInterpolationType(PropertyHandle);
34 37
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void ApplyCustomPropertyValue(const InterpolableValue&, 94 void ApplyCustomPropertyValue(const InterpolableValue&,
92 const NonInterpolableValue*, 95 const NonInterpolableValue*,
93 StyleResolverState&) const; 96 StyleResolverState&) const;
94 97
95 WeakPersistent<const PropertyRegistration> registration_; 98 WeakPersistent<const PropertyRegistration> registration_;
96 }; 99 };
97 100
98 } // namespace blink 101 } // namespace blink
99 102
100 #endif // CSSInterpolationType_h 103 #endif // CSSInterpolationType_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698