mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Further changes required by Servo
This commit is contained in:
parent
3076481c52
commit
9e36918bf0
1 changed files with 4 additions and 5 deletions
|
@ -473,12 +473,11 @@ impl<'a> Iterator for QuerySelectorIterator {
|
|||
.filter_map(|node| {
|
||||
// TODO(cgaebel): Is it worth it to build a bloom filter here
|
||||
// (instead of passing `None`)? Probably.
|
||||
//
|
||||
// FIXME(bholley): Consider an nth-index cache here.
|
||||
let mut nth_index_cache = Default::default();
|
||||
let mut ctx = MatchingContext::new(
|
||||
MatchingMode::Normal,
|
||||
None,
|
||||
None,
|
||||
&mut nth_index_cache,
|
||||
node.owner_doc().quirks_mode(),
|
||||
NeedsSelectorFlags::No,
|
||||
);
|
||||
|
@ -967,11 +966,11 @@ impl Node {
|
|||
Err(_) => Err(Error::Syntax),
|
||||
// Step 3.
|
||||
Ok(selectors) => {
|
||||
// FIXME(bholley): Consider an nth-index cache here.
|
||||
let mut nth_index_cache = Default::default();
|
||||
let mut ctx = MatchingContext::new(
|
||||
MatchingMode::Normal,
|
||||
None,
|
||||
None,
|
||||
&mut nth_index_cache,
|
||||
doc.quirks_mode(),
|
||||
NeedsSelectorFlags::No,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue