diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-11-06 16:10:36 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-11-06 16:13:55 -0500 |
commit | 7c365b0324b2723d5df2437e59555bfc1835a68f (patch) | |
tree | ab4ac6bb4ca966885f512041079567080d722f2b /ports | |
parent | fd260f78c80a070727ba88d7b5f7cc40eb7efb5a (diff) | |
download | servo-7c365b0324b2723d5df2437e59555bfc1835a68f.tar.gz servo-7c365b0324b2723d5df2437e59555bfc1835a68f.zip |
Centralize definitions of window sizes and DPI in compositor/constellation during startup.
Diffstat (limited to 'ports')
-rw-r--r-- | ports/glutin/app.rs | 2 | ||||
-rw-r--r-- | ports/libsimpleservo/api/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/glutin/app.rs b/ports/glutin/app.rs index a43245d79a5..0b001969fa0 100644 --- a/ports/glutin/app.rs +++ b/ports/glutin/app.rs @@ -70,7 +70,7 @@ impl App { // Handle browser state. let browser = Browser::new(window.clone()); - let mut servo = Servo::new(embedder, window.clone(), device_pixels_per_px); + let mut servo = Servo::new(embedder, window.clone()); let browser_id = BrowserId::new(); servo.handle_events(vec![WindowEvent::NewBrowser(get_default_url(), browser_id)]); servo.setup_logging(); diff --git a/ports/libsimpleservo/api/src/lib.rs b/ports/libsimpleservo/api/src/lib.rs index 2850911f230..9b070d4b8e1 100644 --- a/ports/libsimpleservo/api/src/lib.rs +++ b/ports/libsimpleservo/api/src/lib.rs @@ -211,7 +211,7 @@ pub fn init( gl: gl.clone(), }); - let servo = Servo::new(embedder_callbacks, window_callbacks.clone(), None); + let servo = Servo::new(embedder_callbacks, window_callbacks.clone()); SERVO.with(|s| { let mut servo_glue = ServoGlue { |