diff options
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r-- | components/script_layout_interface/lib.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index 7c0f97ef917..e3e956096bb 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -43,7 +43,7 @@ pub mod rpc; pub mod wrapper_traits; use atomic_refcell::AtomicRefCell; -use canvas_traits::canvas::CanvasMsg; +use canvas_traits::CanvasMsg; use core::nonzero::NonZero; use ipc_channel::ipc::IpcSender; use libc::c_void; @@ -124,13 +124,8 @@ pub enum LayoutElementType { SVGSVGElement, } -pub enum HTMLCanvasDataSource { - WebGL(webrender_api::ImageKey), - Image(Option<IpcSender<CanvasMsg>>) -} - pub struct HTMLCanvasData { - pub source: HTMLCanvasDataSource, + pub ipc_renderer: Option<IpcSender<CanvasMsg>>, pub width: u32, pub height: u32, } |