mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Observer receives pending marks before removed
This commit is contained in:
parent
8868d2223d
commit
354ed65c21
2 changed files with 9 additions and 13 deletions
|
@ -182,6 +182,15 @@ impl Performance {
|
|||
Some(p) => p,
|
||||
None => return,
|
||||
};
|
||||
|
||||
if self.pending_notification_observers_task.get() {
|
||||
if let Some(o) = observers.iter().nth(index) {
|
||||
DOMPerformanceObserver::new(&self.global(),
|
||||
o.observer.callback(),
|
||||
o.observer.entries()).notify();
|
||||
}
|
||||
}
|
||||
|
||||
observers.remove(index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue