diff options
author | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-11-20 18:20:28 +0000 |
---|---|---|
committer | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-11-20 18:20:28 +0000 |
commit | f2578192d04f4bc0ad70abaf070fffd5d1cf63ab (patch) | |
tree | 215945080196bd76ca505f112a8a618220b9145a /src/jsapi-libdom-property.c | |
parent | 19f0eb49df62e8094d6c8fcd5f8d7522b07ec3d3 (diff) | |
download | nsgenbind-f2578192d04f4bc0ad70abaf070fffd5d1cf63ab.tar.gz nsgenbind-f2578192d04f4bc0ad70abaf070fffd5d1cf63ab.tar.bz2 |
keep the binding node list in the state object
Diffstat (limited to 'src/jsapi-libdom-property.c')
-rw-r--r-- | src/jsapi-libdom-property.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/jsapi-libdom-property.c b/src/jsapi-libdom-property.c index 9fbd281..f97d352 100644 --- a/src/jsapi-libdom-property.c +++ b/src/jsapi-libdom-property.c @@ -21,20 +21,12 @@ static int webidl_property_spec_cb(struct webidl_node *node, void *ctx) { struct binding *binding = ctx; - struct genbind_node *binding_node; struct genbind_node *unshared_node; struct webidl_node *type_node; struct webidl_node *ident_node; const char *ident; struct webidl_node *modifier_node; - binding_node = genbind_node_find_type(binding->gb_ast, - NULL, - GENBIND_NODE_TYPE_BINDING); - if (binding_node == NULL) { - return -1; - } - ident_node = webidl_node_find_type(webidl_node_getnode(node), NULL, WEBIDL_NODE_TYPE_IDENT); @@ -56,7 +48,7 @@ static int webidl_property_spec_cb(struct webidl_node *node, void *ctx) fprintf(binding->outfile, "\tJSAPI_PS("); } - unshared_node = genbind_node_find_type_ident(genbind_node_getnode(binding_node), + unshared_node = genbind_node_find_type_ident(binding->binding_list, NULL, GENBIND_NODE_TYPE_BINDING_UNSHARED, ident); @@ -75,7 +67,7 @@ static int webidl_property_spec_cb(struct webidl_node *node, void *ctx) WEBIDL_NODE_TYPE_IDENT); if (ident_node != NULL) { - unshared_node = genbind_node_find_type_type(genbind_node_getnode(binding_node), + unshared_node = genbind_node_find_type_type(binding->binding_list, NULL, GENBIND_NODE_TYPE_BINDING_UNSHARED, webidl_node_gettext(ident_node)); @@ -601,7 +593,7 @@ output_property_body(struct binding *binding, const char *interface) if (inherit_node != NULL) { res = output_property_body(binding, - webidl_node_gettext(inherit_node)); + webidl_node_gettext(inherit_node)); } if (res == 0) { |