mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
#24468 add a update_entry method to Performance
This commit is contained in:
committed by
Josh Matthews
parent
91287216f5
commit
baf2b6e4ab
@@ -371,6 +371,12 @@ impl Performance {
|
||||
.push_back(DomRoot::from_ref(entry));
|
||||
false
|
||||
}
|
||||
|
||||
pub fn update_entry(&self, index: usize, entry: &PerformanceEntry) {
|
||||
if let Some(e) = self.buffer.borrow_mut().entries.get_mut(index) {
|
||||
*e = DomRoot::from_ref(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PerformanceMethods for Performance {
|
||||
|
||||
Reference in New Issue
Block a user