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

Unified Diff: Source/core/dom/custom/CustomElementMicrotaskQueue.cpp

Issue 272243004: HTML Imports: Fix race conditions on HTMLImportsChild (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
Index: Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
diff --git a/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp b/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
index 4e2c25f87f411aaa9e0e5ef6cc08e5f4e6af7f67..236cc54517e4b50ba8a234fc1f357ed1f97ea2c3 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
+++ b/Source/core/dom/custom/CustomElementMicrotaskQueue.cpp
@@ -103,6 +103,16 @@ CustomElementMicrotaskStep::Result CustomElementMicrotaskQueue::dispatch()
return accumulatedResult;
}
+bool CustomElementMicrotaskQueue::needsProcessOrStop() const
dominicc (has gone to gerrit) 2014/05/12 00:42:18 I think the complexity of Imports has degraded thi
+{
+ for (size_t i = 0; i < m_queue.size(); ++i) {
+ if (m_queue[i]->needsProcessOrStop())
+ return true;
+ }
+
+ return false;
+}
+
#if !defined(NDEBUG)
void CustomElementMicrotaskQueue::show(unsigned indent)
{

Powered by Google App Engine
This is Rietveld 408576698