Add and run clang format script

Summary: This code used to be auto generated. Let's let clang-format clean up some stuff for us.

Reviewed By: lucasr

Differential Revision: D3662225

fbshipit-source-id: ddd4064cbf9be21ca6a97001ace1b56b4314c86f
This commit is contained in:
Emil Sjolander
2016-08-04 08:20:11 -07:00
committed by Facebook Github Bot 9
parent 9278ff462e
commit efe1595f0e
9 changed files with 680 additions and 541 deletions

View File

@@ -26,9 +26,7 @@ typedef struct CSSCachedMeasurement {
// This value was chosen based on empiracle data. Even the most complicated
// layouts should not require more than 16 entries to fit within the cache.
enum {
CSS_MAX_CACHED_RESULT_COUNT = 16
};
enum { CSS_MAX_CACHED_RESULT_COUNT = 16 };
typedef struct CSSLayout {
float position[4];
@@ -89,9 +87,13 @@ typedef struct CSSNode {
CSSNodeListRef children;
bool isDirty;
struct CSSNode* nextChild;
struct CSSNode *nextChild;
CSSSize (*measure)(void *context, float width, CSSMeasureMode widthMode, float height, CSSMeasureMode heightMode);
CSSSize (*measure)(void *context,
float width,
CSSMeasureMode widthMode,
float height,
CSSMeasureMode heightMode);
void (*print)(void *context);
void *context;
} CSSNode;