mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Addressed comment
This commit is contained in:
parent
9efd214b1e
commit
e50eb2a4d6
2 changed files with 12 additions and 14 deletions
|
@ -102,6 +102,7 @@ impl BrowsingContext {
|
|||
history.drain((self.active_index.get() + 1)..);
|
||||
history.push(SessionHistoryEntry::new(document, document.url().clone(), document.Title()));
|
||||
self.active_index.set(self.active_index.get() + 1);
|
||||
assert_eq!(self.active_index.get(), history.len() - 1);
|
||||
}
|
||||
|
||||
pub fn active_document(&self) -> Root<Document> {
|
||||
|
@ -202,8 +203,7 @@ impl Iterator for ContextIterator {
|
|||
if let Some(ref context) = popped {
|
||||
self.stack.extend(context.children.borrow()
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(|ref c| Root::from_ref(&**c)));
|
||||
.map(|c| Root::from_ref(&**c)));
|
||||
}
|
||||
popped
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue