aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceentry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/performanceentry.rs')
-rw-r--r--components/script/dom/performanceentry.rs22
1 files changed, 13 insertions, 9 deletions
diff --git a/components/script/dom/performanceentry.rs b/components/script/dom/performanceentry.rs
index 964a808143b..71ab83fb42b 100644
--- a/components/script/dom/performanceentry.rs
+++ b/components/script/dom/performanceentry.rs
@@ -21,10 +21,12 @@ pub struct PerformanceEntry {
}
impl PerformanceEntry {
- pub fn new_inherited(name: DOMString,
- entry_type: DOMString,
- start_time: f64,
- duration: f64) -> PerformanceEntry {
+ pub fn new_inherited(
+ name: DOMString,
+ entry_type: DOMString,
+ start_time: f64,
+ duration: f64,
+ ) -> PerformanceEntry {
PerformanceEntry {
reflector_: Reflector::new(),
name,
@@ -35,11 +37,13 @@ impl PerformanceEntry {
}
#[allow(unrooted_must_root)]
- pub fn new(global: &GlobalScope,
- name: DOMString,
- entry_type: DOMString,
- start_time: f64,
- duration: f64) -> DomRoot<PerformanceEntry> {
+ pub fn new(
+ global: &GlobalScope,
+ name: DOMString,
+ entry_type: DOMString,
+ start_time: f64,
+ duration: f64,
+ ) -> DomRoot<PerformanceEntry> {
let entry = PerformanceEntry::new_inherited(name, entry_type, start_time, duration);
reflect_dom_object(Box::new(entry), global, PerformanceEntryBinding::Wrap)
}