| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 bool isClipPathOperation() const { return type() == TypeClipPathOperation; } | 54 bool isClipPathOperation() const { return type() == TypeClipPathOperation; } |
| 55 bool isColor() const { return type() == TypeColor; } | 55 bool isColor() const { return type() == TypeColor; } |
| 56 bool isDouble() const { return type() == TypeDouble; } | 56 bool isDouble() const { return type() == TypeDouble; } |
| 57 bool isImage() const { return type() == TypeImage; } | 57 bool isImage() const { return type() == TypeImage; } |
| 58 bool isLength() const { return type() == TypeLength; } | 58 bool isLength() const { return type() == TypeLength; } |
| 59 bool isLengthBox() const { return type() == TypeLengthBox; } | 59 bool isLengthBox() const { return type() == TypeLengthBox; } |
| 60 bool isLengthSize() const { return type() == TypeLengthSize; } | 60 bool isLengthSize() const { return type() == TypeLengthSize; } |
| 61 bool isNeutral() const { return type() == TypeNeutral; } | 61 bool isNeutral() const { return type() == TypeNeutral; } |
| 62 bool isSVGLength() const { return type() == TypeSVGLength; } | 62 bool isSVGLength() const { return type() == TypeSVGLength; } |
| 63 bool isSVGLengthVector() const { return type() == TypeSVGLengthVector; } |
| 63 bool isShapeValue() const { return type() == TypeShapeValue; } | 64 bool isShapeValue() const { return type() == TypeShapeValue; } |
| 64 bool isSVGPaint() const { return type() == TypeSVGPaint; } | 65 bool isSVGPaint() const { return type() == TypeSVGPaint; } |
| 65 bool isTransform() const { return type() == TypeTransform; } | 66 bool isTransform() const { return type() == TypeTransform; } |
| 66 bool isUnknown() const { return type() == TypeUnknown; } | 67 bool isUnknown() const { return type() == TypeUnknown; } |
| 67 bool isVisibility() const { return type() == TypeVisibility; } | 68 bool isVisibility() const { return type() == TypeVisibility; } |
| 68 | 69 |
| 69 protected: | 70 protected: |
| 70 enum AnimatableType { | 71 enum AnimatableType { |
| 71 TypeClipPathOperation, | 72 TypeClipPathOperation, |
| 72 TypeColor, | 73 TypeColor, |
| 73 TypeDouble, | 74 TypeDouble, |
| 74 TypeImage, | 75 TypeImage, |
| 75 TypeLength, | 76 TypeLength, |
| 76 TypeLengthBox, | 77 TypeLengthBox, |
| 77 TypeLengthSize, | 78 TypeLengthSize, |
| 78 TypeNeutral, | 79 TypeNeutral, |
| 79 TypeSVGLength, | 80 TypeSVGLength, |
| 81 TypeSVGLengthVector, |
| 80 TypeShapeValue, | 82 TypeShapeValue, |
| 81 TypeSVGPaint, | 83 TypeSVGPaint, |
| 82 TypeTransform, | 84 TypeTransform, |
| 83 TypeUnknown, | 85 TypeUnknown, |
| 84 TypeVisibility, | 86 TypeVisibility, |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 bool isSameType(const AnimatableValue* value) const | 89 bool isSameType(const AnimatableValue* value) const |
| 88 { | 90 { |
| 89 ASSERT(value); | 91 ASSERT(value); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 102 | 104 |
| 103 private: | 105 private: |
| 104 virtual AnimatableType type() const = 0; | 106 virtual AnimatableType type() const = 0; |
| 105 // Implementations can assume that the object being compared has the same ty
pe as the object this is called on | 107 // Implementations can assume that the object being compared has the same ty
pe as the object this is called on |
| 106 virtual bool equalTo(const AnimatableValue*) const = 0; | 108 virtual bool equalTo(const AnimatableValue*) const = 0; |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace WebCore | 111 } // namespace WebCore |
| 110 | 112 |
| 111 #endif // AnimatableValue_h | 113 #endif // AnimatableValue_h |
| OLD | NEW |