| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PrimitiveInterpolation_h | 5 #ifndef PrimitiveInterpolation_h |
| 6 #define PrimitiveInterpolation_h | 6 #define PrimitiveInterpolation_h |
| 7 | 7 |
| 8 #include "core/animation/AnimationValue.h" | 8 #include "core/animation/AnimationValue.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 visitor->trace(m_start); | 54 visitor->trace(m_start); |
| 55 visitor->trace(m_end); | 55 visitor->trace(m_end); |
| 56 visitor->trace(m_nonInterpolableValue); | 56 visitor->trace(m_nonInterpolableValue); |
| 57 } | 57 } |
| 58 | 58 |
| 59 PairwisePrimitiveInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> sta
rt, PassOwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<NonInt
erpolableValue> nonInterpolableValue) | 59 PairwisePrimitiveInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> sta
rt, PassOwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<NonInt
erpolableValue> nonInterpolableValue) |
| 60 : m_start(start) | 60 : m_start(start) |
| 61 , m_end(end) | 61 , m_end(end) |
| 62 , m_nonInterpolableValue(nonInterpolableValue) | 62 , m_nonInterpolableValue(nonInterpolableValue) |
| 63 { } | 63 { } |
| 64 OwnPtrWillBeRawPtr<InterpolableValue> m_start; | 64 OwnPtrWillBeMember<InterpolableValue> m_start; |
| 65 OwnPtrWillBeRawPtr<InterpolableValue> m_end; | 65 OwnPtrWillBeMember<InterpolableValue> m_end; |
| 66 RefPtrWillBeRawPtr<NonInterpolableValue> m_nonInterpolableValue; | 66 RefPtrWillBeMember<NonInterpolableValue> m_nonInterpolableValue; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // Represents a pair of incompatible keyframes that fall back to 50% flip behavi
our eg. "auto" and "0px". | 69 // Represents a pair of incompatible keyframes that fall back to 50% flip behavi
our eg. "auto" and "0px". |
| 70 class FlipPrimitiveInterpolation : public PrimitiveInterpolation { | 70 class FlipPrimitiveInterpolation : public PrimitiveInterpolation { |
| 71 public: | 71 public: |
| 72 struct Side : public NoBaseWillBeGarbageCollectedFinalized<Side> { | 72 struct Side : public NoBaseWillBeGarbageCollectedFinalized<Side> { |
| 73 const AnimationType& type; | 73 const AnimationType& type; |
| 74 OwnPtrWillBeMember<InterpolableValue> interpolableValue; | 74 OwnPtrWillBeMember<InterpolableValue> interpolableValue; |
| 75 RefPtrWillBeMember<NonInterpolableValue> nonInterpolableValue; | 75 RefPtrWillBeMember<NonInterpolableValue> nonInterpolableValue; |
| 76 | 76 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 { } | 119 { } |
| 120 | 120 |
| 121 AnimationValue m_start; | 121 AnimationValue m_start; |
| 122 AnimationValue m_end; | 122 AnimationValue m_end; |
| 123 mutable double m_lastFraction; | 123 mutable double m_lastFraction; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace blink | 126 } // namespace blink |
| 127 | 127 |
| 128 #endif // PrimitiveInterpolation_h | 128 #endif // PrimitiveInterpolation_h |
| OLD | NEW |