style: Remove stale todo about handling scrollbars in viewport units.

This is effectively not going to happen, per
https://github.com/w3c/csswg-drafts/issues/1766
This commit is contained in:
Emilio Cobos Álvarez 2017-09-08 23:24:12 +02:00
parent 7bf6b528b1
commit 9a55b1e469
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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