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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_writing_mode.cc

Issue 2536323003: [LayoutNG] Fix enum values to conform to kEnumName in style guide. (Closed)
Patch Set: rebase. Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_writing_mode.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/layout/ng/ng_writing_mode.h" 5 #include "core/layout/ng/ng_writing_mode.h"
6 6
7 #include "platform/text/WritingMode.h" 7 #include "platform/text/WritingMode.h"
8 #include "wtf/Assertions.h" 8 #include "wtf/Assertions.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 NGWritingMode FromPlatformWritingMode(WritingMode mode) { 12 NGWritingMode FromPlatformWritingMode(WritingMode mode) {
13 switch (mode) { 13 switch (mode) {
14 case TopToBottomWritingMode: 14 case TopToBottomWritingMode:
15 return HorizontalTopBottom; 15 return kHorizontalTopBottom;
16 case RightToLeftWritingMode: 16 case RightToLeftWritingMode:
17 return VerticalRightLeft; 17 return kVerticalRightLeft;
18 case LeftToRightWritingMode: 18 case LeftToRightWritingMode:
19 return VerticalLeftRight; 19 return kVerticalLeftRight;
20 default: 20 default:
21 NOTREACHED(); 21 NOTREACHED();
22 return HorizontalTopBottom; 22 return kHorizontalTopBottom;
23 } 23 }
24 } 24 }
25 25
26 } // namespace blink 26 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_writing_mode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698