mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Simplify author_style_disabled handling.
This commit is contained in:
parent
97235d0bf7
commit
4651b94ff0
3 changed files with 13 additions and 20 deletions
|
@ -103,12 +103,16 @@ impl PerDocumentStyleDataImpl {
|
|||
let mut stylist = Arc::get_mut(&mut self.stylist).unwrap();
|
||||
let mut extra_data = ExtraStyleData {
|
||||
font_faces: &mut self.font_faces,
|
||||
author_style_disabled: Some(self.stylesheets.author_style_disabled()),
|
||||
};
|
||||
|
||||
stylist.update(&self.stylesheets.flush(),
|
||||
let author_style_disabled = self.stylesheets.author_style_disabled();
|
||||
let stylesheets = self.stylesheets.flush();
|
||||
stylist.update(stylesheets,
|
||||
&StylesheetGuards::same(guard),
|
||||
None, true, &mut extra_data);
|
||||
/* ua_sheets = */ None,
|
||||
/* stylesheets_changed = */ true,
|
||||
author_style_disabled,
|
||||
&mut extra_data);
|
||||
}
|
||||
|
||||
/// Get the default computed values for this document.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue