mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #17058 - Manishearth:stylo-randomprops, r=emilio
stylo: Support remaning longhands r=xidorn https://bugzilla.mozilla.org/show_bug.cgi?id=1367275 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17058) <!-- Reviewable:end -->
This commit is contained in:
commit
369d5cf124
14 changed files with 425 additions and 166 deletions
|
@ -106,6 +106,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