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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change null enum name Created 4 years, 8 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
Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
index 9845ac6df7937bfa4a11c7364e13f545130ec30b..792fbf7e9dd8fe6ff1fb2bcb1ea3f6a51a4c9b9a 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -53,6 +53,7 @@
#include "platform/heap/Handle.h"
#include "public/platform/Platform.h"
#include "public/platform/WebFrameScheduler.h"
+#include "public/platform/WebLoadingData.h"
#include "public/platform/WebScheduler.h"
#include "public/platform/WebThread.h"
#include "wtf/RefCounted.h"
@@ -1162,6 +1163,9 @@ void HTMLDocumentParser::evaluateAndPreloadScriptForDocumentWrite(const String&
{
if (!m_evaluator->shouldEvaluate(source))
return;
+ document()->loader()->didObserveLoadingBehavior(WebLoadingData::DocumentWriteEvaluatorExperiment);
+ if (!RuntimeEnabledFeatures::documentWriteEvaluatorEnabled())
+ return;
TRACE_EVENT0("blink", "HTMLDocumentParser::evaluateAndPreloadScriptForDocumentWrite");
double initializeStartTime = monotonicallyIncreasingTimeMS();

Powered by Google App Engine
This is Rietveld 408576698