mirror of
https://github.com/servo/servo.git
synced 2025-07-05 14:33:38 +01:00
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:
parent
7bf6b528b1
commit
9a55b1e469
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue