mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Auto merge of #18422 - emilio:stale-todo, r=bholley
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 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18422) <!-- Reviewable:end -->
This commit is contained in:
commit
9c0abfea23
1 changed files with 2 additions and 5 deletions
|
@ -156,11 +156,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