mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Auto merge of #11804 - Ms2ger:layout-thread-crate, r=jdm
Introduce a layout_thread crate; drop the dependency of layout on script. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11804) <!-- Reviewable:end -->
This commit is contained in:
commit
a94d3ee744
10 changed files with 223 additions and 106 deletions
|
@ -31,7 +31,7 @@ pub extern crate devtools_traits;
|
|||
pub extern crate euclid;
|
||||
pub extern crate gfx;
|
||||
pub extern crate ipc_channel;
|
||||
pub extern crate layout;
|
||||
pub extern crate layout_thread;
|
||||
pub extern crate msg;
|
||||
pub extern crate net;
|
||||
pub extern crate net_traits;
|
||||
|
@ -233,7 +233,7 @@ fn create_constellation(opts: opts::Opts,
|
|||
};
|
||||
let constellation_chan =
|
||||
Constellation::<script_layout_interface::message::Msg,
|
||||
layout::layout_thread::LayoutThread,
|
||||
layout_thread::LayoutThread,
|
||||
script::script_thread::ScriptThread>::start(initial_state);
|
||||
|
||||
// Send the URL command to the constellation.
|
||||
|
@ -267,7 +267,7 @@ pub fn run_content_process(token: String) {
|
|||
script::init();
|
||||
|
||||
unprivileged_content.start_all::<script_layout_interface::message::Msg,
|
||||
layout::layout_thread::LayoutThread,
|
||||
layout_thread::LayoutThread,
|
||||
script::script_thread::ScriptThread>(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue