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

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

Issue 2214263003: CustomElements: taking CustomElementReactionStack out of frameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/CustomElementReactionStack.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
index e05f34bf1a3922f8973f59dca0c1bf9cd37bde8f..231b9d1b3a53bc7dc41ef55d2097a6152fedc8e6 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
@@ -12,6 +12,16 @@
namespace blink {
+namespace {
+
+CustomElementReactionStack& customElementReactionStack()
+{
+ DEFINE_STATIC_LOCAL(CustomElementReactionStack, customElementReactionStack, (new CustomElementReactionStack));
+ return customElementReactionStack;
+}
+
+} // namespace
+
// TODO(dominicc): Consider using linked heap structures, avoiding
// finalizers, to make short-lived entries fast.
@@ -103,4 +113,9 @@ void CustomElementReactionStack::invokeBackupQueue()
m_backupQueue->clear();
}
+CustomElementReactionStack& CustomElementReactionStack::current()
+{
+ return customElementReactionStack();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698