Hoist exported wrapper functionality into a family of traits.

All the existing code still uses the concrete implementations, so this
shouldn't impact the generated code at all.
This commit is contained in:
Bobby Holley 2015-11-17 14:20:47 -08:00
parent acbe413052
commit 54f2700ba6
6 changed files with 297 additions and 198 deletions

View file

@ -82,7 +82,7 @@ use util::opts;
use util::task::spawn_named_with_send_on_failure;
use util::task_state;
use util::workqueue::WorkQueue;
use wrapper::{LayoutNode, ThreadSafeLayoutNode};
use wrapper::{LayoutDocumentTrait, LayoutElementTrait, LayoutNode, LayoutNodeTrait, ThreadSafeLayoutNode};
/// The number of screens of data we're allowed to generate display lists for in each direction.
pub const DISPLAY_PORT_SIZE_FACTOR: i32 = 8;