aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-10-10 23:05:30 +0200
committerMs2ger <ms2ger@gmail.com>2013-10-10 23:05:30 +0200
commitcfc9f4956a34c90b6853af10059a1b2309ed01f9 (patch)
tree0b463b98b205b85d239ae070f1dc249401dc9a20
parenta5233f2bc48ef10d93e19820458d17b771d97430 (diff)
downloadservo-cfc9f4956a34c90b6853af10059a1b2309ed01f9.tar.gz
servo-cfc9f4956a34c90b6853af10059a1b2309ed01f9.zip
Reindent some match expressions.
-rw-r--r--src/components/script/dom/node.rs46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index b345b489308..1743c1acabe 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -532,18 +532,18 @@ impl Node<ScriptView> {
pub fn NodeName(&self, abstract_self: AbstractNode<ScriptView>) -> DOMString {
Some(match self.type_id {
- ElementNodeTypeId(*) => {
- do abstract_self.with_imm_element |element| {
- element.TagName().expect("tagName should never be null")
+ ElementNodeTypeId(*) => {
+ do abstract_self.with_imm_element |element| {
+ element.TagName().expect("tagName should never be null")
+ }
}
- }
- CommentNodeTypeId => ~"#comment",
- TextNodeTypeId => ~"#text",
- DoctypeNodeTypeId => {
- do abstract_self.with_imm_doctype |doctype| {
- doctype.name.clone()
+ CommentNodeTypeId => ~"#comment",
+ TextNodeTypeId => ~"#text",
+ DoctypeNodeTypeId => {
+ do abstract_self.with_imm_doctype |doctype| {
+ doctype.name.clone()
+ }
}
- }
})
}
@@ -553,11 +553,11 @@ impl Node<ScriptView> {
pub fn GetOwnerDocument(&self) -> Option<AbstractDocument> {
match self.type_id {
- ElementNodeTypeId(*) |
- CommentNodeTypeId |
- TextNodeTypeId |
- DoctypeNodeTypeId => Some(self.owner_doc),
- // DocumentNodeTypeId => None
+ ElementNodeTypeId(*) |
+ CommentNodeTypeId |
+ TextNodeTypeId |
+ DoctypeNodeTypeId => Some(self.owner_doc),
+ // DocumentNodeTypeId => None
}
}
@@ -591,15 +591,15 @@ impl Node<ScriptView> {
pub fn GetNodeValue(&self, abstract_self: AbstractNode<ScriptView>) -> DOMString {
match self.type_id {
- // ProcessingInstruction
- CommentNodeTypeId | TextNodeTypeId => {
- do abstract_self.with_imm_characterdata() |characterdata| {
- characterdata.Data()
+ // ProcessingInstruction
+ CommentNodeTypeId | TextNodeTypeId => {
+ do abstract_self.with_imm_characterdata() |characterdata| {
+ characterdata.Data()
+ }
+ }
+ _ => {
+ None
}
- }
- _ => {
- None
- }
}
}