diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 14:15:18 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 14:15:18 +0200 |
commit | 306db80410e802b0fe9a3b5273d4cf29586a1b17 (patch) | |
tree | 5e2370df03be5b04ea225afa1e720d46840dd9bf /dom/performance/PerformanceTiming.h | |
parent | 92d3042138babf4f82d254f6cb6e11831dcca506 (diff) | |
download | uxp-306db80410e802b0fe9a3b5273d4cf29586a1b17.tar.gz |
moebius#161: The Performance Resource Timing (make timestamps be relative to startTime)
https://github.com/MoonchildProductions/moebius/pull/161
Diffstat (limited to 'dom/performance/PerformanceTiming.h')
-rwxr-xr-x | dom/performance/PerformanceTiming.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/performance/PerformanceTiming.h b/dom/performance/PerformanceTiming.h index 584ae08161..435e1bca1a 100755 --- a/dom/performance/PerformanceTiming.h +++ b/dom/performance/PerformanceTiming.h @@ -242,6 +242,14 @@ public: return TimerClamping::ReduceMsTimeValue(GetDOMTiming()->GetLoadEventEnd()); } + DOMTimeMilliSec TimeToNonBlankPaint() const + { + if (!nsContentUtils::IsPerformanceTimingEnabled()) { + return 0; + } + return TimerClamping::ReduceMsTimeValue(GetDOMTiming()->GetTimeToNonBlankPaint()); + } + private: ~PerformanceTiming(); |