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 |