summaryrefslogtreecommitdiffstats
path: root/dom/base/nsDOMNavigationTiming.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsDOMNavigationTiming.cpp')
-rw-r--r--dom/base/nsDOMNavigationTiming.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/dom/base/nsDOMNavigationTiming.cpp b/dom/base/nsDOMNavigationTiming.cpp
index 31b2932fb..9b628e55a 100644
--- a/dom/base/nsDOMNavigationTiming.cpp
+++ b/dom/base/nsDOMNavigationTiming.cpp
@@ -16,6 +16,8 @@
#include "mozilla/dom/PerformanceNavigation.h"
#include "mozilla/TimeStamp.h"
+using namespace mozilla;
+
nsDOMNavigationTiming::nsDOMNavigationTiming()
{
Clear();
@@ -52,25 +54,26 @@ nsDOMNavigationTiming::Clear()
}
DOMTimeMilliSec
-nsDOMNavigationTiming::TimeStampToDOM(mozilla::TimeStamp aStamp) const
+nsDOMNavigationTiming::TimeStampToDOM(TimeStamp aStamp) const
{
if (aStamp.IsNull()) {
return 0;
}
- mozilla::TimeDuration duration = aStamp - mNavigationStartTimeStamp;
+
+ TimeDuration duration = aStamp - mNavigationStartTimeStamp;
return GetNavigationStart() + static_cast<int64_t>(duration.ToMilliseconds());
}
DOMTimeMilliSec nsDOMNavigationTiming::DurationFromStart()
{
- return TimeStampToDOM(mozilla::TimeStamp::Now());
+ return TimeStampToDOM(TimeStamp::Now());
}
void
nsDOMNavigationTiming::NotifyNavigationStart(DocShellState aDocShellState)
{
mNavigationStartHighRes = (double)PR_Now() / PR_USEC_PER_MSEC;
- mNavigationStartTimeStamp = mozilla::TimeStamp::Now();
+ mNavigationStartTimeStamp = TimeStamp::Now();
mDocShellHasBeenActiveSinceNavigationStart = (aDocShellState == DocShellState::eActive);
}
@@ -127,7 +130,7 @@ nsDOMNavigationTiming::NotifyLoadEventEnd()
}
void
-nsDOMNavigationTiming::SetDOMLoadingTimeStamp(nsIURI* aURI, mozilla::TimeStamp aValue)
+nsDOMNavigationTiming::SetDOMLoadingTimeStamp(nsIURI* aURI, TimeStamp aValue)
{
if (!mDOMLoadingSet) {
mLoadedURI = aURI;