mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
For loops and misc changes
This commit is contained in:
parent
1bdaff0fad
commit
307f1074d3
42 changed files with 220 additions and 243 deletions
|
@ -69,7 +69,7 @@ impl HTMLDocument {
|
|||
|
||||
pub fn GetHead(&self) -> Option<AbstractNode<ScriptView>> {
|
||||
let mut headNode: Option<AbstractNode<ScriptView>> = None;
|
||||
let _ = for self.parent.root.traverse_preorder |child| {
|
||||
let _ = for child in self.parent.root.traverse_preorder() {
|
||||
if child.type_id() == ElementNodeTypeId(HTMLHeadElementTypeId) {
|
||||
headNode = Some(child);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue