Fix bug introduced by D3886866

Reviewed By: lucasr

Differential Revision: D3923635

fbshipit-source-id: bfeb175bb40393be63cafb6a995b22701b87ffec
This commit is contained in:
Emil Sjolander 2016-09-27 10:07:59 -07:00 committed by Facebook Github Bot 9
parent d22a85211e
commit b32a857d60
1 changed files with 2 additions and 2 deletions

View File

@ -1705,7 +1705,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
for (ii = startIndex; ii < childCount; ii++) { for (ii = startIndex; ii < childCount; ii++) {
const CSSNodeRef child = CSSNodeListGet(node->children, ii); const CSSNodeRef child = CSSNodeListGet(node->children, ii);
if (child->style.positionType == CSSPositionTypeAbsolute) { if (child->style.positionType == CSSPositionTypeRelative) {
if (child->lineIndex != i) { if (child->lineIndex != i) {
break; break;
} }
@ -1724,7 +1724,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
for (ii = startIndex; ii < endIndex; ii++) { for (ii = startIndex; ii < endIndex; ii++) {
const CSSNodeRef child = CSSNodeListGet(node->children, ii); const CSSNodeRef child = CSSNodeListGet(node->children, ii);
if (child->style.positionType == CSSPositionTypeAbsolute) { if (child->style.positionType == CSSPositionTypeRelative) {
switch (getAlignItem(node, child)) { switch (getAlignItem(node, child)) {
case CSSAlignFlexStart: case CSSAlignFlexStart:
child->layout.position[pos[crossAxis]] = child->layout.position[pos[crossAxis]] =