OLD | NEW |
(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 |
OLD | NEW |