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

Unified Diff: Source/core/html/imports/HTMLImportStateResolver.cpp

Issue 251813006: HTML Imports: Let @async import not block its sibling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months 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 | « LayoutTests/http/tests/htmlimports/resources/not-slow.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportStateResolver.cpp
diff --git a/Source/core/html/imports/HTMLImportStateResolver.cpp b/Source/core/html/imports/HTMLImportStateResolver.cpp
index 593b174c86e9841405dd37e7234f9a51ca3fc0fd..bd083ad51017512e6f430a5ad1c36a2eb6e6165f 100644
--- a/Source/core/html/imports/HTMLImportStateResolver.cpp
+++ b/Source/core/html/imports/HTMLImportStateResolver.cpp
@@ -37,6 +37,8 @@ namespace WebCore {
inline bool HTMLImportStateResolver::isBlockingFollowers(HTMLImport* import)
{
+ if (!import->isSync())
+ return false;
if (!import->loader())
return true;
return !import->state().isReady();
@@ -50,7 +52,7 @@ inline bool HTMLImportStateResolver::shouldBlockScriptExecution() const
}
for (HTMLImport* child = m_import->firstChild(); child; child = child->next()) {
- if (child->isSync() && isBlockingFollowers(child))
+ if (isBlockingFollowers(child))
return true;
}
« no previous file with comments | « LayoutTests/http/tests/htmlimports/resources/not-slow.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698