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

Side by Side Diff: Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h

Issue 292173009: Web Animations - responsive interpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@0519_MySeparation
Patch Set: ConciseColorTest Created 6 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DeferredLegacyStyleInterpolation_h
6 #define DeferredLegacyStyleInterpolation_h
7
8 #include "core/animation/interpolation/StyleInterpolation.h"
9 #include "core/css/CSSValue.h"
10
11 namespace WebCore {
12
13 class CSSImageValue;
14 class CSSPrimitiveValue;
15 class CSSShadowValue;
16 class CSSValueList;
17
18 class DeferredLegacyStyleInterpolation : public StyleInterpolation {
19 public:
20 static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(PassR efPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSProp ertyID id)
21 {
22 return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, en d, id));
23 }
24
25 virtual void apply(StyleResolverState&) const OVERRIDE;
26
27 virtual void trace(Visitor*) OVERRIDE;
28
29 static bool interpolationRequiresStyleResolve(const CSSValue&);
30 static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue&);
31 static bool interpolationRequiresStyleResolve(const CSSImageValue&);
32 static bool interpolationRequiresStyleResolve(const CSSShadowValue&);
33 static bool interpolationRequiresStyleResolve(const CSSValueList&);
34
35 private:
36 DeferredLegacyStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, Pas sRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id)
37 : StyleInterpolation(InterpolableNumber::create(0), InterpolableNumber:: create(1), id)
38 , m_startCSSValue(start)
39 , m_endCSSValue(end)
40 {
41 }
42
43 RefPtrWillBeRawPtr<CSSValue> m_startCSSValue;
44 RefPtrWillBeRawPtr<CSSValue> m_endCSSValue;
45 };
46
47 }
48
49 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698