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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp

Issue 2097463002: Add backup element queue to CustomElementReactionStack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dominicc nits Created 4 years, 6 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: third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp
index 817a91900e441d1eedb4811fce7e46ddebee5e99..dec7331dac87041e08f26ca8de954c0ea88d66d1 100644
--- a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp
@@ -13,15 +13,18 @@ namespace blink {
CEReactionsScope* CEReactionsScope::s_topOfStack = nullptr;
-void CEReactionsScope::enqueue(
+void CEReactionsScope::enqueueToCurrentQueue(
Element* element,
CustomElementReaction* reaction)
{
if (!m_frameHost.get()) {
m_frameHost = element->document().frameHost();
m_frameHost->customElementReactionStack().push();
+ } else {
+ DCHECK_EQ(m_frameHost, element->document().frameHost());
}
- m_frameHost->customElementReactionStack().enqueue(element, reaction);
+ m_frameHost->customElementReactionStack().enqueueToCurrentQueue(
+ element, reaction);
}
void CEReactionsScope::invokeReactions()

Powered by Google App Engine
This is Rietveld 408576698