aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceentry.rs
diff options
context:
space:
mode:
authorddh <dianehosfelt@gmail.com>2018-03-12 22:24:41 +0000
committerddh <dianehosfelt@gmail.com>2018-11-20 16:21:32 +0000
commit26007fddd3f8aabfe026f06de64207d31edf5318 (patch)
treef1a7ef3496871d67907734dc10c2cc9df31f27cf /components/script/dom/performanceentry.rs
parent3fe83f1d06a50969b2fa731a050b35abdc5520d7 (diff)
downloadservo-26007fddd3f8aabfe026f06de64207d31edf5318.tar.gz
servo-26007fddd3f8aabfe026f06de64207d31edf5318.zip
refactored performance timing to align with updated spec
refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
Diffstat (limited to 'components/script/dom/performanceentry.rs')
-rw-r--r--components/script/dom/performanceentry.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/performanceentry.rs b/components/script/dom/performanceentry.rs
index 7317532f226..334d8b6de85 100644
--- a/components/script/dom/performanceentry.rs
+++ b/components/script/dom/performanceentry.rs
@@ -59,6 +59,10 @@ impl PerformanceEntry {
pub fn start_time(&self) -> f64 {
self.start_time
}
+
+ pub fn duration(&self) -> f64 {
+ self.duration
+ }
}
impl PerformanceEntryMethods for PerformanceEntry {