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); |