aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 3cc549f102f..afb7f88b7ae 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -45,10 +45,9 @@ pub extern crate profile_traits;
pub extern crate script;
pub extern crate script_traits;
pub extern crate script_layout_interface;
+pub extern crate servo_config;
pub extern crate servo_url;
pub extern crate style;
-pub extern crate url;
-pub extern crate util;
#[cfg(feature = "webdriver")]
extern crate webdriver_server;
@@ -88,17 +87,19 @@ use profile::time as profile_time;
use profile_traits::mem;
use profile_traits::time;
use script_traits::{ConstellationMsg, SWManagerSenders, ScriptMsg};
+use servo_config::opts;
+use servo_config::prefs::PREFS;
+use servo_config::resource_files::resources_dir_path;
use servo_url::ServoUrl;
use std::borrow::Cow;
use std::cmp::max;
use std::path::PathBuf;
use std::rc::Rc;
use std::sync::mpsc::Sender;
-use util::opts;
-use util::prefs::PREFS;
-use util::resource_files::resources_dir_path;
pub use gleam::gl;
+pub use servo_config as config;
+pub use servo_url as url;
/// The in-process interface to Servo.
///
@@ -163,7 +164,6 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
device_pixel_ratio: device_pixel_ratio,
resource_override_path: Some(resource_path),
enable_aa: opts.enable_text_antialiasing,
- enable_msaa: opts.use_msaa,
enable_profiler: opts.webrender_stats,
debug: opts.webrender_debug,
enable_recording: opts.webrender_record,
@@ -171,6 +171,9 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
enable_scrollbars: opts.output_file.is_none(),
renderer_kind: renderer_kind,
enable_subpixel_aa: opts.enable_subpixel_text_antialiasing,
+ clear_empty_tiles: true,
+ clear_framebuffer: true,
+ clear_color: webrender_traits::ColorF::new(1.0, 1.0, 1.0, 1.0),
})
};