mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
39e836966e
commit
f569274cca
4 changed files with 76 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue