Introduce a layout_thread crate; drop the dependency of layout on script.

This commit is contained in:
Ms2ger 2016-06-17 13:40:50 +01:00
parent 7414edab05
commit 6528bee84f
8 changed files with 169 additions and 52 deletions

View file

@ -21,7 +21,6 @@ gfx_traits = {path = "../gfx_traits"}
heapsize = "0.3.0"
heapsize_plugin = "0.1.2"
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
layout_traits = {path = "../layout_traits"}
libc = "0.2"
log = "0.3.5"
msg = {path = "../msg"}
@ -30,11 +29,9 @@ plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
range = {path = "../range"}
rustc-serialize = "0.3"
script = {path = "../script"}
script_layout_interface = {path = "../script_layout_interface"}
script_traits = {path = "../script_traits"}
selectors = {version = "0.6", features = ["heap_size"]}
serde_json = "0.7"
serde_macros = "0.7"
smallvec = "0.1"
string_cache = {version = "0.2.20", features = ["heap_size"]}

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,6 @@
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(custom_derive)]
#![feature(mpsc_select)]
#![feature(nonzero)]
#![feature(plugin)]
#![feature(raw)]
@ -32,7 +31,6 @@ extern crate gfx;
extern crate gfx_traits;
extern crate heapsize;
extern crate ipc_channel;
extern crate layout_traits;
extern crate libc;
#[macro_use]
extern crate log;
@ -46,11 +44,9 @@ extern crate profile_traits;
#[macro_use]
extern crate range;
extern crate rustc_serialize;
extern crate script;
extern crate script_layout_interface;
extern crate script_traits;
extern crate selectors;
extern crate serde_json;
extern crate smallvec;
#[macro_use(atom, ns)] extern crate string_cache;
extern crate style;
@ -63,32 +59,31 @@ extern crate util;
extern crate webrender_traits;
#[macro_use]
mod layout_debug;
pub mod layout_debug;
mod animation;
pub mod animation;
mod block;
mod construct;
mod context;
pub mod construct;
pub mod context;
mod data;
mod display_list_builder;
pub mod display_list_builder;
mod flex;
mod floats;
mod flow;
pub mod flow;
mod flow_list;
mod flow_ref;
pub mod flow_ref;
mod fragment;
mod generated_content;
mod incremental;
pub mod incremental;
mod inline;
pub mod layout_thread;
mod list_item;
mod model;
mod multicol;
mod opaque_node;
mod parallel;
pub mod parallel;
mod persistent_list;
mod query;
mod sequential;
pub mod query;
pub mod sequential;
mod table;
mod table_caption;
mod table_cell;
@ -97,9 +92,9 @@ mod table_row;
mod table_rowgroup;
mod table_wrapper;
mod text;
mod traversal;
mod webrender_helpers;
mod wrapper;
pub mod traversal;
pub mod webrender_helpers;
pub mod wrapper;
// For unit tests:
pub use fragment::Fragment;