summaryrefslogtreecommitdiffstats
path: root/dom/base
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:39:51 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:39:51 +0200
commit92d3042138babf4f82d254f6cb6e11831dcca506 (patch)
treee9329d1127524fbf4d2d17e0f2bde6407a87045c /dom/base
parenteeaf0a73acf661662b9baf9929c9688c60d0bf38 (diff)
downloadUXP-92d3042138babf4f82d254f6cb6e11831dcca506.tar
UXP-92d3042138babf4f82d254f6cb6e11831dcca506.tar.gz
UXP-92d3042138babf4f82d254f6cb6e11831dcca506.tar.lz
UXP-92d3042138babf4f82d254f6cb6e11831dcca506.tar.xz
UXP-92d3042138babf4f82d254f6cb6e11831dcca506.zip
Bug 1321261 - partially - "using namespace mozilla"
https://hg.mozilla.org/mozilla-central/diff/9ad9c6b4c8d6/dom/base/nsDOMNavigationTiming.cpp
Diffstat (limited to 'dom/base')
-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;