Skip to content

Commit

Permalink
style: Remove stale todo about handling scrollbars in viewport units.
Browse files Browse the repository at this point in the history
This is effectively not going to happen, per
w3c/csswg-drafts#1766
  • Loading branch information
emilio committed Sep 8, 2017
1 parent 7bf6b52 commit 9a55b1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/style/gecko/media_queries.rs
Expand Up @@ -157,11 +157,8 @@ impl Device {

/// Returns the current viewport size in app units.
pub fn au_viewport_size(&self) -> Size2D<Au> {
unsafe {
// TODO(emilio): Need to take into account scrollbars.
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))
}

/// Returns the current viewport size in app units, recording that it's been
Expand Down

0 comments on commit 9a55b1e

Please sign in to comment.