From e17697fb0e525988a305183917354adb15880214 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 7 Dec 2017 23:18:35 +0100 Subject: Update euclid, azure, skia, offscreen_gl_context, plane-split, webrender --- components/script/dom/paintworkletglobalscope.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'components/script/dom/paintworkletglobalscope.rs') diff --git a/components/script/dom/paintworkletglobalscope.rs b/components/script/dom/paintworkletglobalscope.rs index 61527c8dd9f..bef867b5da4 100644 --- a/components/script/dom/paintworkletglobalscope.rs +++ b/components/script/dom/paintworkletglobalscope.rs @@ -24,7 +24,7 @@ use dom::workletglobalscope::WorkletGlobalScope; use dom::workletglobalscope::WorkletGlobalScopeInit; use dom::workletglobalscope::WorkletTask; use dom_struct::dom_struct; -use euclid::ScaleFactor; +use euclid::TypedScale; use euclid::TypedSize2D; use ipc_channel::ipc; use js::jsapi::Call; @@ -79,7 +79,7 @@ pub struct PaintWorkletGlobalScope { /// The most recent size the worklet was drawn at cached_size: Cell>, /// The most recent device pixel ratio the worklet was drawn at - cached_device_pixel_ratio: Cell>, + cached_device_pixel_ratio: Cell>, /// The most recent properties the worklet was drawn at cached_properties: DomRefCell>, /// The most recent arguments the worklet was drawn at @@ -104,7 +104,7 @@ impl PaintWorkletGlobalScope { paint_class_instances: Default::default(), cached_name: DomRefCell::new(Atom::from("")), cached_size: Cell::new(TypedSize2D::zero()), - cached_device_pixel_ratio: Cell::new(ScaleFactor::new(1.0)), + cached_device_pixel_ratio: Cell::new(TypedScale::new(1.0)), cached_properties: Default::default(), cached_arguments: Default::default(), cached_result: DomRefCell::new(DrawAPaintImageResult { @@ -173,7 +173,7 @@ impl PaintWorkletGlobalScope { fn draw_a_paint_image(&self, name: &Atom, size_in_px: TypedSize2D, - device_pixel_ratio: ScaleFactor, + device_pixel_ratio: TypedScale, properties: &StylePropertyMapReadOnly, arguments: &[String]) -> DrawAPaintImageResult @@ -193,7 +193,7 @@ impl PaintWorkletGlobalScope { name: &Atom, size_in_px: TypedSize2D, size_in_dpx: TypedSize2D, - device_pixel_ratio: ScaleFactor, + device_pixel_ratio: TypedScale, properties: &StylePropertyMapReadOnly, arguments: &[String]) -> DrawAPaintImageResult @@ -340,7 +340,7 @@ impl PaintWorkletGlobalScope { impl Painter for WorkletPainter { fn draw_a_paint_image(&self, size: TypedSize2D, - device_pixel_ratio: ScaleFactor, + device_pixel_ratio: TypedScale, properties: Vec<(Atom, String)>, arguments: Vec) -> DrawAPaintImageResult { @@ -451,7 +451,7 @@ impl PaintWorkletGlobalScopeMethods for PaintWorkletGlobalScope { pub enum PaintWorkletTask { DrawAPaintImage(Atom, TypedSize2D, - ScaleFactor, + TypedScale, Vec<(Atom, String)>, Vec, Sender), -- cgit v1.2.3