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

Side by Side Diff: Source/core/animation/animatable/AnimatableValue.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool isTransform() const { return type() == TypeTransform; } 80 bool isTransform() const { return type() == TypeTransform; }
81 bool isUnknown() const { return type() == TypeUnknown; } 81 bool isUnknown() const { return type() == TypeUnknown; }
82 bool isVisibility() const { return type() == TypeVisibility; } 82 bool isVisibility() const { return type() == TypeVisibility; }
83 83
84 bool isSameType(const AnimatableValue* value) const 84 bool isSameType(const AnimatableValue* value) const
85 { 85 {
86 ASSERT(value); 86 ASSERT(value);
87 return value->type() == type(); 87 return value->type() == type();
88 } 88 }
89 89
90 virtual void trace(Visitor*) { } 90 DEFINE_INLINE_VIRTUAL_TRACE() { }
91 91
92 protected: 92 protected:
93 enum AnimatableType { 93 enum AnimatableType {
94 TypeClipPathOperation, 94 TypeClipPathOperation,
95 TypeColor, 95 TypeColor,
96 TypeDouble, 96 TypeDouble,
97 TypeDoubleAndBool, 97 TypeDoubleAndBool,
98 TypeFilterOperations, 98 TypeFilterOperations,
99 TypeImage, 99 TypeImage,
100 TypeLength, 100 TypeLength,
(...skipping 28 matching lines...) Expand all
129 129
130 template <class Keyframe> friend class KeyframeEffectModel; 130 template <class Keyframe> friend class KeyframeEffectModel;
131 }; 131 };
132 132
133 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ 133 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \
134 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value. predicate) 134 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value. predicate)
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // AnimatableValue_h 138 #endif // AnimatableValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698