aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-01 12:20:43 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-01 20:36:43 +0100
commitc9f26dfd599bd50deac9e120bd54c9dbdfe40ae0 (patch)
treed275ef196a7d623d950f21a39ce8a7c989a996f9 /components/script/dom/node.rs
parent1290c1879415c80b374bc3ff6378aec899850048 (diff)
downloadservo-c9f26dfd599bd50deac9e120bd54c9dbdfe40ae0.tar.gz
servo-c9f26dfd599bd50deac9e120bd54c9dbdfe40ae0.zip
Rename Root::root_ref() to Root::r().
As it will be used much more widely after the upcoming changes, this limits the effort reading and writing the method calls.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index befbe131553..595410a4818 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -307,10 +307,10 @@ impl<'a> PrivateNodeHelpers for JSRef<'a, Node> {
assert!(new_child.next_sibling().is_none());
match before {
Some(ref before) => {
- assert!(before.parent_node().root().root_ref() == Some(self));
+ assert!(before.parent_node().root().r() == Some(self));
match before.prev_sibling().root() {
None => {
- assert!(Some(*before) == self.first_child().root().root_ref());
+ assert!(Some(*before) == self.first_child().root().r());
self.first_child.assign(Some(new_child));
},
Some(prev_sibling) => {
@@ -342,7 +342,7 @@ impl<'a> PrivateNodeHelpers for JSRef<'a, Node> {
///
/// Fails unless `child` is a child of this node.
fn remove_child(self, child: JSRef<Node>) {
- assert!(child.parent_node().root().root_ref() == Some(self));
+ assert!(child.parent_node().root().r() == Some(self));
match child.prev_sibling.get().root() {
None => {
@@ -1811,7 +1811,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
}.root();
// Step 3.
- Node::replace_all(node.root_ref(), self);
+ Node::replace_all(node.r(), self);
}
NodeTypeId::Comment |
NodeTypeId::Text |