Use modern initializer syntax instead of comments
Reviewed By: adamjernst Differential Revision: D3698569 fbshipit-source-id: c92b18540140662979cf001aeedaa76504c6a3ac
This commit is contained in:
parent
1a37527606
commit
656f9f4b9d
|
@ -381,28 +381,28 @@ static void print_css_node_rec(CSSNode *node, CSSPrintOptions options, uint32_t
|
||||||
void CSSNodePrint(CSSNode *node, CSSPrintOptions options) { print_css_node_rec(node, options, 0); }
|
void CSSNodePrint(CSSNode *node, CSSPrintOptions options) { print_css_node_rec(node, options, 0); }
|
||||||
|
|
||||||
static CSSPosition leading[4] = {
|
static CSSPosition leading[4] = {
|
||||||
/* CSSFlexDirectionColumn = */ CSSPositionTop,
|
[CSSFlexDirectionColumn] = CSSPositionTop,
|
||||||
/* CSSFlexDirectionColumnReverse = */ CSSPositionBottom,
|
[CSSFlexDirectionColumnReverse] = CSSPositionBottom,
|
||||||
/* CSSFlexDirectionRow = */ CSSPositionLeft,
|
[CSSFlexDirectionRow] = CSSPositionLeft,
|
||||||
/* CSSFlexDirectionRowReverse = */ CSSPositionRight
|
[CSSFlexDirectionRowReverse] = CSSPositionRight,
|
||||||
};
|
};
|
||||||
static CSSPosition trailing[4] = {
|
static CSSPosition trailing[4] = {
|
||||||
/* CSSFlexDirectionColumn = */ CSSPositionBottom,
|
[CSSFlexDirectionColumn] = CSSPositionBottom,
|
||||||
/* CSSFlexDirectionColumnReverse = */ CSSPositionTop,
|
[CSSFlexDirectionColumnReverse] = CSSPositionTop,
|
||||||
/* CSSFlexDirectionRow = */ CSSPositionRight,
|
[CSSFlexDirectionRow] = CSSPositionRight,
|
||||||
/* CSSFlexDirectionRowReverse = */ CSSPositionLeft
|
[CSSFlexDirectionRowReverse] = CSSPositionLeft,
|
||||||
};
|
};
|
||||||
static CSSPosition pos[4] = {
|
static CSSPosition pos[4] = {
|
||||||
/* CSSFlexDirectionColumn = */ CSSPositionTop,
|
[CSSFlexDirectionColumn] = CSSPositionTop,
|
||||||
/* CSSFlexDirectionColumnReverse = */ CSSPositionBottom,
|
[CSSFlexDirectionColumnReverse] = CSSPositionBottom,
|
||||||
/* CSSFlexDirectionRow = */ CSSPositionLeft,
|
[CSSFlexDirectionRow] = CSSPositionLeft,
|
||||||
/* CSSFlexDirectionRowReverse = */ CSSPositionRight
|
[CSSFlexDirectionRowReverse] = CSSPositionRight,
|
||||||
};
|
};
|
||||||
static CSSDimension dim[4] = {
|
static CSSDimension dim[4] = {
|
||||||
/* CSSFlexDirectionColumn = */ CSSDimensionHeight,
|
[CSSFlexDirectionColumn] = CSSDimensionHeight,
|
||||||
/* CSSFlexDirectionColumnReverse = */ CSSDimensionHeight,
|
[CSSFlexDirectionColumnReverse] = CSSDimensionHeight,
|
||||||
/* CSSFlexDirectionRow = */ CSSDimensionWidth,
|
[CSSFlexDirectionRow] = CSSDimensionWidth,
|
||||||
/* CSSFlexDirectionRowReverse = */ CSSDimensionWidth
|
[CSSFlexDirectionRowReverse] = CSSDimensionWidth,
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool isRowDirection(CSSFlexDirection flexDirection) {
|
static bool isRowDirection(CSSFlexDirection flexDirection) {
|
||||||
|
|
Loading…
Reference in New Issue