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

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: rebase Created 4 years, 9 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..b7cd6681bf9c1594581be320e6bba4b01ce7c7f0 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -52,6 +52,7 @@
#include "platform/TraceEvent.h"
#include "platform/heap/Handle.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebExperimentData.h"
#include "public/platform/WebFrameScheduler.h"
#include "public/platform/WebScheduler.h"
#include "public/platform/WebThread.h"
@@ -1162,6 +1163,9 @@ void HTMLDocumentParser::evaluateAndPreloadScriptForDocumentWrite(const String&
{
if (!m_evaluator->shouldEvaluate(source))
return;
+ document()->loader()->didUseExperiment(WebExperimentData::DocumentWriteEvaluatorExperiment);
+ if (!RuntimeEnabledFeatures::documentWriteEvaluatorEnabled())
+ return;
TRACE_EVENT0("blink", "HTMLDocumentParser::evaluateAndPreloadScriptForDocumentWrite");
double initializeStartTime = monotonicallyIncreasingTimeMS();

Powered by Google App Engine
This is Rietveld 408576698