Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index a54bd6b84c3e8ec8ff06867d96bc01891e02efbb..1f5535ca58e0fe7a6cb0b531709aa07973e8ddad 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -3074,7 +3074,7 @@ void Document::didLoadAllScriptBlockingResources() |
void Document::executeScriptsWaitingForResources() |
{ |
- if (!isRenderingReady()) |
+ if (!isScriptExecutionReady()) |
return; |
if (ScriptableDocumentParser* parser = scriptableDocumentParser()) |
parser->executeScriptsWaitingForResources(); |
@@ -5656,6 +5656,13 @@ bool Document::haveStylesheetsLoaded() const |
return m_styleEngine->haveStylesheetsLoaded(); |
} |
+bool Document::haveRenderBlockingStylesheetsLoaded() const |
+{ |
+ if (RuntimeEnabledFeatures::cssInBodyDoesNotBlockPaintEnabled()) |
+ return m_styleEngine->haveRenderBlockingStylesheetsLoaded(); |
+ return m_styleEngine->haveStylesheetsLoaded(); |
+} |
+ |
Locale& Document::getCachedLocale(const AtomicString& locale) |
{ |
AtomicString localeKey = locale; |