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-24 18:07:46 +0200
commit4e47d59165d186d0938fe9ffd726b2c1b83d50f4 (patch)
tree20159443d4afcc00b75ab0b34766d77fbc0021a6 /src/components/script/script_task.rs
parentb1c068b2034b8df2fab4a0943273c5a59bf759ed (diff)
downloadservo-4e47d59165d186d0938fe9ffd726b2c1b83d50f4.tar.gz
servo-4e47d59165d186d0938fe9ffd726b2c1b83d50f4.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()
}