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

Unified Diff: third_party/WebKit/Source/core/xml/XPathValue.cpp

Issue 2694283003: Annotate ScriptWrappable-embedding singletons.
Patch Set: add XPathValue singleton Created 3 years, 10 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 647394b92ae8317ef8ce5f56715c85bddbed4348..3c6ec3a3a085c9ebd2d1046f7f61bcf942d959e3 100644
--- a/third_party/WebKit/Source/core/xml/XPathValue.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathValue.cpp
@@ -50,6 +50,7 @@ const NodeSet& Value::toNodeSet(EvaluationContext* context) const {
context->hadTypeConversionError = true;
if (!m_data) {
+ ALLOW_UNSAFE_SINGLETON()
DEFINE_STATIC_LOCAL(NodeSet, emptyNodeSet, (NodeSet::create()));
return emptyNodeSet;
}

Powered by Google App Engine
This is Rietveld 408576698