| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis
t; } | 77 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis
t; } |
| 78 bool isTransform() const { return type() == TypeTransform; } | 78 bool isTransform() const { return type() == TypeTransform; } |
| 79 bool isUnknown() const { return type() == TypeUnknown; } | 79 bool isUnknown() const { return type() == TypeUnknown; } |
| 80 | 80 |
| 81 bool isSameType(const AnimatableValue* value) const | 81 bool isSameType(const AnimatableValue* value) const |
| 82 { | 82 { |
| 83 ASSERT(value); | 83 ASSERT(value); |
| 84 return value->type() == type(); | 84 return value->type() == type(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual void trace(Visitor*) { } | |
| 88 | |
| 89 protected: | 87 protected: |
| 90 enum AnimatableType { | 88 enum AnimatableType { |
| 91 TypeClipPathOperation, | 89 TypeClipPathOperation, |
| 92 TypeColor, | 90 TypeColor, |
| 93 TypeDouble, | 91 TypeDouble, |
| 94 TypeFilterOperations, | 92 TypeFilterOperations, |
| 95 TypeImage, | 93 TypeImage, |
| 96 TypeLength, | 94 TypeLength, |
| 97 TypeLengthBox, | 95 TypeLengthBox, |
| 98 TypeLengthBoxAndBool, | 96 TypeLengthBoxAndBool, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 124 | 122 |
| 125 template <class Keyframe> friend class KeyframeEffectModel; | 123 template <class Keyframe> friend class KeyframeEffectModel; |
| 126 }; | 124 }; |
| 127 | 125 |
| 128 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ | 126 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 129 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.
predicate) | 127 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.
predicate) |
| 130 | 128 |
| 131 } // namespace blink | 129 } // namespace blink |
| 132 | 130 |
| 133 #endif // AnimatableValue_h | 131 #endif // AnimatableValue_h |
| OLD | NEW |