mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
#24468 add a update_entry method to Performance
This commit is contained in:
parent
91287216f5
commit
baf2b6e4ab
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue