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

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

Issue 297863004: Merge 174141 "HTML Imports: Take care of cycles according to the..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1985/
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
===================================================================
--- Source/core/html/imports/HTMLImportLoader.cpp (revision 174593)
+++ Source/core/html/imports/HTMLImportLoader.cpp (working copy)
@@ -208,12 +208,7 @@
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