mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
node: add normalize method (NO TEST)
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -377,6 +377,10 @@ pub fn nodeIsEqualNode(node: *Node, other: *Node) bool {
|
||||
return res;
|
||||
}
|
||||
|
||||
pub fn nodeNormalize(node: *Node) void {
|
||||
_ = nodeVtable(node).dom_node_normalize.?(node);
|
||||
}
|
||||
|
||||
pub fn nodeRemoveChild(node: *Node, child: *Node) *Node {
|
||||
var res: ?*Node = undefined;
|
||||
_ = nodeVtable(node).dom_node_remove_child.?(node, child, &res);
|
||||
|
||||
Reference in New Issue
Block a user