mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +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
|
@ -237,7 +237,7 @@ impl StylesheetInvalidationSet {
|
|||
|
||||
let mut any_children_invalid = false;
|
||||
|
||||
for child in element.as_node().traversal_children() {
|
||||
for child in element.traversal_children() {
|
||||
let child = match child.as_element() {
|
||||
Some(e) => e,
|
||||
None => continue,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue