aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits/canvas.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/canvas_traits/canvas.rs')
-rw-r--r--components/canvas_traits/canvas.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/canvas_traits/canvas.rs b/components/canvas_traits/canvas.rs
index a9d47d252a4..ec3f623e634 100644
--- a/components/canvas_traits/canvas.rs
+++ b/components/canvas_traits/canvas.rs
@@ -22,10 +22,10 @@ pub struct CanvasId(pub u64);
#[derive(Clone, Deserialize, Serialize)]
pub enum CanvasMsg {
Canvas2d(Canvas2dMsg, CanvasId),
- Create(IpcSender<CanvasId>, Size2D<i32>, webrender_api::RenderApiSender, bool),
+ Create(IpcSender<CanvasId>, Size2D<u32>, webrender_api::RenderApiSender, bool),
FromLayout(FromLayoutMsg, CanvasId),
FromScript(FromScriptMsg, CanvasId),
- Recreate(Size2D<i32>, CanvasId),
+ Recreate(Size2D<u32>, CanvasId),
Close(CanvasId),
}
@@ -143,7 +143,7 @@ impl RadialGradientStyle {
#[derive(Clone, Deserialize, Serialize)]
pub struct SurfaceStyle {
pub surface_data: ByteBuf,
- pub surface_size: Size2D<i32>,
+ pub surface_size: Size2D<u32>,
pub repeat_x: bool,
pub repeat_y: bool,
}
@@ -151,7 +151,7 @@ pub struct SurfaceStyle {
impl SurfaceStyle {
pub fn new(
surface_data: Vec<u8>,
- surface_size: Size2D<i32>,
+ surface_size: Size2D<u32>,
repeat_x: bool,
repeat_y: bool,
) -> Self {