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

Side by Side Diff: third_party/WebKit/Source/core/animation/Timing.cpp

Issue 2109333002: Replace ASSERT_NOT_REACHED with NOTREACHED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 "core/animation/Timing.h" 5 #include "core/animation/Timing.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 String Timing::fillModeString(FillMode fillMode) 9 String Timing::fillModeString(FillMode fillMode)
10 { 10 {
11 switch (fillMode) { 11 switch (fillMode) {
12 case Timing::FillModeNone: 12 case Timing::FillModeNone:
13 return "none"; 13 return "none";
14 case Timing::FillModeForwards: 14 case Timing::FillModeForwards:
15 return "forwards"; 15 return "forwards";
16 case Timing::FillModeBackwards: 16 case Timing::FillModeBackwards:
17 return "backwards"; 17 return "backwards";
18 case Timing::FillModeBoth: 18 case Timing::FillModeBoth:
19 return "both"; 19 return "both";
20 case Timing::FillModeAuto: 20 case Timing::FillModeAuto:
21 return "auto"; 21 return "auto";
22 } 22 }
23 ASSERT_NOT_REACHED(); 23 NOTREACHED();
24 return "none"; 24 return "none";
25 } 25 }
26 26
27 String Timing::playbackDirectionString(PlaybackDirection playbackDirection) 27 String Timing::playbackDirectionString(PlaybackDirection playbackDirection)
28 { 28 {
29 switch (playbackDirection) { 29 switch (playbackDirection) {
30 case Timing::PlaybackDirectionNormal: 30 case Timing::PlaybackDirectionNormal:
31 return "normal"; 31 return "normal";
32 case Timing::PlaybackDirectionReverse: 32 case Timing::PlaybackDirectionReverse:
33 return "reverse"; 33 return "reverse";
34 case Timing::PlaybackDirectionAlternate: 34 case Timing::PlaybackDirectionAlternate:
35 return "alternate"; 35 return "alternate";
36 case Timing::PlaybackDirectionAlternateReverse: 36 case Timing::PlaybackDirectionAlternateReverse:
37 return "alternate-reverse"; 37 return "alternate-reverse";
38 } 38 }
39 ASSERT_NOT_REACHED(); 39 NOTREACHED();
40 return "normal"; 40 return "normal";
41 } 41 }
42 42
43 } // namespace blink 43 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698