mirror of
https://github.com/servo/servo.git
synced 2025-08-23 06:15:35 +01:00
Remove call to env::current_dir from Browser
Put it in util::opts instead.
This commit is contained in:
parent
dd04cf46d1
commit
aa906a54d3
8 changed files with 18 additions and 21 deletions
|
@ -12,6 +12,7 @@ use std::borrow::ToOwned;
|
|||
use std::ffi;
|
||||
use std::str;
|
||||
use browser;
|
||||
use std_url::Url;
|
||||
|
||||
const MAX_RENDERING_THREADS: usize = 128;
|
||||
|
||||
|
@ -70,7 +71,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
|
|||
};
|
||||
|
||||
let mut temp_opts = opts::default_opts();
|
||||
temp_opts.url = HOME_URL.to_owned();
|
||||
temp_opts.url = Url::parse(HOME_URL).unwrap();
|
||||
temp_opts.paint_threads = rendering_threads;
|
||||
temp_opts.layout_threads = rendering_threads;
|
||||
temp_opts.headless = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue