aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/dom.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/dom.rs')
-rw-r--r--components/style/dom.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/style/dom.rs b/components/style/dom.rs
index 7df9c850fd4..8673a50e203 100644
--- a/components/style/dom.rs
+++ b/components/style/dom.rs
@@ -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.