Implemented paint worklet properties.

This commit is contained in:
Alan Jeffrey 2017-06-14 18:14:54 -05:00
parent de331c6bc8
commit ef033b8362
29 changed files with 353 additions and 118 deletions

View file

@ -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"]}

View file

@ -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;

View file

@ -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>),
}