mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue