Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1434)

Unified Diff: Source/core/page/PerformanceResourceTiming.cpp

Issue 14632007: Add loadedNonEmptyDocument flag in iframe for Resource Timing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Satisfy lighttpd on windows, and handle overlap timestamps Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/cache/CachedResourceLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PerformanceResourceTiming.cpp
diff --git a/Source/core/page/PerformanceResourceTiming.cpp b/Source/core/page/PerformanceResourceTiming.cpp
index ccbfe530958e8f600ba49cab64da09f085120a75..96cef9f9f3b965d66c5954bc4d3ac5f5c56f434f 100644
--- a/Source/core/page/PerformanceResourceTiming.cpp
+++ b/Source/core/page/PerformanceResourceTiming.cpp
@@ -209,8 +209,7 @@ double PerformanceResourceTiming::responseEnd() const
double PerformanceResourceTiming::resourceTimeToDocumentMilliseconds(int deltaMilliseconds) const
{
- if (!deltaMilliseconds)
- return 0.0;
+ ASSERT(deltaMilliseconds >= 0);
return monotonicTimeToDocumentMilliseconds(m_requestingDocument.get(), m_timing->requestTime) + deltaMilliseconds;
}
« no previous file with comments | « Source/core/loader/cache/CachedResourceLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698