Moved isLeadingPos defined as a method on YGNode
Summary: Moved isLeadingPos defined as a method on YGNode Reviewed By: emilsjolander Differential Revision: D6682956 fbshipit-source-id: 31c60e0eae906e1434a6969f3cd786fcaf9097a5
This commit is contained in:
committed by
Facebook Github Bot
parent
0cfdb50477
commit
92eda21e78
12
yoga/Utils.h
12
yoga/Utils.h
@@ -35,18 +35,6 @@ inline float YGResolveValue(const YGValue value, const float parentSize) {
|
||||
return YGUndefined;
|
||||
}
|
||||
|
||||
inline bool YGNodeIsLeadingPosDefined(
|
||||
const YGNodeRef node,
|
||||
const YGFlexDirection axis) {
|
||||
return (YGFlexDirectionIsRow(axis) &&
|
||||
YGComputedEdgeValue(
|
||||
node->getStyle().position, YGEdgeStart, &YGValueUndefined)
|
||||
->unit != YGUnitUndefined) ||
|
||||
YGComputedEdgeValue(
|
||||
node->getStyle().position, leading[axis], &YGValueUndefined)
|
||||
->unit != YGUnitUndefined;
|
||||
}
|
||||
|
||||
inline bool YGFlexDirectionIsColumn(const YGFlexDirection flexDirection) {
|
||||
return flexDirection == YGFlexDirectionColumn ||
|
||||
flexDirection == YGFlexDirectionColumnReverse;
|
||||
|
Reference in New Issue
Block a user