mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Replacing Node.prototype.rootNode for Node.prototype.getRootNode.
This commit is contained in:
parent
3916d1d613
commit
0074d2a7a8
5 changed files with 6 additions and 73 deletions
|
@ -1934,8 +1934,8 @@ impl NodeMethods for Node {
|
|||
}
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-node-rootnode
|
||||
fn RootNode(&self) -> Root<Node> {
|
||||
// https://dom.spec.whatwg.org/#dom-node-getrootnode
|
||||
fn GetRootNode(&self) -> Root<Node> {
|
||||
self.inclusive_ancestors().last().unwrap()
|
||||
}
|
||||
|
||||
|
@ -2703,3 +2703,4 @@ impl Into<LayoutElementType> for ElementTypeId {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue