Move HTMLCanvasData to script_layout_interface.

This commit is contained in:
Ms2ger 2016-06-15 14:05:05 +01:00
parent 6b847eb93a
commit 000e2de57a
9 changed files with 22 additions and 12 deletions

View file

@ -17,13 +17,17 @@
#[allow(unused_extern_crates)]
#[macro_use]
extern crate bitflags;
extern crate canvas_traits;
extern crate core;
extern crate heapsize;
extern crate ipc_channel;
extern crate style;
pub mod restyle_damage;
use canvas_traits::CanvasMsg;
use core::nonzero::NonZero;
use ipc_channel::ipc::IpcSender;
use restyle_damage::RestyleDamage;
use std::cell::RefCell;
use style::servo::PrivateStyleData;
@ -69,3 +73,9 @@ pub enum LayoutElementType {
HTMLTableSectionElement,
HTMLTextAreaElement,
}
pub struct HTMLCanvasData {
pub ipc_renderer: Option<IpcSender<CanvasMsg>>,
pub width: u32,
pub height: u32,
}