Mirror AsyncExecutor, yoga, and nanosvg to fbcode.

Summary: We'll need these libraries for rainbow, and none of them exist in fbcode.

Reviewed By: mzlee

Differential Revision: D5897801

fbshipit-source-id: c379b76fef2ab204555ceded0834efc6ba932f90
This commit is contained in:
Richard Ross
2017-11-01 16:26:57 -07:00
committed by Facebook Github Bot
parent ff0a3f39d9
commit 5c617a5947

View File

@@ -3322,7 +3322,7 @@ float YGRoundValueToPixelGrid(const float value,
scaledValue = scaledValue - fractial;
} else {
// Finally we just round the value
scaledValue = scaledValue - fractial + (fractial > 0.5f || YGFloatsEqual(fractial, 0.5f) ? 1.0f : 0.0f);
scaledValue = scaledValue - fractial + (fractial >= 0.5f ? 1.0f : 0.0f);
}
return scaledValue / pointScaleFactor;
}