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

Side by Side Diff: Source/core/animation/VisibilityStyleInterpolation.cpp

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 #include "config.h" 1 #include "config.h"
2 #include "core/animation/VisibilityStyleInterpolation.h" 2 #include "core/animation/VisibilityStyleInterpolation.h"
3 3
4 #include "core/css/CSSPrimitiveValue.h" 4 #include "core/css/CSSPrimitiveValue.h"
5 #include "core/css/resolver/StyleBuilder.h" 5 #include "core/css/resolver/StyleBuilder.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 bool VisibilityStyleInterpolation::canCreateFrom(const CSSValue& value) 9 bool VisibilityStyleInterpolation::canCreateFrom(const CSSValue& value)
10 { 10 {
(...skipping 26 matching lines...) Expand all
37 if (number->value() > 0) 37 if (number->value() > 0)
38 return CSSPrimitiveValue::createIdentifier(CSSValueVisible); 38 return CSSPrimitiveValue::createIdentifier(CSSValueVisible);
39 return CSSPrimitiveValue::createIdentifier(notVisible); 39 return CSSPrimitiveValue::createIdentifier(notVisible);
40 } 40 }
41 41
42 void VisibilityStyleInterpolation::apply(StyleResolverState& state) const 42 void VisibilityStyleInterpolation::apply(StyleResolverState& state) const
43 { 43 {
44 StyleBuilder::applyProperty(m_id, state, interpolableValueToVisibility(m_cac hedValue.get(), m_notVisible).get()); 44 StyleBuilder::applyProperty(m_id, state, interpolableValueToVisibility(m_cac hedValue.get(), m_notVisible).get());
45 } 45 }
46 46
47 void VisibilityStyleInterpolation::trace(Visitor* visitor) 47 DEFINE_TRACE(VisibilityStyleInterpolation)
48 { 48 {
49 StyleInterpolation::trace(visitor); 49 StyleInterpolation::trace(visitor);
50 } 50 }
51 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698