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) |
{ |