make isUndefined public, add CSS_POSITION_COUNT back

This commit is contained in:
Andrew Rasmussen
2014-09-30 13:18:03 -07:00
parent 0ae8bcf8f6
commit 91786cd2c7
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
#include "Layout.h"
static bool isUndefined(float value) {
bool isUndefined(float value) {
return isnan(value);
}

View File

@@ -39,7 +39,8 @@ typedef enum {
CSS_LEFT = 0,
CSS_TOP,
CSS_RIGHT,
CSS_BOTTOM
CSS_BOTTOM,
CSS_POSITION_COUNT
} css_position_t;
typedef enum {
@@ -116,5 +117,6 @@ void print_css_node(css_node_t *node, css_print_options_t options);
// Function that computes the layout!
void layoutNode(css_node_t *node, float maxWidth);
bool isUndefined(float value);
#endif