style: Kill StoredRestyleHint.

Reviewed-By: bholley
Bug: 1368236
MozReview-Commit-ID: 43Cf0rJyhzO
This commit is contained in:
Emilio Cobos Álvarez 2017-06-13 12:45:04 +02:00
parent c6da6ba060
commit f9c268922d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 47 additions and 108 deletions

View file

@ -8,9 +8,9 @@
#![deny(unsafe_code)]
use Atom;
use data::StoredRestyleHint;
use dom::{TElement, TNode};
use fnv::FnvHashSet;
use invalidation::element::restyle_hints::RestyleHint;
use selector_parser::SelectorImpl;
use selectors::attr::CaseSensitivity;
use selectors::parser::{Component, Selector};
@ -134,7 +134,7 @@ impl StylesheetInvalidationSet {
if self.fully_invalid {
debug!("process_invalidations: fully_invalid({:?})",
element);
data.ensure_restyle().hint.insert(StoredRestyleHint::subtree());
data.ensure_restyle().hint.insert(RestyleHint::restyle_subtree());
return true;
}
}
@ -177,7 +177,7 @@ impl StylesheetInvalidationSet {
if scope.matches(element) {
debug!("process_invalidations_in_subtree: {:?} matched {:?}",
element, scope);
data.ensure_restyle().hint.insert(StoredRestyleHint::subtree());
data.ensure_restyle().hint.insert(RestyleHint::restyle_subtree());
return true;
}
}