mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Initial window sizes are mandatory.
This commit is contained in:
parent
34e77f62af
commit
231a37be24
12 changed files with 101 additions and 130 deletions
|
@ -69,10 +69,8 @@ impl MediaQueryList {
|
|||
}
|
||||
|
||||
pub fn evaluate(&self) -> bool {
|
||||
self.document.device().map_or(false, |device| {
|
||||
self.media_query_list
|
||||
.evaluate(&device, self.document.quirks_mode())
|
||||
})
|
||||
self.media_query_list
|
||||
.evaluate(&self.document.device(), self.document.quirks_mode())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue