| 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 <memory> | 8 #include <memory> |
| 9 #include "core/CSSPropertyNames.h" | 9 #include "core/CSSPropertyNames.h" |
| 10 #include "core/animation/css/CSSTimingData.h" | 10 #include "core/animation/css/CSSTimingData.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 static std::unique_ptr<CSSTransitionData> Create() { | 53 static std::unique_ptr<CSSTransitionData> Create() { |
| 54 return WTF::WrapUnique(new CSSTransitionData); | 54 return WTF::WrapUnique(new CSSTransitionData); |
| 55 } | 55 } |
| 56 | 56 |
| 57 std::unique_ptr<CSSTransitionData> Clone() { | 57 std::unique_ptr<CSSTransitionData> Clone() { |
| 58 return WTF::WrapUnique(new CSSTransitionData(*this)); | 58 return WTF::WrapUnique(new CSSTransitionData(*this)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool TransitionsMatchForStyleRecalc(const CSSTransitionData& other) const; | 61 bool TransitionsMatchForStyleRecalc(const CSSTransitionData& other) const; |
| 62 bool operator==(const CSSTransitionData& other) const { |
| 63 return TransitionsMatchForStyleRecalc(other); |
| 64 } |
| 62 | 65 |
| 63 Timing ConvertToTiming(size_t index) const; | 66 Timing ConvertToTiming(size_t index) const; |
| 64 | 67 |
| 65 const Vector<TransitionProperty>& PropertyList() const { | 68 const Vector<TransitionProperty>& PropertyList() const { |
| 66 return property_list_; | 69 return property_list_; |
| 67 } | 70 } |
| 68 Vector<TransitionProperty>& PropertyList() { return property_list_; } | 71 Vector<TransitionProperty>& PropertyList() { return property_list_; } |
| 69 | 72 |
| 70 static TransitionProperty InitialProperty() { | 73 static TransitionProperty InitialProperty() { |
| 71 return TransitionProperty(CSSPropertyAll); | 74 return TransitionProperty(CSSPropertyAll); |
| 72 } | 75 } |
| 73 | 76 |
| 74 private: | 77 private: |
| 75 CSSTransitionData(); | 78 CSSTransitionData(); |
| 76 explicit CSSTransitionData(const CSSTransitionData&); | 79 explicit CSSTransitionData(const CSSTransitionData&); |
| 77 | 80 |
| 78 Vector<TransitionProperty> property_list_; | 81 Vector<TransitionProperty> property_list_; |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 } // namespace blink | 84 } // namespace blink |
| 82 | 85 |
| 83 #endif // CSSTransitionData_h | 86 #endif // CSSTransitionData_h |
| OLD | NEW |