@@ -801,7 +801,7 @@ YG_NODE_STYLE_PROPERTY_IMPL(YGDisplay, Display, display, display);
801801
802802// TODO(T26792433): Change the API to accept YGFloatOptional.
803803void YGNodeStyleSetFlex (const YGNodeRef node, const float flex) {
804- if (! YGFloatOptionalFloatEquals ( node->getStyle ().flex , flex) ) {
804+ if (node->getStyle ().flex != flex) {
805805 YGStyle style = node->getStyle ();
806806 if (YGFloatIsUndefined (flex)) {
807807 style.flex = YGFloatOptional ();
@@ -821,7 +821,7 @@ float YGNodeStyleGetFlex(const YGNodeRef node) {
821821
822822// TODO(T26792433): Change the API to accept YGFloatOptional.
823823void YGNodeStyleSetFlexGrow (const YGNodeRef node, const float flexGrow) {
824- if (! YGFloatOptionalFloatEquals ( node->getStyle ().flexGrow , flexGrow) ) {
824+ if (node->getStyle ().flexGrow != flexGrow) {
825825 YGStyle style = node->getStyle ();
826826 if (YGFloatIsUndefined (flexGrow)) {
827827 style.flexGrow = YGFloatOptional ();
@@ -835,7 +835,7 @@ void YGNodeStyleSetFlexGrow(const YGNodeRef node, const float flexGrow) {
835835
836836// TODO(T26792433): Change the API to accept YGFloatOptional.
837837void YGNodeStyleSetFlexShrink (const YGNodeRef node, const float flexShrink) {
838- if (! YGFloatOptionalFloatEquals ( node->getStyle ().flexShrink , flexShrink) ) {
838+ if (node->getStyle ().flexShrink != flexShrink) {
839839 YGStyle style = node->getStyle ();
840840 if (YGFloatIsUndefined (flexShrink)) {
841841 style.flexShrink = YGFloatOptional ();
@@ -940,7 +940,7 @@ float YGNodeStyleGetAspectRatio(const YGNodeRef node) {
940940
941941// TODO(T26792433): Change the API to accept YGFloatOptional.
942942void YGNodeStyleSetAspectRatio (const YGNodeRef node, const float aspectRatio) {
943- if (! YGFloatOptionalFloatEquals ( node->getStyle ().aspectRatio , aspectRatio) ) {
943+ if (node->getStyle ().aspectRatio != aspectRatio) {
944944 YGStyle style = node->getStyle ();
945945 style.aspectRatio = YGFloatOptional (aspectRatio);
946946 node->setStyle (style);
0 commit comments