Use modern initializer syntax instead of comments

Reviewed By: adamjernst

Differential Revision: D3698569

fbshipit-source-id: c92b18540140662979cf001aeedaa76504c6a3ac
This commit is contained in:
Emil Sjolander 2016-08-11 02:54:47 -07:00 committed by Facebook Github Bot 0
parent 1a37527606
commit 656f9f4b9d
1 changed files with 16 additions and 16 deletions

View File

@ -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); }
static CSSPosition leading[4] = {
/* CSSFlexDirectionColumn = */ CSSPositionTop,
/* CSSFlexDirectionColumnReverse = */ CSSPositionBottom,
/* CSSFlexDirectionRow = */ CSSPositionLeft,
/* CSSFlexDirectionRowReverse = */ CSSPositionRight
[CSSFlexDirectionColumn] = CSSPositionTop,
[CSSFlexDirectionColumnReverse] = CSSPositionBottom,
[CSSFlexDirectionRow] = CSSPositionLeft,
[CSSFlexDirectionRowReverse] = CSSPositionRight,
};
static CSSPosition trailing[4] = {
/* CSSFlexDirectionColumn = */ CSSPositionBottom,
/* CSSFlexDirectionColumnReverse = */ CSSPositionTop,
/* CSSFlexDirectionRow = */ CSSPositionRight,
/* CSSFlexDirectionRowReverse = */ CSSPositionLeft
[CSSFlexDirectionColumn] = CSSPositionBottom,
[CSSFlexDirectionColumnReverse] = CSSPositionTop,
[CSSFlexDirectionRow] = CSSPositionRight,
[CSSFlexDirectionRowReverse] = CSSPositionLeft,
};
static CSSPosition pos[4] = {
/* CSSFlexDirectionColumn = */ CSSPositionTop,
/* CSSFlexDirectionColumnReverse = */ CSSPositionBottom,
/* CSSFlexDirectionRow = */ CSSPositionLeft,
/* CSSFlexDirectionRowReverse = */ CSSPositionRight
[CSSFlexDirectionColumn] = CSSPositionTop,
[CSSFlexDirectionColumnReverse] = CSSPositionBottom,
[CSSFlexDirectionRow] = CSSPositionLeft,
[CSSFlexDirectionRowReverse] = CSSPositionRight,
};
static CSSDimension dim[4] = {
/* CSSFlexDirectionColumn = */ CSSDimensionHeight,
/* CSSFlexDirectionColumnReverse = */ CSSDimensionHeight,
/* CSSFlexDirectionRow = */ CSSDimensionWidth,
/* CSSFlexDirectionRowReverse = */ CSSDimensionWidth
[CSSFlexDirectionColumn] = CSSDimensionHeight,
[CSSFlexDirectionColumnReverse] = CSSDimensionHeight,
[CSSFlexDirectionRow] = CSSDimensionWidth,
[CSSFlexDirectionRowReverse] = CSSDimensionWidth,
};
static bool isRowDirection(CSSFlexDirection flexDirection) {