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

Unified Diff: third_party/WebKit/Source/core/dom/MutationObserver.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/MutationObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/MutationObserver.cpp b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
index 8b00d1453f80a749bc13e25cd7d1391a8f29d7f1..cc8ba513d31311142788631a61e3843ce27e41fd 100644
--- a/third_party/WebKit/Source/core/dom/MutationObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
@@ -167,6 +167,7 @@ void MutationObserver::observationEnded(
}
static MutationObserverSet& activeMutationObservers() {
+ ALLOW_UNSAFE_SINGLETON()
DEFINE_STATIC_LOCAL(MutationObserverSet, activeObservers,
(new MutationObserverSet));
return activeObservers;
@@ -178,11 +179,13 @@ using SlotChangeList = HeapVector<Member<HTMLSlotElement>>;
// similar-origin browsing context.
// https://html.spec.whatwg.org/multipage/browsers.html#unit-of-related-similar-origin-browsing-contexts
static SlotChangeList& activeSlotChangeList() {
+ ALLOW_UNSAFE_SINGLETON()
DEFINE_STATIC_LOCAL(SlotChangeList, slotChangeList, (new SlotChangeList));
return slotChangeList;
}
static MutationObserverSet& suspendedMutationObservers() {
+ ALLOW_UNSAFE_SINGLETON()
DEFINE_STATIC_LOCAL(MutationObserverSet, suspendedObservers,
(new MutationObserverSet));
return suspendedObservers;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698