Move LayoutNode and related traits to script_layout_interface.

This commit is contained in:
Ms2ger 2016-06-15 15:04:04 +01:00
parent 000e2de57a
commit 0d0b268138
15 changed files with 408 additions and 359 deletions

View file

@ -11,6 +11,7 @@ use flow::{CAN_BE_FRAGMENTED, Flow, ImmutableFlowUtils, PostorderFlowTraversal};
use flow::{PreorderFlowTraversal, self};
use gfx::display_list::OpaqueNode;
use script_layout_interface::restyle_damage::{BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW, REPAINT, RestyleDamage};
use script_layout_interface::wrapper_traits::{LayoutNode, ThreadSafeLayoutNode};
use std::mem;
use style::context::StyleContext;
use style::matching::MatchMethods;
@ -18,8 +19,7 @@ use style::traversal::{DomTraversalContext, STYLE_BLOOM};
use style::traversal::{put_thread_local_bloom_filter, recalc_style_at};
use util::opts;
use util::tid::tid;
use wrapper::{LayoutNode, LayoutNodeLayoutData, ServoLayoutNode};
use wrapper::{ThreadSafeLayoutNode, ThreadSafeLayoutNodeHelpers};
use wrapper::{LayoutNodeLayoutData, ServoLayoutNode, ThreadSafeLayoutNodeHelpers};
pub struct RecalcStyleAndConstructFlows<'lc> {
context: LayoutContext<'lc>,