style: Simplify author_style_disabled handling.

This commit is contained in:
Emilio Cobos Álvarez 2017-04-18 18:55:38 +02:00
parent 97235d0bf7
commit 4651b94ff0
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 13 additions and 20 deletions

View file

@ -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.