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

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

Issue 289993004: HTML Imports: Take care of cycles according to the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/core/html/imports/HTMLImportLoader.h ('k') | Source/core/html/imports/HTMLImportStateResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportLoader.cpp
diff --git a/Source/core/html/imports/HTMLImportLoader.cpp b/Source/core/html/imports/HTMLImportLoader.cpp
index 155e0964cb527b0886b126c9f7058c84ccf831c1..c24e0c48dc52df713e9996e46e8623d639a071bc 100644
--- a/Source/core/html/imports/HTMLImportLoader.cpp
+++ b/Source/core/html/imports/HTMLImportLoader.cpp
@@ -208,12 +208,7 @@ void HTMLImportLoader::removeImport(HTMLImportChild* client)
bool HTMLImportLoader::shouldBlockScriptExecution() const
{
- for (size_t i = 0; i < m_imports.size(); ++i) {
- if (!m_imports[i]->state().shouldBlockScriptExecution())
- return false;
- }
-
- return true;
+ return firstImport()->state().shouldBlockScriptExecution();
}
PassRefPtr<CustomElementMicrotaskQueue> HTMLImportLoader::microtaskQueue() const
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.h ('k') | Source/core/html/imports/HTMLImportStateResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698