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

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

Issue 2912273002: [LayoutNG] Logicalize NGPaintBorderEdge (Closed)
Patch Set: Rebase, Edge -> Edges Created 3 years, 6 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NGBorderEdges_h
6 #define NGBorderEdges_h
7
8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_writing_mode.h"
10
11 namespace blink {
12
13 namespace NGBorderEdges {
14
15 // Which border edges should be painted. Due to fragmentation one or more may
16 // be skipped.
17 enum Physical { kTop = 1, kRight = 2, kBottom = 4, kLeft = 8 };
18
19 enum Logical {
20 kBlockStart = Physical::kTop,
21 kLineRight = Physical::kRight,
22 kBlockEnd = Physical::kBottom,
23 kLineLeft = Physical::kLeft,
24 kAll = kBlockStart | kLineRight | kBlockEnd | kLineLeft
25 };
26
27 CORE_EXPORT Physical ToPhysical(Logical, NGWritingMode);
28 CORE_EXPORT Logical ToLogical(Physical, NGWritingMode);
29
30 } // namespace NGBorderEdges
31
32 } // namespace blink
33
34 #endif // NGBorderEdges_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698