aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/domimplementation.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-03-19 12:35:17 -0400
committerbors-servo <release+servo@mozilla.com>2014-03-19 12:35:17 -0400
commitf7aa6e3d9b8bfcc0565624f1094241b3b8658bd8 (patch)
tree7e7fbd7976c3da12ff463d6ffbeb1a3a336ae7d3 /src/components/script/dom/domimplementation.rs
parentcaf1ed94468da3c134cc8e8f4a1b934bb353dc19 (diff)
parenta6100563a6e43471ae43fb155113bc2026992f78 (diff)
downloadservo-f7aa6e3d9b8bfcc0565624f1094241b3b8658bd8.tar.gz
servo-f7aa6e3d9b8bfcc0565624f1094241b3b8658bd8.zip
auto merge of #1934 : larsbergstrom/servo/rust_20140224_squashed, r=jdm
For review only - don't approve yet (need to squash and land submodule updates first). critic? @metajack
Diffstat (limited to 'src/components/script/dom/domimplementation.rs')
-rw-r--r--src/components/script/dom/domimplementation.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/domimplementation.rs b/src/components/script/dom/domimplementation.rs
index 5a11d0119d4..71f63f52066 100644
--- a/src/components/script/dom/domimplementation.rs
+++ b/src/components/script/dom/domimplementation.rs
@@ -72,18 +72,18 @@ impl DOMImplementation {
{
// Step 3.
let doc_type = DocumentType::new(~"html", None, None, &doc);
- doc_node.AppendChild(&mut NodeCast::from(&doc_type));
+ assert!(doc_node.AppendChild(&mut NodeCast::from(&doc_type)).is_ok());
}
{
// Step 4.
let mut doc_html = NodeCast::from(&HTMLHtmlElement::new(~"html", &doc));
- doc_node.AppendChild(&mut doc_html);
+ assert!(doc_node.AppendChild(&mut doc_html).is_ok());
{
// Step 5.
let mut doc_head = NodeCast::from(&HTMLHeadElement::new(~"head", &doc));
- doc_html.AppendChild(&mut doc_head);
+ assert!(doc_html.AppendChild(&mut doc_head).is_ok());
// Step 6.
match title {
@@ -91,18 +91,18 @@ impl DOMImplementation {
Some(title_str) => {
// Step 6.1.
let mut doc_title = NodeCast::from(&HTMLTitleElement::new(~"title", &doc));
- doc_head.AppendChild(&mut doc_title);
+ assert!(doc_head.AppendChild(&mut doc_title).is_ok());
// Step 6.2.
let title_text = Text::new(title_str, &doc);
- doc_title.AppendChild(&mut NodeCast::from(&title_text));
+ assert!(doc_title.AppendChild(&mut NodeCast::from(&title_text)).is_ok());
}
}
}
// Step 7.
let doc_body = HTMLBodyElement::new(~"body", &doc);
- doc_html.AppendChild(&mut NodeCast::from(&doc_body));
+ assert!(doc_html.AppendChild(&mut NodeCast::from(&doc_body)).is_ok());
}
// Step 8.