mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Bug 1357583: style: Make effective_rules return an iterator, stop refcounting the Device. r=heycam
This makes the code cleaner, and also documents the fact that effective_rules recurses into imports. No we're not adding the imported stylesheets twice, and we share code with the invalidation analysis. MozReview-Commit-ID: DOF2AViTlmR
This commit is contained in:
parent
ebd6f47be3
commit
ac5872b48c
6 changed files with 446 additions and 308 deletions
|
@ -74,7 +74,7 @@ impl PerDocumentStyleDataImpl {
|
|||
///
|
||||
/// Implies also a stylesheet flush.
|
||||
pub fn reset_device(&mut self, guard: &SharedRwLockReadGuard) {
|
||||
Arc::get_mut(self.stylist.device_mut()).unwrap().reset();
|
||||
self.stylist.device_mut().reset();
|
||||
self.stylesheets.force_dirty();
|
||||
self.flush_stylesheets::<GeckoElement>(guard, None);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue