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

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

Issue 926963003: InlinedVisitor: Migrate animation to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 DeferredLegacyStyleInterpolation_h 5 #ifndef DeferredLegacyStyleInterpolation_h
6 #define DeferredLegacyStyleInterpolation_h 6 #define DeferredLegacyStyleInterpolation_h
7 7
8 #include "core/animation/LegacyStyleInterpolation.h" 8 #include "core/animation/LegacyStyleInterpolation.h"
9 #include "core/animation/StyleInterpolation.h" 9 #include "core/animation/StyleInterpolation.h"
10 #include "core/css/CSSValue.h" 10 #include "core/css/CSSValue.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CSSBasicShape; 14 class CSSBasicShape;
15 class CSSImageValue; 15 class CSSImageValue;
16 class CSSPrimitiveValue; 16 class CSSPrimitiveValue;
17 class CSSShadowValue; 17 class CSSShadowValue;
18 class CSSSVGDocumentValue; 18 class CSSSVGDocumentValue;
19 class CSSValueList; 19 class CSSValueList;
20 20
21 class DeferredLegacyStyleInterpolation : public StyleInterpolation { 21 class DeferredLegacyStyleInterpolation : public StyleInterpolation {
22 public: 22 public:
23 static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(PassR efPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSProp ertyID id) 23 static PassRefPtrWillBeRawPtr<DeferredLegacyStyleInterpolation> create(PassR efPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSProp ertyID id)
24 { 24 {
25 return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, en d, id)); 25 return adoptRefWillBeNoop(new DeferredLegacyStyleInterpolation(start, en d, id));
26 } 26 }
27 27
28 virtual void apply(StyleResolverState&) const override; 28 virtual void apply(StyleResolverState&) const override;
29 29
30 virtual void trace(Visitor*) override; 30 DECLARE_VIRTUAL_TRACE();
31 31
32 static bool interpolationRequiresStyleResolve(const CSSValue&); 32 static bool interpolationRequiresStyleResolve(const CSSValue&);
33 static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue&); 33 static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue&);
34 static bool interpolationRequiresStyleResolve(const CSSImageValue&); 34 static bool interpolationRequiresStyleResolve(const CSSImageValue&);
35 static bool interpolationRequiresStyleResolve(const CSSShadowValue&); 35 static bool interpolationRequiresStyleResolve(const CSSShadowValue&);
36 static bool interpolationRequiresStyleResolve(const CSSSVGDocumentValue&); 36 static bool interpolationRequiresStyleResolve(const CSSSVGDocumentValue&);
37 static bool interpolationRequiresStyleResolve(const CSSValueList&); 37 static bool interpolationRequiresStyleResolve(const CSSValueList&);
38 static bool interpolationRequiresStyleResolve(const CSSBasicShape&); 38 static bool interpolationRequiresStyleResolve(const CSSBasicShape&);
39 39
40 void underlyingStyleChanged() { m_outdated = true; } 40 void underlyingStyleChanged() { m_outdated = true; }
(...skipping 13 matching lines...) Expand all
54 RefPtrWillBeMember<CSSValue> m_endCSSValue; 54 RefPtrWillBeMember<CSSValue> m_endCSSValue;
55 mutable RefPtrWillBeMember<LegacyStyleInterpolation> m_innerInterpolation; 55 mutable RefPtrWillBeMember<LegacyStyleInterpolation> m_innerInterpolation;
56 mutable bool m_outdated; 56 mutable bool m_outdated;
57 }; 57 };
58 58
59 DEFINE_TYPE_CASTS(DeferredLegacyStyleInterpolation, StyleInterpolation, value, v alue->isDeferredLegacyStyleInterpolation(), value.isDeferredLegacyStyleInterpola tion()); 59 DEFINE_TYPE_CASTS(DeferredLegacyStyleInterpolation, StyleInterpolation, value, v alue->isDeferredLegacyStyleInterpolation(), value.isDeferredLegacyStyleInterpola tion());
60 60
61 } 61 }
62 62
63 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698