mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Update smallvec to 1.0.
Differential Revision: https://phabricator.services.mozilla.com/D56044
This commit is contained in:
parent
789ddd9dc1
commit
ad61cae6b0
12 changed files with 21 additions and 21 deletions
|
@ -216,7 +216,7 @@ impl<E: TElement> StyleBloom<E> {
|
|||
self.filter.clear();
|
||||
self.pushed_hashes.clear();
|
||||
} else {
|
||||
for hash in self.pushed_hashes.drain() {
|
||||
for hash in self.pushed_hashes.drain(..) {
|
||||
self.filter.remove_hash(hash);
|
||||
}
|
||||
debug_assert!(self.filter.is_zeroed());
|
||||
|
@ -233,7 +233,7 @@ impl<E: TElement> StyleBloom<E> {
|
|||
element = parent;
|
||||
}
|
||||
|
||||
for parent in parents_to_insert.drain().rev() {
|
||||
for parent in parents_to_insert.drain(..).rev() {
|
||||
self.push(parent);
|
||||
}
|
||||
}
|
||||
|
@ -374,7 +374,7 @@ impl<E: TElement> StyleBloom<E> {
|
|||
|
||||
// Now the parents match, so insert the stack of elements we have been
|
||||
// collecting so far.
|
||||
for parent in parents_to_insert.drain().rev() {
|
||||
for parent in parents_to_insert.drain(..).rev() {
|
||||
self.push(parent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue