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

Unified Diff: Source/core/dom/CSSSelectorWatch.cpp

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 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: Source/core/dom/CSSSelectorWatch.cpp
diff --git a/Source/core/dom/CSSSelectorWatch.cpp b/Source/core/dom/CSSSelectorWatch.cpp
index a9f941dfa6f169b7b88ef11efe527a2aebe23a7a..2b10e080daeee78994e1119f658546836598b779 100644
--- a/Source/core/dom/CSSSelectorWatch.cpp
+++ b/Source/core/dom/CSSSelectorWatch.cpp
@@ -57,7 +57,7 @@ CSSSelectorWatch& CSSSelectorWatch::from(Document& document)
CSSSelectorWatch* watch = static_cast<CSSSelectorWatch*>(DocumentSupplement::from(document, kSupplementName));
if (!watch) {
watch = new CSSSelectorWatch(document);
- DocumentSupplement::provideTo(document, kSupplementName, adoptPtr(watch));
+ DocumentSupplement::provideTo(document, kSupplementName, adoptPtrWillBeNoop(watch));
}
return *watch;
}
@@ -164,4 +164,9 @@ void CSSSelectorWatch::watchCSSSelectors(const Vector<String>& selectors)
m_document.changedSelectorWatch();
}
+void CSSSelectorWatch::trace(Visitor* visitor)
+{
+ visitor->trace(m_watchedCallbackSelectors);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698