зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1602421 - Move logical side definitions to WritingModes.h. r=jfkthame
Depends on D56350 Differential Revision: https://phabricator.services.mozilla.com/D56351 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
707ed5c818
Коммит
afe05cb6a5
|
@ -43,6 +43,23 @@ namespace widget {
|
|||
struct IMENotification;
|
||||
} // namespace widget
|
||||
|
||||
// Logical axis, edge, side and corner constants for use in various places.
|
||||
enum LogicalAxis { eLogicalAxisBlock = 0x0, eLogicalAxisInline = 0x1 };
|
||||
enum LogicalEdge { eLogicalEdgeStart = 0x0, eLogicalEdgeEnd = 0x1 };
|
||||
enum LogicalSide : uint8_t {
|
||||
eLogicalSideBStart = (eLogicalAxisBlock << 1) | eLogicalEdgeStart, // 0x0
|
||||
eLogicalSideBEnd = (eLogicalAxisBlock << 1) | eLogicalEdgeEnd, // 0x1
|
||||
eLogicalSideIStart = (eLogicalAxisInline << 1) | eLogicalEdgeStart, // 0x2
|
||||
eLogicalSideIEnd = (eLogicalAxisInline << 1) | eLogicalEdgeEnd // 0x3
|
||||
};
|
||||
|
||||
enum LogicalCorner {
|
||||
eLogicalCornerBStartIStart = 0,
|
||||
eLogicalCornerBStartIEnd = 1,
|
||||
eLogicalCornerBEndIEnd = 2,
|
||||
eLogicalCornerBEndIStart = 3
|
||||
};
|
||||
|
||||
// Physical axis constants.
|
||||
enum PhysicalAxis { eAxisVertical = 0x0, eAxisHorizontal = 0x1 };
|
||||
|
||||
|
|
|
@ -399,25 +399,6 @@ inline bool StyleGridLine::IsAuto() const {
|
|||
return LineName()->IsEmpty() && line_num == 0 && !is_span;
|
||||
}
|
||||
|
||||
class WritingMode;
|
||||
|
||||
// Logical axis, edge, side and corner constants for use in various places.
|
||||
enum LogicalAxis { eLogicalAxisBlock = 0x0, eLogicalAxisInline = 0x1 };
|
||||
enum LogicalEdge { eLogicalEdgeStart = 0x0, eLogicalEdgeEnd = 0x1 };
|
||||
enum LogicalSide : uint8_t {
|
||||
eLogicalSideBStart = (eLogicalAxisBlock << 1) | eLogicalEdgeStart, // 0x0
|
||||
eLogicalSideBEnd = (eLogicalAxisBlock << 1) | eLogicalEdgeEnd, // 0x1
|
||||
eLogicalSideIStart = (eLogicalAxisInline << 1) | eLogicalEdgeStart, // 0x2
|
||||
eLogicalSideIEnd = (eLogicalAxisInline << 1) | eLogicalEdgeEnd // 0x3
|
||||
};
|
||||
|
||||
enum LogicalCorner {
|
||||
eLogicalCornerBStartIStart = 0,
|
||||
eLogicalCornerBStartIEnd = 1,
|
||||
eLogicalCornerBEndIEnd = 2,
|
||||
eLogicalCornerBEndIStart = 3
|
||||
};
|
||||
|
||||
using LengthPercentage = StyleLengthPercentage;
|
||||
using LengthPercentageOrAuto = StyleLengthPercentageOrAuto;
|
||||
using NonNegativeLengthPercentage = StyleNonNegativeLengthPercentage;
|
||||
|
|
Загрузка…
Ссылка в новой задаче