mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Support -moz-min-font-size-ratio
This commit is contained in:
parent
de269b6b36
commit
ccccfb988a
7 changed files with 88 additions and 48 deletions
|
@ -104,6 +104,8 @@ impl<'a> Context<'a> {
|
|||
pub fn style(&self) -> &StyleBuilder { &self.style }
|
||||
/// A mutable reference to the current style.
|
||||
pub fn mutate_style(&mut self) -> &mut StyleBuilder<'a> { &mut self.style }
|
||||
/// Get a mutable reference to the current style as well as the device
|
||||
pub fn mutate_style_with_device(&mut self) -> (&mut StyleBuilder<'a>, &Device) { (&mut self.style, &self.device) }
|
||||
}
|
||||
|
||||
/// An iterator over a slice of computed values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue