Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-03 02:18:55 +01:00 committed by Martin Robinson
parent 1a3b32a248
commit e0e5a22614
2 changed files with 7 additions and 0 deletions

View file

@ -125,6 +125,7 @@ safe-area-inset-right
scan
screen
scroll-position
scrollbar-inline-size
search
seeked
seeking

View file

@ -164,6 +164,12 @@ impl Device {
self.device_pixel_ratio
}
/// Gets the size of the scrollbar in CSS pixels.
pub fn scrollbar_inline_size(&self) -> CSSPixelLength {
// TODO: implement this.
CSSPixelLength::new(0.0)
}
/// Queries dummy font metrics for Servo. Knows nothing about fonts and does not provide
/// any metrics.
/// TODO: Servo's font metrics provider will probably not live in this crate, so this will