mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Update rust-selectors
This commits updates rust-selectors to use the generic parser, and as such it moves the element state into the style crate.
This commit is contained in:
committed by
Anthony Ramine
parent
9baa59a6b4
commit
a1c830f1c1
@@ -63,6 +63,7 @@ use std::default::Default;
|
||||
use std::iter::{self, FilterMap, Peekable};
|
||||
use std::mem;
|
||||
use string_cache::{Atom, Namespace, QualName};
|
||||
use style::selector_impl::ServoSelectorImpl;
|
||||
use util::str::DOMString;
|
||||
use util::thread_state;
|
||||
use uuid::Uuid;
|
||||
@@ -291,12 +292,12 @@ impl Node {
|
||||
}
|
||||
|
||||
pub struct QuerySelectorIterator {
|
||||
selectors: Vec<Selector>,
|
||||
selectors: Vec<Selector<ServoSelectorImpl>>,
|
||||
iterator: TreeIterator,
|
||||
}
|
||||
|
||||
impl<'a> QuerySelectorIterator {
|
||||
fn new(iter: TreeIterator, selectors: Vec<Selector>)
|
||||
fn new(iter: TreeIterator, selectors: Vec<Selector<ServoSelectorImpl>>)
|
||||
-> QuerySelectorIterator {
|
||||
QuerySelectorIterator {
|
||||
selectors: selectors,
|
||||
|
||||
Reference in New Issue
Block a user