mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
CSS: Selection callbacks: Update to latest LibDOM API.
This commit is contained in:
parent
5a6bb39218
commit
251cce29b7
@ -473,6 +473,7 @@ css_error named_ancestor_node(void *pw, void *node,
|
||||
{
|
||||
dom_element_named_ancestor_node(node, qname->name,
|
||||
(struct dom_element **)ancestor);
|
||||
dom_node_unref(*ancestor);
|
||||
|
||||
return CSS_OK;
|
||||
}
|
||||
@ -493,6 +494,7 @@ css_error named_parent_node(void *pw, void *node,
|
||||
{
|
||||
dom_element_named_parent_node(node, qname->name,
|
||||
(struct dom_element **)parent);
|
||||
dom_node_unref(*parent);
|
||||
|
||||
return CSS_OK;
|
||||
}
|
||||
@ -642,6 +644,7 @@ css_error named_generic_sibling_node(void *pw, void *node,
|
||||
css_error parent_node(void *pw, void *node, void **parent)
|
||||
{
|
||||
dom_element_parent_node(node, (struct dom_element **)parent);
|
||||
dom_node_unref(*parent);
|
||||
|
||||
return CSS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user