mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
style: Refactor children handling.
Moving traversal_children away from TNode I can make TNode trivial enough, in order to share a QuerySelector implementation between Servo and Gecko.
This commit is contained in:
parent
7c2265360f
commit
a11d268468
9 changed files with 149 additions and 158 deletions
|
@ -3621,7 +3621,7 @@ pub extern "C" fn Servo_AssertTreeIsClean(root: RawGeckoElementBorrowed) {
|
|||
debug_assert!(!el.has_dirty_descendants() && !el.has_animation_only_dirty_descendants(),
|
||||
"{:?} has still dirty bit {:?} or animation-only dirty bit {:?}",
|
||||
el, el.has_dirty_descendants(), el.has_animation_only_dirty_descendants());
|
||||
for child in el.as_node().traversal_children() {
|
||||
for child in el.traversal_children() {
|
||||
if let Some(child) = child.as_element() {
|
||||
assert_subtree_is_clean(child);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue