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

@ -368,7 +368,7 @@ impl RestyleHint {
/// Returns whether this `RestyleHint` represents at least as much restyle
/// work as the specified one.
#[inline]
pub fn contains(&mut self, other: &Self) -> bool {
pub fn contains(&self, other: &Self) -> bool {
self.match_under_self.contains(other.match_under_self) &&
(self.match_later_siblings & other.match_later_siblings) == other.match_later_siblings &&
self.replacements.contains(other.replacements)