mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Cleanup Node::CloneNode.
This commit is contained in:
parent
327b5d0ce5
commit
ba5a08c106
1 changed files with 1 additions and 4 deletions
|
@ -1998,10 +1998,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
|
|||
|
||||
// http://dom.spec.whatwg.org/#dom-node-clonenode
|
||||
fn CloneNode(self, deep: bool) -> Temporary<Node> {
|
||||
match deep {
|
||||
true => Node::clone(self, None, CloneChildren),
|
||||
false => Node::clone(self, None, DoNotCloneChildren)
|
||||
}
|
||||
Node::clone(self, None, if deep { CloneChildren } else { DoNotCloneChildren })
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-node-isequalnode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue