| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 const AnimatableValue* z() const { return m_z.get(); } | 50 const AnimatableValue* z() const { return m_z.get(); } |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, | 53 PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, |
| 54 double fraction) const override; | 54 double fraction) const override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 AnimatableLengthPoint3D(PassRefPtr<AnimatableValue> x, | 57 AnimatableLengthPoint3D(PassRefPtr<AnimatableValue> x, |
| 58 PassRefPtr<AnimatableValue> y, | 58 PassRefPtr<AnimatableValue> y, |
| 59 PassRefPtr<AnimatableValue> z) | 59 PassRefPtr<AnimatableValue> z) |
| 60 : m_x(x), m_y(y), m_z(z) {} | 60 : m_x(std::move(x)), m_y(std::move(y)), m_z(std::move(z)) {} |
| 61 AnimatableType type() const override { return TypeLengthPoint3D; } | 61 AnimatableType type() const override { return TypeLengthPoint3D; } |
| 62 bool equalTo(const AnimatableValue*) const override; | 62 bool equalTo(const AnimatableValue*) const override; |
| 63 | 63 |
| 64 RefPtr<AnimatableValue> m_x; | 64 RefPtr<AnimatableValue> m_x; |
| 65 RefPtr<AnimatableValue> m_y; | 65 RefPtr<AnimatableValue> m_y; |
| 66 RefPtr<AnimatableValue> m_z; | 66 RefPtr<AnimatableValue> m_z; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint3D, isLengthPoint3D()); | 69 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint3D, isLengthPoint3D()); |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // AnimatableLengthPoint3D_h | 73 #endif // AnimatableLengthPoint3D_h |
| OLD | NEW |