Backed out changeset 002714e2ccba (bug 1222866) for m2 test failures
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 20 Nov 2015 08:28:09 +0100
changeset 273453 96d02c2defe1ddc52821ee13196fd24fe975c429
parent 273452 9bdf5bae3a63659e14c17ee7384d86a1c9bfcbd1
child 273454 ab8b0e58aa828f1c1d8f6d016fd220763c6eb8dd
push id68288
push usercbook@mozilla.com
push dateFri, 20 Nov 2015 07:28:24 +0000
treeherdermozilla-inbound@96d02c2defe1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1222866
milestone45.0a1
backs out002714e2ccbac1d3bd2a73f86a3fc2eef277d1a0
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
Backed out changeset 002714e2ccba (bug 1222866) for m2 test failures
dom/media/TimeUnits.h
--- a/dom/media/TimeUnits.h
+++ b/dom/media/TimeUnits.h
@@ -88,19 +88,17 @@ struct Microseconds {
 class TimeUnit final {
 public:
   static TimeUnit FromSeconds(double aValue) {
     MOZ_ASSERT(!IsNaN(aValue));
 
     if (mozilla::IsInfinite<double>(aValue)) {
       return FromInfinity();
     }
-    // Due to internal double representation, this
-    // operation is not commutative, do not attempt to simplify.
-    double val = (aValue + .0000005) * USECS_PER_S;
+    double val = aValue * USECS_PER_S;
     if (val >= double(INT64_MAX)) {
       return FromMicroseconds(INT64_MAX);
     } else if (val <= double(INT64_MIN)) {
       return FromMicroseconds(INT64_MIN);
     } else {
       return FromMicroseconds(int64_t(val));
     }
   }