diff options
Diffstat (limited to 'components/script_layout_interface')
-rw-r--r-- | components/script_layout_interface/Cargo.toml | 1 | ||||
-rw-r--r-- | components/script_layout_interface/lib.rs | 1 | ||||
-rw-r--r-- | components/script_layout_interface/message.rs | 5 |
3 files changed, 5 insertions, 2 deletions
diff --git a/components/script_layout_interface/Cargo.toml b/components/script_layout_interface/Cargo.toml index 6a74eeda086..8a4c66c9e0d 100644 --- a/components/script_layout_interface/Cargo.toml +++ b/components/script_layout_interface/Cargo.toml @@ -28,6 +28,7 @@ profile_traits = {path = "../profile_traits"} range = {path = "../range"} script_traits = {path = "../script_traits"} selectors = { path = "../selectors" } +servo_atoms = {path = "../atoms"} servo_url = {path = "../url"} style = {path = "../style"} webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]} diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index 3e0a258aa7d..ebdb4a59b7a 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -30,6 +30,7 @@ extern crate profile_traits; extern crate range; extern crate script_traits; extern crate selectors; +extern crate servo_atoms; extern crate servo_url; extern crate style; extern crate webrender_traits; diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs index 84b93c527aa..4b1648bb6a2 100644 --- a/components/script_layout_interface/message.rs +++ b/components/script_layout_interface/message.rs @@ -13,7 +13,8 @@ use profile_traits::mem::ReportsChan; use rpc::LayoutRPC; use script_traits::{ConstellationControlMsg, LayoutControlMsg, LayoutMsg as ConstellationMsg}; use script_traits::{ScrollState, UntrustedNodeAddress, WindowSizeData}; -use script_traits::PaintWorkletExecutor; +use script_traits::Painter; +use servo_atoms::Atom; use servo_url::ServoUrl; use std::sync::Arc; use std::sync::mpsc::{Receiver, Sender}; @@ -86,7 +87,7 @@ pub enum Msg { UpdateScrollStateFromScript(ScrollState), /// Tells layout that script has added some paint worklet modules. - SetPaintWorkletExecutor(Arc<PaintWorkletExecutor>), + RegisterPaint(Atom, Vec<Atom>, Arc<Painter>), } |