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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.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/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index be12c3bee157f07c4b386dead89d440319fd2ecb..dbc768427eb74314b672ffeb64d795826c8cb457 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -145,6 +145,7 @@ using namespace HTMLNames;
ComputedStyle* StyleResolver::s_styleNotYetAvailable;
static StylePropertySet* leftToRightDeclaration() {
+ ALLOW_UNSAFE_SINGLETON()
DEFINE_STATIC_LOCAL(MutableStylePropertySet, leftToRightDecl,
(MutableStylePropertySet::create(HTMLQuirksMode)));
if (leftToRightDecl.isEmpty())
@@ -153,6 +154,7 @@ static StylePropertySet* leftToRightDeclaration() {
}
static StylePropertySet* rightToLeftDeclaration() {
+ ALLOW_UNSAFE_SINGLETON()
DEFINE_STATIC_LOCAL(MutableStylePropertySet, rightToLeftDecl,
(MutableStylePropertySet::create(HTMLQuirksMode)));
if (rightToLeftDecl.isEmpty())

Powered by Google App Engine
This is Rietveld 408576698