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:
Emilio Cobos Álvarez 2016-12-16 12:11:42 +01:00
parent a42cfae153
commit ca93a2dcec
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 92 additions and 33 deletions

View file

@ -297,4 +297,8 @@ impl MediaList {
}
})
}
pub fn is_empty(&self) -> bool {
self.media_queries.is_empty()
}
}