Bug 1377251 - Follow-up: replace timeToNonBlankPaint's duration with timestamp. r=qDot
authorPerry Jiang <jiangperry@gmail.com>
Wed, 12 Jul 2017 10:18:14 -0700
changeset 421875 7a7db98b3785ace1e19637b6595a79864251bc7d
parent 421874 91a2c24475fa8161f9dc98088dfda9a96e69bf96
child 421876 a9721c2c43684b9197d2668756c55e4f14d7e17d
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqDot
bugs1377251
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1377251 - Follow-up: replace timeToNonBlankPaint's duration with timestamp. r=qDot MozReview-Commit-ID: 6IOHKPeV81r
dom/base/nsDOMNavigationTiming.h
--- a/dom/base/nsDOMNavigationTiming.h
+++ b/dom/base/nsDOMNavigationTiming.h
@@ -79,21 +79,17 @@ public:
     return mLoadEventStart;
   }
   DOMTimeMilliSec GetLoadEventEnd() const
   {
     return mLoadEventEnd;
   }
   DOMTimeMilliSec GetTimeToNonBlankPaint() const
   {
-    if (mNonBlankPaintTimeStamp.IsNull()) {
-      return 0;
-    }
-
-    return TimeStampToDOMHighRes(mNonBlankPaintTimeStamp);
+    return TimeStampToDOM(mNonBlankPaintTimeStamp);
   }
 
   enum class DocShellState : uint8_t {
     eActive,
     eInactive
   };
 
   void NotifyNavigationStart(DocShellState aDocShellState);