Introduce is_native_anonymous and cull style traversal of doomed native anonymous content.

MozReview-Commit-ID: LqwmavJnqW
This commit is contained in:
Bobby Holley 2017-02-23 14:55:26 -08:00
parent e2671459cb
commit 7e3671fc4c
3 changed files with 24 additions and 0 deletions

View file

@ -386,6 +386,10 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
unsafe fn unset_animation_only_dirty_descendants(&self) {
}
/// Returns true if this element is native anonymous (only Gecko has native
/// anonymous content).
fn is_native_anonymous(&self) -> bool { false }
/// Atomically stores the number of children of this node that we will
/// need to process during bottom-up traversal.
fn store_children_to_process(&self, n: isize);