| 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 fec9e73e24613e85511cf57c333d15fee770a13b..ca2a90e19217082b68f6e8b8d71b404e40560d79 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -3071,7 +3071,7 @@ void Document::didLoadAllScriptBlockingResources()
|
|
|
| void Document::executeScriptsWaitingForResources()
|
| {
|
| - if (!isRenderingReady())
|
| + if (!isScriptExecutionReady())
|
| return;
|
| if (ScriptableDocumentParser* parser = scriptableDocumentParser())
|
| parser->executeScriptsWaitingForResources();
|
| @@ -5677,6 +5677,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;
|
|
|