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 28 matching lines...) Expand all Loading... |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 enum NumberRange { | 41 enum NumberRange { |
42 AllValues, | 42 AllValues, |
43 NonNegativeValues, | 43 NonNegativeValues, |
44 }; | 44 }; |
45 | 45 |
46 // Handles animation of CSS length and percentage values including CSS calc. | 46 // Handles animation of CSS length and percentage values including CSS calc. |
47 // See primitiveUnitToNumberType() for the list of supported units. | 47 // See primitiveUnitToNumberType() for the list of supported units. |
48 // If created from a CSSPrimitiveValue this class will cache it to be returned i
n toCSSValue(). | 48 // If created from a CSSPrimitiveValue this class will cache it to be returned i
n toCSSValue(). |
49 class AnimatableLength : public AnimatableValue { | 49 class AnimatableLength FINAL : public AnimatableValue { |
50 public: | 50 public: |
51 enum NumberUnitType { | 51 enum NumberUnitType { |
52 UnitTypeCalc, | 52 UnitTypeCalc, |
53 UnitTypePixels, | 53 UnitTypePixels, |
54 UnitTypePercentage, | 54 UnitTypePercentage, |
55 UnitTypeFontSize, | 55 UnitTypeFontSize, |
56 UnitTypeFontXSize, | 56 UnitTypeFontXSize, |
57 UnitTypeRootFontSize, | 57 UnitTypeRootFontSize, |
58 UnitTypeViewportWidth, | 58 UnitTypeViewportWidth, |
59 UnitTypeViewportHeight, | 59 UnitTypeViewportHeight, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 mutable RefPtr<CSSPrimitiveValue> m_cachedCSSPrimitiveValue; | 158 mutable RefPtr<CSSPrimitiveValue> m_cachedCSSPrimitiveValue; |
159 | 159 |
160 friend class AnimationAnimatableLengthTest; | 160 friend class AnimationAnimatableLengthTest; |
161 }; | 161 }; |
162 | 162 |
163 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLength, isLength()); | 163 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLength, isLength()); |
164 | 164 |
165 } // namespace WebCore | 165 } // namespace WebCore |
166 | 166 |
167 #endif // AnimatableLength_h | 167 #endif // AnimatableLength_h |
OLD | NEW |