| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 bool isClipPathOperation() const { return type() == TypeClipPathOperation; } | 64 bool isClipPathOperation() const { return type() == TypeClipPathOperation; } |
| 65 bool isColor() const { return type() == TypeColor; } | 65 bool isColor() const { return type() == TypeColor; } |
| 66 bool isDouble() const { return type() == TypeDouble; } | 66 bool isDouble() const { return type() == TypeDouble; } |
| 67 bool isFilterOperations() const { return type() == TypeFilterOperations; } | 67 bool isFilterOperations() const { return type() == TypeFilterOperations; } |
| 68 bool isImage() const { return type() == TypeImage; } | 68 bool isImage() const { return type() == TypeImage; } |
| 69 bool isLength() const { return type() == TypeLength; } | 69 bool isLength() const { return type() == TypeLength; } |
| 70 bool isLengthBox() const { return type() == TypeLengthBox; } | 70 bool isLengthBox() const { return type() == TypeLengthBox; } |
| 71 bool isLengthBoxAndBool() const { return type() == TypeLengthBoxAndBool; } | 71 bool isLengthBoxAndBool() const { return type() == TypeLengthBoxAndBool; } |
| 72 bool isLengthPoint() const { return type() == TypeLengthPoint; } | 72 bool isLengthPoint() const { return type() == TypeLengthPoint; } |
| 73 bool isLengthPoint3D() const { return type() == TypeLengthPoint3D; } |
| 73 bool isLengthSize() const { return type() == TypeLengthSize; } | 74 bool isLengthSize() const { return type() == TypeLengthSize; } |
| 74 bool isNeutral() const { return type() == TypeNeutral; } | 75 bool isNeutral() const { return type() == TypeNeutral; } |
| 75 bool isRepeatable() const { return type() == TypeRepeatable; } | 76 bool isRepeatable() const { return type() == TypeRepeatable; } |
| 76 bool isSVGLength() const { return type() == TypeSVGLength; } | 77 bool isSVGLength() const { return type() == TypeSVGLength; } |
| 77 bool isSVGPaint() const { return type() == TypeSVGPaint; } | 78 bool isSVGPaint() const { return type() == TypeSVGPaint; } |
| 78 bool isShadow() const { return type() == TypeShadow; } | 79 bool isShadow() const { return type() == TypeShadow; } |
| 79 bool isShapeValue() const { return type() == TypeShapeValue; } | 80 bool isShapeValue() const { return type() == TypeShapeValue; } |
| 80 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis
t; } | 81 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis
t; } |
| 81 bool isTransform() const { return type() == TypeTransform; } | 82 bool isTransform() const { return type() == TypeTransform; } |
| 82 bool isUnknown() const { return type() == TypeUnknown; } | 83 bool isUnknown() const { return type() == TypeUnknown; } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 94 enum AnimatableType { | 95 enum AnimatableType { |
| 95 TypeClipPathOperation, | 96 TypeClipPathOperation, |
| 96 TypeColor, | 97 TypeColor, |
| 97 TypeDouble, | 98 TypeDouble, |
| 98 TypeFilterOperations, | 99 TypeFilterOperations, |
| 99 TypeImage, | 100 TypeImage, |
| 100 TypeLength, | 101 TypeLength, |
| 101 TypeLengthBox, | 102 TypeLengthBox, |
| 102 TypeLengthBoxAndBool, | 103 TypeLengthBoxAndBool, |
| 103 TypeLengthPoint, | 104 TypeLengthPoint, |
| 105 TypeLengthPoint3D, |
| 104 TypeLengthSize, | 106 TypeLengthSize, |
| 105 TypeNeutral, | 107 TypeNeutral, |
| 106 TypeRepeatable, | 108 TypeRepeatable, |
| 107 TypeSVGLength, | 109 TypeSVGLength, |
| 108 TypeSVGPaint, | 110 TypeSVGPaint, |
| 109 TypeShadow, | 111 TypeShadow, |
| 110 TypeShapeValue, | 112 TypeShapeValue, |
| 111 TypeStrokeDasharrayList, | 113 TypeStrokeDasharrayList, |
| 112 TypeTransform, | 114 TypeTransform, |
| 113 TypeUnknown, | 115 TypeUnknown, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 136 | 138 |
| 137 friend class KeyframeEffectModel; | 139 friend class KeyframeEffectModel; |
| 138 }; | 140 }; |
| 139 | 141 |
| 140 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ | 142 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 141 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.
predicate) | 143 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.
predicate) |
| 142 | 144 |
| 143 } // namespace WebCore | 145 } // namespace WebCore |
| 144 | 146 |
| 145 #endif // AnimatableValue_h | 147 #endif // AnimatableValue_h |
| OLD | NEW |