| Index: third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp b/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
|
| index 19c489f3f78b68295127f99d6f677e4eb82b546c..5c7270eea620b72bafa9f372fa98245d4851ce4d 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp
|
| @@ -46,11 +46,14 @@ void DocumentParserTiming::markParserDetached()
|
| m_parserDetached = true;
|
| }
|
|
|
| -void DocumentParserTiming::recordParserBlockedOnScriptLoadDuration(double duration)
|
| +void DocumentParserTiming::recordParserBlockedOnScriptLoadDuration(
|
| + double duration, bool scriptInsertedViaDocumentWrite)
|
| {
|
| if (m_parserDetached || m_parserStart == 0.0 || m_parserStop > 0.0)
|
| return;
|
| m_parserBlockedOnScriptLoadDuration += duration;
|
| + if (scriptInsertedViaDocumentWrite)
|
| + m_parserBlockedOnScriptLoadDueToDocumentWriteDuration += duration;
|
| notifyDocumentParserTimingChanged();
|
| }
|
|
|
|
|