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

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

Issue 2691093004: Fix orthogonal mode legacy mismatch (Closed)
Patch Set: CR fixes Created 3 years, 10 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 #ifndef NGWritingMode_h 5 #ifndef NGWritingMode_h
6 #define NGWritingMode_h 6 #define NGWritingMode_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/text/WritingMode.h" 9 #include "platform/text/WritingMode.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LayoutObject;
14 class ComputedStyle;
15
13 enum NGWritingMode { 16 enum NGWritingMode {
14 kHorizontalTopBottom = 0, 17 kHorizontalTopBottom = 0,
15 kVerticalRightLeft = 1, 18 kVerticalRightLeft = 1,
16 kVerticalLeftRight = 2, 19 kVerticalLeftRight = 2,
17 kSidewaysRightLeft = 3, 20 kSidewaysRightLeft = 3,
18 kSidewaysLeftRight = 4 21 kSidewaysLeftRight = 4
19 }; 22 };
20 23
21 CORE_EXPORT NGWritingMode FromPlatformWritingMode(WritingMode); 24 CORE_EXPORT NGWritingMode FromPlatformWritingMode(WritingMode);
22 25
26 bool IsParallelWritingMode(NGWritingMode a, NGWritingMode b);
27
28 bool IsParallelWritingMode(const LayoutObject* layoutObject,
cbiesinger 2017/02/15 17:52:24 Please add a comment for what this function does.
atotic 2017/02/15 21:07:36 done. This funciton was removed due to lack of cal
29 const ComputedStyle& style);
30
23 } // namespace blink 31 } // namespace blink
24 32
25 #endif // NGWritingMode_h 33 #endif // NGWritingMode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698