aboutsummaryrefslogtreecommitdiffstats
path: root/ports/servoshell/desktop/window_trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ports/servoshell/desktop/window_trait.rs')
-rw-r--r--ports/servoshell/desktop/window_trait.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/servoshell/desktop/window_trait.rs b/ports/servoshell/desktop/window_trait.rs
index fb528705cbe..030fa112056 100644
--- a/ports/servoshell/desktop/window_trait.rs
+++ b/ports/servoshell/desktop/window_trait.rs
@@ -5,6 +5,8 @@
//! Definition of Window.
//! Implemented by headless and headed windows.
+use std::rc::Rc;
+
use euclid::{Length, Scale};
use servo::compositing::windowing::{EmbedderEvent, WindowMethods};
use servo::config::opts;
@@ -41,7 +43,7 @@ pub trait WindowPortsMethods: WindowMethods {
fn new_glwindow(
&self,
event_loop: &winit::event_loop::ActiveEventLoop,
- ) -> Box<dyn webxr::glwindow::GlWindow>;
+ ) -> Rc<dyn webxr::glwindow::GlWindow>;
fn winit_window(&self) -> Option<&winit::window::Window>;
fn toolbar_height(&self) -> Length<f32, DeviceIndependentPixel>;
fn set_toolbar_height(&self, height: Length<f32, DeviceIndependentPixel>);