mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Bonus fix: Be more robust about clearing descendants bits under display:none subtrees.
MozReview-Commit-ID: 9KQVOpdEjwF
This commit is contained in:
parent
05a1b682bb
commit
8a3761972d
3 changed files with 30 additions and 17 deletions
|
@ -513,6 +513,13 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
unsafe fn unset_animation_only_dirty_descendants(&self) {
|
||||
}
|
||||
|
||||
/// Clear all bits related to dirty descendant.
|
||||
///
|
||||
/// In Gecko, this corresponds to the regular dirty descendants bit, the
|
||||
/// animation-only dirty descendants bit, and the lazy frame construction
|
||||
/// descendants bit.
|
||||
unsafe fn clear_descendants_bits(&self) { self.unset_dirty_descendants(); }
|
||||
|
||||
/// Returns true if this element is a visited link.
|
||||
///
|
||||
/// Servo doesn't support visited styles yet.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue