mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Kill StoredRestyleHint.
Reviewed-By: bholley Bug: 1368236 MozReview-Commit-ID: 43Cf0rJyhzO
This commit is contained in:
parent
c6da6ba060
commit
f9c268922d
4 changed files with 47 additions and 108 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue