mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Compatibility with Apple TVOS
Reviewed By: emilsjolander Differential Revision: D4001901 fbshipit-source-id: f095b4ac0ba91addb28d877b411ec27ecff4aad6
This commit is contained in:
parent
ce179d4b43
commit
ef021348af
@ -100,6 +100,8 @@ typedef struct CSSNode {
|
||||
void *context;
|
||||
} CSSNode;
|
||||
|
||||
static void _CSSNodeMarkDirty(const CSSNodeRef node);
|
||||
|
||||
static float
|
||||
computedEdgeValue(const float edges[CSSEdgeCount], const CSSEdge edge, const float defaultValue) {
|
||||
CSS_ASSERT(edge <= CSSEdgeEnd, "Cannot get computed value of multi-edge shorthands");
|
||||
@ -131,7 +133,7 @@ computedEdgeValue(const float edges[CSSEdgeCount], const CSSEdge edge, const flo
|
||||
|
||||
static int32_t gNodeInstanceCount = 0;
|
||||
|
||||
CSSNodeRef CSSNodeNew() {
|
||||
CSSNodeRef CSSNodeNew(void) {
|
||||
const CSSNodeRef node = calloc(1, sizeof(CSSNode));
|
||||
CSS_ASSERT(node, "Could not allocate memory for node");
|
||||
gNodeInstanceCount++;
|
||||
@ -155,7 +157,7 @@ void CSSNodeFreeRecursive(const CSSNodeRef root) {
|
||||
CSSNodeFree(root);
|
||||
}
|
||||
|
||||
int32_t CSSNodeGetInstanceCount() {
|
||||
int32_t CSSNodeGetInstanceCount(void) {
|
||||
return gNodeInstanceCount;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user