Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: third_party/WebKit/Source/platform/animation/TimingFunction.cpp

Issue 2849903002: Replace ASSERT_NOT_REACHED with NOTREACHED in platform/ (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698