mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Add a way to update an empty stylesheet for @import.
We'll update the empty stylesheet we've created when instantiating the ImportRule when the stylesheet finishes loading.
This commit is contained in:
parent
a42cfae153
commit
ca93a2dcec
2 changed files with 92 additions and 33 deletions
|
@ -297,4 +297,8 @@ impl MediaList {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.media_queries.is_empty()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue