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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.h

Issue 2693423002: Do not re-initialize PendingScript in HTMLParserScriptRunner (Closed)
Patch Set: fix test Created 3 years, 10 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/HTMLParserScriptRunner.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.h b/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.h
index 2c9a3b94f0e5779e1e47c9720eef9fa27739ed2c..69060e6b0be56d321a616a9a1e7121b41a29d7be 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.h
@@ -107,13 +107,17 @@ class HTMLParserScriptRunner final
void requestParsingBlockingScript(Element*);
void requestDeferredScript(Element*);
- bool requestPendingScript(PendingScript*, Element*) const;
+ PendingScript* requestPendingScript(Element*) const;
// Processes the provided script element, but does not execute any
// parsing-blocking scripts that may remain after execution.
void processScriptElementInternal(Element*,
const TextPosition& scriptStartPosition);
+ const PendingScript* parserBlockingScript() const {
+ return m_parserBlockingScript;
+ }
+
bool isParserBlockingScriptReady();
void possiblyFetchBlockedDocWriteScript(PendingScript*);

Powered by Google App Engine
This is Rietveld 408576698