aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2016-01-01 17:11:10 -0700
committerMichael Howell <michael@notriddle.com>2016-03-24 11:18:54 -0700
commitc9cb4839e42a63120f4fc165b8e569f62fb4be44 (patch)
treeb0fbb76e5e546acb736a7c8df33f7361c5919299 /components/script/dom/window.rs
parentf2f05869d6ccd445df9b73e2e8d038c6cfa9e687 (diff)
downloadservo-c9cb4839e42a63120f4fc165b8e569f62fb4be44.tar.gz
servo-c9cb4839e42a63120f4fc165b8e569f62fb4be44.zip
No more headless compositor. Just the normal one.
This changes headless operation to strictly be a runtime option, rather than a compile-time one. Note that the old headless version still relied on a display server to support WebGL, while it now requires one all the time. Fixes #8573
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 9ee7fd81160..1e79620fb29 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1060,7 +1060,7 @@ impl Window {
// When all these conditions are met, notify the constellation
// that this pipeline is ready to write the image (from the script thread
// perspective at least).
- if opts::get().output_file.is_some() && for_display {
+ if (opts::get().output_file.is_some() || opts::get().exit_after_load) && for_display {
let document = self.Document();
// Checks if the html element has reftest-wait attribute present.