mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
script: Pass the correct parent node to pre_insert in insertBefore
Closes #1572.
This commit is contained in:
parent
48e9b8f752
commit
2254a9e923
2 changed files with 3 additions and 2 deletions
|
@ -1346,9 +1346,9 @@ impl Node {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn InsertBefore(&self, node: AbstractNode, child: Option<AbstractNode>)
|
||||
pub fn InsertBefore(&self, abstract_self: AbstractNode, node: AbstractNode, child: Option<AbstractNode>)
|
||||
-> Fallible<AbstractNode> {
|
||||
Node::pre_insert(node, node, child)
|
||||
Node::pre_insert(node, abstract_self, child)
|
||||
}
|
||||
|
||||
pub fn wait_until_safe_to_modify_dom(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue