From 08bd75fcc942d60c367c52bb3893fac5fc64b2bc Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 1 Oct 2019 23:49:11 +0000 Subject: [PATCH] servo: Merge #18422 - style: Remove stale todo about handling scrollbars in viewport units (from emilio:stale-todo); r=bholley This is effectively not going to happen, per https://github.com/w3c/csswg-drafts/issues/1766 Source-Repo: https://github.com/servo/servo Source-Revision: 9c0abfea239077bc490ed8a2d4a7c32ba782942d UltraBlame original commit: 3352077c1e395a718b681461716823158fcf9282 --- servo/components/style/gecko/media_queries.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/servo/components/style/gecko/media_queries.rs b/servo/components/style/gecko/media_queries.rs index 1c72137de0735..dabdaf44f0c24 100644 --- a/servo/components/style/gecko/media_queries.rs +++ b/servo/components/style/gecko/media_queries.rs @@ -156,11 +156,8 @@ impl Device { pub fn au_viewport_size(&self) -> Size2D { - unsafe { - - let area = &self.pres_context().mVisibleArea; - Size2D::new(Au(area.width), Au(area.height)) - } + let area = &self.pres_context().mVisibleArea; + Size2D::new(Au(area.width), Au(area.height)) }