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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 double m_number; | 145 double m_number; |
146 NumberUnitType m_unitType; | 146 NumberUnitType m_unitType; |
147 | 147 |
148 RefPtr<CSSCalcExpressionNode> m_calcExpression; | 148 RefPtr<CSSCalcExpressionNode> m_calcExpression; |
149 | 149 |
150 mutable RefPtr<CSSPrimitiveValue> m_cachedCSSPrimitiveValue; | 150 mutable RefPtr<CSSPrimitiveValue> m_cachedCSSPrimitiveValue; |
151 | 151 |
152 friend class CoreAnimationAnimatableLengthTest; | 152 friend class CoreAnimationAnimatableLengthTest; |
153 }; | 153 }; |
154 | 154 |
155 inline const AnimatableLength* toAnimatableLength(const AnimatableValue* value) | 155 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLength, isLength()); |
156 { | |
157 ASSERT_WITH_SECURITY_IMPLICATION(value && value->isLength()); | |
158 return static_cast<const AnimatableLength*>(value); | |
159 } | |
160 | 156 |
161 } // namespace WebCore | 157 } // namespace WebCore |
162 | 158 |
163 #endif // AnimatableLength_h | 159 #endif // AnimatableLength_h |
OLD | NEW |