diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-01-29 20:57:54 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-01-29 21:05:50 -0800 |
commit | b27f4a896925d6b889b1e0622218e575e8b54626 (patch) | |
tree | ddd9bf1cd612b58792906f10a97b27109ed1ce3f /src/components/main/layout/context.rs | |
parent | 9f6ab8ed7761edd218ac6e65e74cfb7aafca4cb2 (diff) | |
download | servo-b27f4a896925d6b889b1e0622218e575e8b54626.tar.gz servo-b27f4a896925d6b889b1e0622218e575e8b54626.zip |
layout: Introduce a DOM leaf set as a prerequisite for parallel flow
construction.
This will be very slow until we have the concurrent hash table, but we
might as well get it in.
Diffstat (limited to 'src/components/main/layout/context.rs')
-rw-r--r-- | src/components/main/layout/context.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/main/layout/context.rs b/src/components/main/layout/context.rs index 93613a54a19..801b474c824 100644 --- a/src/components/main/layout/context.rs +++ b/src/components/main/layout/context.rs @@ -6,8 +6,9 @@ use extra::arc::MutexArc; use green::task::GreenTask; -use layout::flow::LeafSet; +use layout::flow::FlowLeafSet; use layout::util::OpaqueNode; +use layout::wrapper::DomLeafSet; use std::cast; use std::ptr; use std::rt::Runtime; @@ -36,8 +37,11 @@ pub struct LayoutContext { /// A channel up to the constellation. constellation_chan: ConstellationChan, + /// The set of leaf DOM nodes. + dom_leaf_set: MutexArc<DomLeafSet>, + /// The set of leaf flows. - leaf_set: MutexArc<LeafSet>, + flow_leaf_set: MutexArc<FlowLeafSet>, /// Information needed to construct a font context. font_context_info: FontContextInfo, |