mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
stylo: Cleanup a bit of the Stylist clear setup.
This moves us to clear on rebuild, which allows us to remove yet another place where we track stylist dirtiness. Bug: 1390255 Reviewed-by: heycam MozReview-Commit-ID: nihQbUAbh8 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
b040d79333
commit
4c80cccbd2
9 changed files with 65 additions and 195 deletions
|
@ -195,8 +195,8 @@ impl InvalidationMap {
|
|||
pub fn clear(&mut self) {
|
||||
self.class_to_selector.clear();
|
||||
self.id_to_selector.clear();
|
||||
self.state_affecting_selectors = SelectorMap::new();
|
||||
self.other_attribute_affecting_selectors = SelectorMap::new();
|
||||
self.state_affecting_selectors.clear();
|
||||
self.other_attribute_affecting_selectors.clear();
|
||||
self.has_id_attribute_selectors = false;
|
||||
self.has_class_attribute_selectors = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue