Moved YGNodeIsFlex as a method on YGNode

Summary: Moved YGNodeIsFlex as a method on YGNode

Reviewed By: emilsjolander

Differential Revision: D6711536

fbshipit-source-id: e60be7da55e3e8d254eb253c141d219a37a76087
This commit is contained in:
Pritesh Nandgaonkar
2018-01-15 10:09:43 -08:00
committed by Facebook Github Bot
parent a9dd527748
commit 5806f1728c
3 changed files with 14 additions and 15 deletions

View File

@@ -590,3 +590,9 @@ float YGNode::resolveFlexShrink() {
}
return config_->useWebDefaults ? kWebDefaultFlexShrink : kDefaultFlexShrink;
}
bool YGNode::isNodeFlexible() {
return (
(style_.positionType == YGPositionTypeRelative) &&
(resolveFlexGrow() != 0 || resolveFlexShrink() != 0));
}