| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSTransitionData_h | 5 #ifndef CSSTransitionData_h |
| 6 #define CSSTransitionData_h | 6 #define CSSTransitionData_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/animation/css/CSSTimingData.h" | 9 #include "core/animation/css/CSSTimingData.h" |
| 10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CSSTransitionData final : public CSSTimingData { | 14 class CSSTransitionData final : public CSSTimingData { |
| 15 public: | 15 public: |
| 16 enum TransitionPropertyType { | 16 enum TransitionPropertyType { |
| 17 TransitionNone, | 17 TransitionNone, |
| 18 TransitionSingleProperty, | 18 TransitionSingleProperty, |
| 19 TransitionUnknown, | 19 TransitionUnknown, |
| 20 TransitionAll | 20 TransitionAll |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 // FIXME: We shouldn't allow 'none' to be used alongside other properties. | 23 // FIXME: We shouldn't allow 'none' to be used alongside other properties. |
| 24 struct TransitionProperty { | 24 struct TransitionProperty { |
| 25 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 25 TransitionProperty(CSSPropertyID id) | 26 TransitionProperty(CSSPropertyID id) |
| 26 : propertyType(TransitionSingleProperty) | 27 : propertyType(TransitionSingleProperty) |
| 27 , unresolvedProperty(id) | 28 , unresolvedProperty(id) |
| 28 { | 29 { |
| 29 ASSERT(id != CSSPropertyInvalid); | 30 ASSERT(id != CSSPropertyInvalid); |
| 30 } | 31 } |
| 31 | 32 |
| 32 TransitionProperty(const String& string) | 33 TransitionProperty(const String& string) |
| 33 : propertyType(TransitionUnknown) | 34 : propertyType(TransitionUnknown) |
| 34 , unresolvedProperty(CSSPropertyInvalid) | 35 , unresolvedProperty(CSSPropertyInvalid) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 private: | 73 private: |
| 73 CSSTransitionData(); | 74 CSSTransitionData(); |
| 74 explicit CSSTransitionData(const CSSTransitionData&); | 75 explicit CSSTransitionData(const CSSTransitionData&); |
| 75 | 76 |
| 76 Vector<TransitionProperty> m_propertyList; | 77 Vector<TransitionProperty> m_propertyList; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace blink | 80 } // namespace blink |
| 80 | 81 |
| 81 #endif // CSSTransitionData_h | 82 #endif // CSSTransitionData_h |
| OLD | NEW |