diff options
author | Arthur Marble <arthur@info9.net> | 2016-09-18 03:41:16 -0500 |
---|---|---|
committer | Arthur Marble <arthur@info9.net> | 2016-09-18 03:41:16 -0500 |
commit | 883902bd972c9ea91cf6b6be74908e87c517b72e (patch) | |
tree | 1c598d19c2770949d3f2fa31b401a0d671212a83 /components/script/dom/node.rs | |
parent | dbec9d845472251b73e444d80a493173f11a0482 (diff) | |
download | servo-883902bd972c9ea91cf6b6be74908e87c517b72e.tar.gz servo-883902bd972c9ea91cf6b6be74908e87c517b72e.zip |
Most of the code refactoring needed to be done is done with this commit.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 5f1bee3a730..041d6407418 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -796,10 +796,10 @@ impl Node { } pub fn summarize(&self) -> NodeInfo { - let USVString(baseURI) = self.BaseURI(); + let USVString(base_uri) = self.BaseURI(); NodeInfo { uniqueId: self.unique_id(), - baseURI: baseURI, + baseURI: base_uri, parent: self.GetParentNode().map_or("".to_owned(), |node| node.unique_id()), nodeType: self.NodeType(), namespaceURI: String::new(), //FIXME @@ -2296,8 +2296,8 @@ impl NodeMethods for Node { } // https://dom.spec.whatwg.org/#dom-node-issamenode - fn IsSameNode(&self, otherNode: Option<&Node>) -> bool { - match otherNode { + fn IsSameNode(&self, other_node: Option<&Node>) -> bool { + match other_node { Some(node) => self == node, None => false, } |