Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix performance interface timing member #25205

Merged

#24468 add a update_entry method to Performance

  • Loading branch information
shnmorimoto authored and jdm committed Dec 13, 2019
commit baf2b6e4abff06e224dbad5658762005e4f25f96
@@ -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 {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.