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
|
@ -10,7 +10,9 @@ path = "lib.rs"
|
|||
|
||||
[dependencies]
|
||||
bitflags = "0.7"
|
||||
canvas_traits = {path = "../canvas_traits"}
|
||||
heapsize = "0.3.0"
|
||||
heapsize_plugin = "0.1.2"
|
||||
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
|
||||
plugins = {path = "../plugins"}
|
||||
style = {path = "../style"}
|
||||
|
|
|
@ -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