Auto merge of #10538 - izgzhen:performance_timing, r=Ms2ger

Improve PerformanceTiming Interface

Solving https://github.com/servo/servo/issues/10428

- Fix timing precision in old `update_with_current_time`
- Correct time unit in `navigation_start`
- Add `LoadEventStart` and `LoadEventEnd` timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10538)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-13 01:45:10 +05:30
commit 421dcc92f0
5 changed files with 43 additions and 20 deletions

View file

@ -27,6 +27,6 @@ interface PerformanceTiming {
readonly attribute unsigned long long domContentLoadedEventStart;
readonly attribute unsigned long long domContentLoadedEventEnd;
readonly attribute unsigned long long domComplete;
/* readonly attribute unsigned long long loadEventStart;
readonly attribute unsigned long long loadEventEnd; */
readonly attribute unsigned long long loadEventStart;
readonly attribute unsigned long long loadEventEnd;
};