diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/document_parser_timing.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/dom/document_parser_timing.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/document_parser_timing.cc b/chromium/third_party/blink/renderer/core/dom/document_parser_timing.cc index 044ea560e91..ef292f8c1c1 100644 --- a/chromium/third_party/blink/renderer/core/dom/document_parser_timing.cc +++ b/chromium/third_party/blink/renderer/core/dom/document_parser_timing.cc @@ -27,14 +27,14 @@ void DocumentParserTiming::MarkParserStart() { if (parser_detached_ || !parser_start_.is_null()) return; DCHECK(parser_stop_.is_null()); - parser_start_ = CurrentTimeTicks(); + parser_start_ = base::TimeTicks::Now(); NotifyDocumentParserTimingChanged(); } void DocumentParserTiming::MarkParserStop() { if (parser_detached_ || parser_start_.is_null() || !parser_stop_.is_null()) return; - parser_stop_ = CurrentTimeTicks(); + parser_stop_ = base::TimeTicks::Now(); NotifyDocumentParserTimingChanged(); } @@ -44,7 +44,7 @@ void DocumentParserTiming::MarkParserDetached() { } void DocumentParserTiming::RecordParserBlockedOnScriptLoadDuration( - TimeDelta duration, + base::TimeDelta duration, bool script_inserted_via_document_write) { if (parser_detached_ || parser_start_.is_null() || !parser_stop_.is_null()) return; @@ -55,7 +55,7 @@ void DocumentParserTiming::RecordParserBlockedOnScriptLoadDuration( } void DocumentParserTiming::RecordParserBlockedOnScriptExecutionDuration( - TimeDelta duration, + base::TimeDelta duration, bool script_inserted_via_document_write) { if (parser_detached_ || parser_start_.is_null() || !parser_stop_.is_null()) return; |