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

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

Issue 2097463002: Add backup element queue to CustomElementReactionStack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests 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.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
index 8b9f2967a18a3d40e148eb9ca9b4396f6c03ca79..b9280828cd58097829ce36bc3d5f1020f8d490f7 100644
--- a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
+++ b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
@@ -14,6 +14,7 @@
namespace blink {
class CustomElementReaction;
+class CustomElementReactionStack;
class Element;
class FrameHost;
@@ -22,11 +23,6 @@ class CORE_EXPORT CEReactionsScope final {
STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(CEReactionsScope);
public:
- static CEReactionsScope* current()
- {
- return s_topOfStack;
- }
-
CEReactionsScope()
: m_prev(s_topOfStack)
{
@@ -40,7 +36,8 @@ public:
s_topOfStack = s_topOfStack->m_prev;
}
- void enqueue(Element*, CustomElementReaction*);
+ static CustomElementReactionStack* currentCustomElementReactionStack(
dominicc (has gone to gerrit) 2016/06/28 03:37:13 I think it would be better if we were not exposing
kojii 2016/06/28 04:19:04 Sounds good, done.
+ Element*);
private:
static CEReactionsScope* s_topOfStack;

Powered by Google App Engine
This is Rietveld 408576698