Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 1d8eb540620047648bc6945377e95e2489f05c72..252dd3e260a04e082151dd33fe177ee77c61aa72 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -148,8 +148,9 @@ |
ScrollCustomizationCallbacks& scrollCustomizationCallbacks() |
{ |
ASSERT(RuntimeEnabledFeatures::scrollCustomizationEnabled()); |
- DEFINE_STATIC_LOCAL(ScrollCustomizationCallbacks, scrollCustomizationCallbacks, (new ScrollCustomizationCallbacks)); |
- return scrollCustomizationCallbacks; |
+ DEFINE_STATIC_LOCAL(Persistent<ScrollCustomizationCallbacks>, |
+ scrollCustomizationCallbacks, (new ScrollCustomizationCallbacks())); |
+ return *scrollCustomizationCallbacks; |
} |
} // namespace |