| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |