mirror of
https://github.com/servo/servo.git
synced 2025-07-06 06:53: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,12 +157,9 @@ impl Device {
|
||||||
|
|
||||||
/// Returns the current viewport size in app units.
|
/// Returns the current viewport size in app units.
|
||||||
pub fn au_viewport_size(&self) -> Size2D<Au> {
|
pub fn au_viewport_size(&self) -> Size2D<Au> {
|
||||||
unsafe {
|
|
||||||
// TODO(emilio): Need to take into account scrollbars.
|
|
||||||
let area = &self.pres_context().mVisibleArea;
|
let area = &self.pres_context().mVisibleArea;
|
||||||
Size2D::new(Au(area.width), Au(area.height))
|
Size2D::new(Au(area.width), Au(area.height))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the current viewport size in app units, recording that it's been
|
/// Returns the current viewport size in app units, recording that it's been
|
||||||
/// used for viewport unit resolution.
|
/// used for viewport unit resolution.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue