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 "platform/wtf/text/StringBuilder.h" | 7 #include "platform/wtf/text/StringBuilder.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 } | 212 } |
213 case TimingFunction::Type::STEPS: { | 213 case TimingFunction::Type::STEPS: { |
214 const StepsTimingFunction& step = ToStepsTimingFunction(lhs); | 214 const StepsTimingFunction& step = ToStepsTimingFunction(lhs); |
215 return (step == rhs); | 215 return (step == rhs); |
216 } | 216 } |
217 case TimingFunction::Type::FRAMES: { | 217 case TimingFunction::Type::FRAMES: { |
218 const FramesTimingFunction& frame = ToFramesTimingFunction(lhs); | 218 const FramesTimingFunction& frame = ToFramesTimingFunction(lhs); |
219 return (frame == rhs); | 219 return (frame == rhs); |
220 } | 220 } |
221 default: | 221 default: |
222 ASSERT_NOT_REACHED(); | 222 NOTREACHED(); |
223 } | 223 } |
224 return false; | 224 return false; |
225 } | 225 } |
226 | 226 |
227 // No need to define specific operator!= as they can all come via this function. | 227 // No need to define specific operator!= as they can all come via this function. |
228 bool operator!=(const TimingFunction& lhs, const TimingFunction& rhs) { | 228 bool operator!=(const TimingFunction& lhs, const TimingFunction& rhs) { |
229 return !(lhs == rhs); | 229 return !(lhs == rhs); |
230 } | 230 } |
231 | 231 |
232 } // namespace blink | 232 } // namespace blink |
OLD | NEW |