From fa2ffc72a40de1d65e32a33bf28409b3ddf02aeb Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Tue, 18 Oct 2016 10:19:08 -0700 Subject: [PATCH] Use typedefs from header Summary: Use typedefs from header for print and measure functions Reviewed By: gkassabli Differential Revision: D4036421 fbshipit-source-id: 01f15cb840363850970e6a60e661af06fd6ec9e0 --- CSSLayout/CSSLayout.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CSSLayout/CSSLayout.c b/CSSLayout/CSSLayout.c index 321adac4..6d6c06d5 100644 --- a/CSSLayout/CSSLayout.c +++ b/CSSLayout/CSSLayout.c @@ -91,12 +91,8 @@ typedef struct CSSNode { struct CSSNode *nextChild; - CSSSize (*measure)(void *context, - float width, - CSSMeasureMode widthMode, - float height, - CSSMeasureMode heightMode); - void (*print)(void *context); + CSSMeasureFunc measure; + CSSPrintFunc print; void *context; } CSSNode;