aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-10-17 16:42:51 +0100
committerJosh Matthews <josh@joshmatthews.net>2013-10-31 13:34:44 -0400
commit99a36cbeb6077976861d94b7af16e9e57994a14d (patch)
tree3f8074b615977c26527798b732bc12c47b15f1ba /src/components/script/script_task.rs
parentcc76a2188e38034f853aecd5365857adcda8e401 (diff)
downloadservo-99a36cbeb6077976861d94b7af16e9e57994a14d.tar.gz
servo-99a36cbeb6077976861d94b7af16e9e57994a14d.zip
Make Document a Node.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index e710dfb6d95..b17449ab0ba 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -274,7 +274,7 @@ impl Page {
/// This function fails if there is no root frame.
fn reflow(&mut self, goal: ReflowGoal, script_chan: ScriptChan, compositor: @ScriptListener) {
let root = match self.frame {
- None => fail!(~"Tried to relayout with no root frame!"),
+ None => return,
Some(ref frame) => {
frame.document.document().GetDocumentElement()
}