mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Miscellaneous build / tidy fixes.
This commit is contained in:
parent
5158f65810
commit
31e8e418ea
66 changed files with 566 additions and 294 deletions
|
@ -908,12 +908,7 @@ where
|
|||
let index = if let Some(i) = cache.as_mut().and_then(|c| c.lookup(element.opaque())) {
|
||||
i
|
||||
} else {
|
||||
let i = nth_child_index(
|
||||
element,
|
||||
is_of_type,
|
||||
is_from_end,
|
||||
cache.as_deref_mut(),
|
||||
);
|
||||
let i = nth_child_index(element, is_of_type, is_from_end, cache.as_deref_mut());
|
||||
if let Some(c) = cache.as_mut() {
|
||||
c.insert(element.opaque(), i)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue