Make YGFloatIsUndefined
inlineable
Summary: @public Makes `YGFloatIsUndefined` inlineable Reviewed By: swolchok Differential Revision: D8875520 fbshipit-source-id: 7ac653e002512b1a8d5f9c04e0a21381aeb02e67
This commit is contained in:
committed by
Facebook Github Bot
parent
1b32c4f054
commit
c1a9f6120a
@@ -9,6 +9,8 @@
|
||||
#include <iostream>
|
||||
#include "Utils.h"
|
||||
|
||||
using namespace facebook;
|
||||
|
||||
YGFloatOptional YGNode::getLeadingPosition(
|
||||
const YGFlexDirection& axis,
|
||||
const float& axisSize) const {
|
||||
@@ -500,7 +502,7 @@ bool YGNode::isNodeFlexible() {
|
||||
float YGNode::getLeadingBorder(const YGFlexDirection& axis) const {
|
||||
if (YGFlexDirectionIsRow(axis) &&
|
||||
style_.border[YGEdgeStart].unit != YGUnitUndefined &&
|
||||
!YGFloatIsUndefined(style_.border[YGEdgeStart].value) &&
|
||||
!yoga::isUndefined(style_.border[YGEdgeStart].value) &&
|
||||
style_.border[YGEdgeStart].value >= 0.0f) {
|
||||
return style_.border[YGEdgeStart].value;
|
||||
}
|
||||
@@ -513,7 +515,7 @@ float YGNode::getLeadingBorder(const YGFlexDirection& axis) const {
|
||||
float YGNode::getTrailingBorder(const YGFlexDirection& flexDirection) const {
|
||||
if (YGFlexDirectionIsRow(flexDirection) &&
|
||||
style_.border[YGEdgeEnd].unit != YGUnitUndefined &&
|
||||
!YGFloatIsUndefined(style_.border[YGEdgeEnd].value) &&
|
||||
!yoga::isUndefined(style_.border[YGEdgeEnd].value) &&
|
||||
style_.border[YGEdgeEnd].value >= 0.0f) {
|
||||
return style_.border[YGEdgeEnd].value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user