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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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 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 "wtf/Assertions.h" 7 #include "wtf/Assertions.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 NGWritingMode FromPlatformWritingMode(WritingMode mode) { 11 NGWritingMode FromPlatformWritingMode(WritingMode mode) {
12 switch (mode) { 12 switch (mode) {
13 case WritingMode::HorizontalTb: 13 case WritingMode::kHorizontalTb:
14 return kHorizontalTopBottom; 14 return kHorizontalTopBottom;
15 case WritingMode::VerticalRl: 15 case WritingMode::kVerticalRl:
16 return kVerticalRightLeft; 16 return kVerticalRightLeft;
17 case WritingMode::VerticalLr: 17 case WritingMode::kVerticalLr:
18 return kVerticalLeftRight; 18 return kVerticalLeftRight;
19 default: 19 default:
20 NOTREACHED(); 20 NOTREACHED();
21 return kHorizontalTopBottom; 21 return kHorizontalTopBottom;
22 } 22 }
23 } 23 }
24 24
25 } // namespace blink 25 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698