mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Clear host rules from clear_cascade_data.
While at it, also measure them for about:memory. Differential Revision: https://phabricator.services.mozilla.com/D8972
This commit is contained in:
parent
5770247af0
commit
4e356b4bb9
1 changed files with 6 additions and 0 deletions
|
@ -2415,6 +2415,9 @@ impl CascadeData {
|
|||
if let Some(ref mut slotted_rules) = self.slotted_rules {
|
||||
slotted_rules.clear();
|
||||
}
|
||||
if let Some(ref mut host_rules) = self.host_rules {
|
||||
host_rules.clear();
|
||||
}
|
||||
self.animations.clear();
|
||||
self.extra_data.clear();
|
||||
self.rules_source_order = 0;
|
||||
|
@ -2440,6 +2443,9 @@ impl CascadeData {
|
|||
if let Some(ref slotted_rules) = self.slotted_rules {
|
||||
slotted_rules.add_size_of(ops, sizes);
|
||||
}
|
||||
if let Some(ref host_rules) = self.host_rules {
|
||||
host_rules.add_size_of(ops, sizes);
|
||||
}
|
||||
sizes.mInvalidationMap += self.invalidation_map.size_of(ops);
|
||||
sizes.mRevalidationSelectors += self.selectors_for_cache_revalidation.size_of(ops);
|
||||
sizes.mOther += self.animations.size_of(ops);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue