Add convenient cast method for MeasureOutput.Make

Summary: Same as Java, it allows to use float and double values in Make arguments.

Reviewed By: emilsjolander

Differential Revision: D4163347

fbshipit-source-id: f373247b3f37e7940a66044000cca2935068decf
This commit is contained in:
Kazuki Sakamoto
2016-11-10 19:13:19 -08:00
committed by Facebook Github Bot
parent f222d22ba8
commit 0dbbfc5910
3 changed files with 28 additions and 11 deletions

View File

@@ -9,10 +9,10 @@
namespace Facebook.CSSLayout
{
public delegate long MeasureFunction(
CSSNode node,
float width,
CSSMeasureMode widthMode,
float height,
CSSMeasureMode heightMode);
public delegate long MeasureFunction(
CSSNode node,
float width,
CSSMeasureMode widthMode,
float height,
CSSMeasureMode heightMode);
}