aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceentry.rs
diff options
context:
space:
mode:
authorchansuke <chansuke@georepublic.de>2018-09-18 23:24:15 +0900
committerJosh Matthews <josh@joshmatthews.net>2018-09-19 17:40:47 -0400
commitc37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch)
tree1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/dom/performanceentry.rs
parent2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff)
downloadservo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz
servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip
Format script component
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)
}