Bonus fix: Be more robust about clearing descendants bits under display:none subtrees.

MozReview-Commit-ID: 9KQVOpdEjwF
This commit is contained in:
Bobby Holley 2017-08-14 17:07:43 -07:00
parent 05a1b682bb
commit 8a3761972d
3 changed files with 30 additions and 17 deletions

View file

@ -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.