aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/paintworkletglobalscope.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-12-07 23:18:35 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-12-08 14:32:28 +0100
commite17697fb0e525988a305183917354adb15880214 (patch)
tree4136b0d2deb9118b77d663671e9208993400db02 /components/script/dom/paintworkletglobalscope.rs
parent76270ad6c1812f9482ecc2efa502c29b41a8f749 (diff)
downloadservo-e17697fb0e525988a305183917354adb15880214.tar.gz
servo-e17697fb0e525988a305183917354adb15880214.zip
Update euclid, azure, skia, offscreen_gl_context, plane-split, webrender
Diffstat (limited to 'components/script/dom/paintworkletglobalscope.rs')
-rw-r--r--components/script/dom/paintworkletglobalscope.rs14
1 files changed, 7 insertions, 7 deletions
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<TypedSize2D<f32, CSSPixel>>,
/// The most recent device pixel ratio the worklet was drawn at
- cached_device_pixel_ratio: Cell<ScaleFactor<f32, CSSPixel, DevicePixel>>,
+ cached_device_pixel_ratio: Cell<TypedScale<f32, CSSPixel, DevicePixel>>,
/// The most recent properties the worklet was drawn at
cached_properties: DomRefCell<Vec<(Atom, String)>>,
/// 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<f32, CSSPixel>,
- device_pixel_ratio: ScaleFactor<f32, CSSPixel, DevicePixel>,
+ device_pixel_ratio: TypedScale<f32, CSSPixel, DevicePixel>,
properties: &StylePropertyMapReadOnly,
arguments: &[String])
-> DrawAPaintImageResult
@@ -193,7 +193,7 @@ impl PaintWorkletGlobalScope {
name: &Atom,
size_in_px: TypedSize2D<f32, CSSPixel>,
size_in_dpx: TypedSize2D<u32, DevicePixel>,
- device_pixel_ratio: ScaleFactor<f32, CSSPixel, DevicePixel>,
+ device_pixel_ratio: TypedScale<f32, CSSPixel, DevicePixel>,
properties: &StylePropertyMapReadOnly,
arguments: &[String])
-> DrawAPaintImageResult
@@ -340,7 +340,7 @@ impl PaintWorkletGlobalScope {
impl Painter for WorkletPainter {
fn draw_a_paint_image(&self,
size: TypedSize2D<f32, CSSPixel>,
- device_pixel_ratio: ScaleFactor<f32, CSSPixel, DevicePixel>,
+ device_pixel_ratio: TypedScale<f32, CSSPixel, DevicePixel>,
properties: Vec<(Atom, String)>,
arguments: Vec<String>)
-> DrawAPaintImageResult {
@@ -451,7 +451,7 @@ impl PaintWorkletGlobalScopeMethods for PaintWorkletGlobalScope {
pub enum PaintWorkletTask {
DrawAPaintImage(Atom,
TypedSize2D<f32, CSSPixel>,
- ScaleFactor<f32, CSSPixel, DevicePixel>,
+ TypedScale<f32, CSSPixel, DevicePixel>,
Vec<(Atom, String)>,
Vec<String>,
Sender<DrawAPaintImageResult>),