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

@ -31,6 +31,7 @@ use range::*;
use rustc_serialize::{Encodable, Encoder};
use script_layout_interface::HTMLCanvasData;
use script_layout_interface::restyle_damage::{RECONSTRUCT_FLOW, RestyleDamage};
use script_layout_interface::wrapper_traits::{PseudoElementType, ThreadSafeLayoutElement, ThreadSafeLayoutNode};
use std::borrow::ToOwned;
use std::cmp::{max, min};
use std::collections::LinkedList;
@ -49,7 +50,6 @@ use text;
use text::TextRunScanner;
use url::Url;
use util;
use wrapper::{PseudoElementType, ThreadSafeLayoutElement, ThreadSafeLayoutNode};
/// Fragments (`struct Fragment`) are the leaves of the layout tree. They cannot position
/// themselves. In general, fragments do not have a simple correspondence with CSS fragments in the