mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move HTMLCanvasData to script_layout_interface.
This commit is contained in:
parent
6b847eb93a
commit
000e2de57a
9 changed files with 22 additions and 12 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue