Bug 1357583: Add a bunch of logging, shortcuts, and look also at the rightmost selector while invalidating sheets. r=heycam

MozReview-Commit-ID: 2XGcOCTa7MV
This commit is contained in:
Emilio Cobos Álvarez 2017-05-26 17:47:32 +02:00
parent 39e836966e
commit f569274cca
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 76 additions and 17 deletions

View file

@ -388,6 +388,11 @@ impl StoredRestyleHint {
self.0.insert(other.0)
}
/// Contains whether the whole subtree is invalid.
pub fn contains_subtree(&self) -> bool {
self.0.contains(&RestyleHint::subtree())
}
/// Insert another restyle hint, effectively resulting in the union of both.
pub fn insert_from(&mut self, other: &Self) {
self.0.insert_from(&other.0)