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

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

Issue 764963002: Document.write should always be processed synchronously regardless of bg parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
index 6dbc7c5ee26f18ed85820b741e1bb9ac910bf7cf..65297c94df0a6358b8806d44e9349f8bbbc9fee8 100644
--- a/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -259,15 +259,8 @@ bool HTMLDocumentParser::processingData() const
void HTMLDocumentParser::pumpTokenizerIfPossible()
{
- if (isStopped())
- return;
- if (isWaitingForScripts())
- return;
-
- // Once a resume is scheduled, HTMLParserScheduler controls when we next pump.
- if (isScheduledForResume()) {
+ if (isStopped() || isWaitingForScripts())
return;
- }
pumpTokenizer();
}
@@ -564,7 +557,6 @@ static PassRefPtr<MediaValues> createMediaValues(Document* document)
void HTMLDocumentParser::pumpTokenizer()
{
ASSERT(!isStopped());
- ASSERT(!isScheduledForResume());
#if !ENABLE(OILPAN)
// ASSERT that this object is both attached to the Document and protected.
ASSERT(refCount() >= 2);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698