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..f02c037aad9678e7a3087dc84c8df031ad310193 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_parserBlockedOnScriptLoadFromDocumentWriteDuration += duration; |
notifyDocumentParserTimingChanged(); |
} |