Index: Source/core/html/parser/HTMLDocumentParser.cpp |
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp |
index d21ce40b6e99e1f6cbd4af14f445fbf338f8c716..072c683aae3bbb317611cebcec243f4197eb9b75 100644 |
--- a/Source/core/html/parser/HTMLDocumentParser.cpp |
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp |
@@ -898,7 +898,7 @@ void HTMLDocumentParser::notifyFinished(CachedResource* cachedResource) |
resumeParsingAfterScriptExecution(); |
} |
-void HTMLDocumentParser::executeScriptsWaitingForStylesheets() |
+void HTMLDocumentParser::executeScriptsWaitingForResources() |
{ |
// Document only calls this when the Document owns the DocumentParser |
// so this will not be called in the DocumentFragment case. |
@@ -906,13 +906,13 @@ void HTMLDocumentParser::executeScriptsWaitingForStylesheets() |
// Ignore calls unless we have a script blocking the parser waiting on a |
// stylesheet load. Otherwise we are currently parsing and this |
// is a re-entrant call from encountering a </ style> tag. |
- if (!m_scriptRunner->hasScriptsWaitingForStylesheets()) |
+ if (!m_scriptRunner->hasScriptsWaitingForResources()) |
return; |
// pumpTokenizer can cause this parser to be detached from the Document, |
// but we need to ensure it isn't deleted yet. |
RefPtr<HTMLDocumentParser> protect(this); |
- m_scriptRunner->executeScriptsWaitingForStylesheets(); |
+ m_scriptRunner->executeScriptsWaitingForResources(); |
if (!isWaitingForScripts()) |
resumeParsingAfterScriptExecution(); |
} |