Make isTextNode a prop instead of a function

Reviewed By: javache

Differential Revision: D3586184

fbshipit-source-id: 8b269c11c5d47efb6b788be68336845399292168
This commit is contained in:
Emil Sjolander
2016-07-20 08:46:04 -07:00
committed by Facebook Github Bot 6
parent 1af9270e45
commit c7ff46bf55
3 changed files with 5 additions and 6 deletions

View File

@@ -88,13 +88,13 @@ typedef struct CSSNode {
int childCount;
int lineIndex;
bool shouldUpdate;
bool isTextNode;
struct CSSNode* nextChild;
CSSSize (*measure)(void *context, float width, CSSMeasureMode widthMode, float height, CSSMeasureMode heightMode);
struct CSSNode* (*getChild)(void *context, int i);
bool (*isDirty)(void *context);
bool (*isTextNode)(void *context);
void (*print)(void *context);
void *context;
} CSSNode;