mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
This commit is contained in:
parent
ff8cbff810
commit
95fc29fa0d
255 changed files with 3550 additions and 3362 deletions
|
@ -96,7 +96,7 @@ impl HTMLCollection {
|
|||
}
|
||||
let filter = TagNameFilter {
|
||||
tag: Atom::from_slice(tag.as_slice()),
|
||||
ascii_lower_tag: Atom::from_slice(tag.as_slice().to_ascii_lower().as_slice()),
|
||||
ascii_lower_tag: Atom::from_slice(tag.as_slice().to_ascii_lowercase().as_slice()),
|
||||
};
|
||||
HTMLCollection::create(window, root, box filter)
|
||||
}
|
||||
|
@ -165,12 +165,13 @@ impl HTMLCollection {
|
|||
}
|
||||
|
||||
fn traverse<'a>(root: JSRef<'a, Node>)
|
||||
-> FilterMap<'a, JSRef<'a, Node>,
|
||||
-> FilterMap<JSRef<'a, Node>,
|
||||
JSRef<'a, Element>,
|
||||
Skip<TreeIterator<'a>>> {
|
||||
Skip<TreeIterator<'a>>,
|
||||
fn(JSRef<Node>) -> Option<JSRef<Element>>> {
|
||||
root.traverse_preorder()
|
||||
.skip(1)
|
||||
.filter_map(ElementCast::to_ref)
|
||||
.filter_map(ElementCast::to_ref as fn(JSRef<Node>) -> Option<JSRef<Element>>)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue