Support @font-face in user and user agent stylesheets.

This commit is contained in:
Simon Sapin 2015-08-05 19:33:40 +02:00
parent 9317a30b91
commit 4833204653
2 changed files with 20 additions and 6 deletions

View file

@ -84,6 +84,11 @@ impl Stylist {
stylist
}
#[inline]
pub fn stylesheets(&self) -> &[Stylesheet] {
&self.stylesheets
}
pub fn constrain_viewport(&self) -> Option<ViewportConstraints> {
let cascaded_rule = self.stylesheets.iter()
.flat_map(|s| s.effective_rules(&self.device).viewport())