mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Support @font-face in user and user agent stylesheets.
This commit is contained in:
parent
9317a30b91
commit
4833204653
2 changed files with 20 additions and 6 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue