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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/canvas_traits/canvas.rs b/components/canvas_traits/canvas.rs
index db678b42572..7d7a86e9961 100644
--- a/components/canvas_traits/canvas.rs
+++ b/components/canvas_traits/canvas.rs
@@ -172,7 +172,7 @@ impl SurfaceStyle {
repeat_y: bool,
) -> Self {
Self {
- surface_data: surface_data.into(),
+ surface_data: ByteBuf::from(surface_data),
surface_size,
repeat_x,
repeat_y,