mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Change device and rule_set references to accessors
This commit is contained in:
parent
0ad0641872
commit
4196156bb9
7 changed files with 37 additions and 22 deletions
|
@ -95,7 +95,7 @@ impl PerDocumentStyleDataImpl {
|
|||
///
|
||||
/// Implies also a stylesheet flush.
|
||||
pub fn reset_device(&mut self, guard: &SharedRwLockReadGuard) {
|
||||
Arc::get_mut(&mut self.stylist.device).unwrap().reset();
|
||||
Arc::get_mut(self.stylist.device_mut()).unwrap().reset();
|
||||
self.stylesheets.force_dirty();
|
||||
self.flush_stylesheets(guard);
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ impl PerDocumentStyleDataImpl {
|
|||
|
||||
/// Get the default computed values for this document.
|
||||
pub fn default_computed_values(&self) -> &Arc<ComputedValues> {
|
||||
self.stylist.device.default_computed_values_arc()
|
||||
self.stylist.device().default_computed_values_arc()
|
||||
}
|
||||
|
||||
/// Clear the stylist. This will be a no-op if the stylist is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue