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

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

Issue 1850413002: Improve DEFINE_STATIC_LOCAL()'s handling of Blink GCed objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address compilation failure Created 4 years, 8 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/CustomElementProcessingStack.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementProcessingStack.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementProcessingStack.cpp
index b9db2f2c596f3f00f0a2ce001caa573fbe9f9107..57bc051271438295a2adeb0955a8bccd4494f09d 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementProcessingStack.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementProcessingStack.cpp
@@ -42,8 +42,8 @@ size_t CustomElementProcessingStack::s_elementQueueEnd = kNumSentinels;
CustomElementProcessingStack& CustomElementProcessingStack::instance()
{
- DEFINE_STATIC_LOCAL(Persistent<CustomElementProcessingStack>, instance, (new CustomElementProcessingStack()));
- return *instance;
+ DEFINE_STATIC_LOCAL(CustomElementProcessingStack, instance, (new CustomElementProcessingStack));
+ return instance;
}
// Dispatches callbacks when popping the processing stack.

Powered by Google App Engine
This is Rietveld 408576698