Index: third_party/WebKit/Source/core/timing/PerformanceTiming.cpp |
diff --git a/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp b/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp |
index ce7df6baaba9384ead75a57c31b5d2dfb1fb6026..52f83339f385ea7110e07b2e0ea78856f1820cb8 100644 |
--- a/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp |
+++ b/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp |
@@ -39,6 +39,7 @@ |
#include "core/loader/DocumentLoadTiming.h" |
#include "core/loader/DocumentLoader.h" |
#include "core/loader/FrameLoader.h" |
+#include "core/timing/PerformanceBase.h" |
#include "platform/network/ResourceLoadTiming.h" |
#include "platform/network/ResourceResponse.h" |
@@ -47,7 +48,8 @@ namespace blink { |
static unsigned long long toIntegerMilliseconds(double seconds) |
{ |
ASSERT(seconds >= 0); |
- return static_cast<unsigned long long>(seconds * 1000.0); |
+ double clampedSeconds = PerformanceBase::clampTimeResolution(seconds); |
+ return static_cast<unsigned long long>(clampedSeconds * 1000.0); |
} |
static double toDoubleSeconds(unsigned long long integerMilliseconds) |