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

Unified Diff: third_party/WebKit/Source/core/xml/XPathValue.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/xml/XPathValue.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathValue.cpp b/third_party/WebKit/Source/core/xml/XPathValue.cpp
index af8836e15a8f9a33785847b35532e8441f1f53a5..06d27401d9eaef8d76cbc1d620d6c699cfa54808 100644
--- a/third_party/WebKit/Source/core/xml/XPathValue.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathValue.cpp
@@ -53,8 +53,8 @@ const NodeSet& Value::toNodeSet(EvaluationContext* context) const
context->hadTypeConversionError = true;
if (!m_data) {
- DEFINE_STATIC_LOCAL(Persistent<NodeSet>, emptyNodeSet, (NodeSet::create()));
- return *emptyNodeSet;
+ DEFINE_STATIC_LOCAL(NodeSet, emptyNodeSet, (NodeSet::create()));
+ return emptyNodeSet;
}
return m_data->nodeSet();

Powered by Google App Engine
This is Rietveld 408576698