| 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 #include "platform/animation/TimingFunction.h" | 5 #include "platform/animation/TimingFunction.h" |
| 6 | 6 |
| 7 #include "wtf/text/StringBuilder.h" | 7 #include "platform/wtf/text/StringBuilder.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 String LinearTimingFunction::toString() const { | 11 String LinearTimingFunction::toString() const { |
| 12 return "linear"; | 12 return "linear"; |
| 13 } | 13 } |
| 14 | 14 |
| 15 double LinearTimingFunction::evaluate(double fraction, double) const { | 15 double LinearTimingFunction::evaluate(double fraction, double) const { |
| 16 return fraction; | 16 return fraction; |
| 17 } | 17 } |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 return false; | 190 return false; |
| 191 } | 191 } |
| 192 | 192 |
| 193 // No need to define specific operator!= as they can all come via this function. | 193 // No need to define specific operator!= as they can all come via this function. |
| 194 bool operator!=(const TimingFunction& lhs, const TimingFunction& rhs) { | 194 bool operator!=(const TimingFunction& lhs, const TimingFunction& rhs) { |
| 195 return !(lhs == rhs); | 195 return !(lhs == rhs); |
| 196 } | 196 } |
| 197 | 197 |
| 198 } // namespace blink | 198 } // namespace blink |
| OLD | NEW |