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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/dom/CSSSelectorWatch.cpp
diff --git a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
index 7b2034c7cb2534b95485cdadc3b2c78f554d8d9c..8aaca4bc6ef0014b8cb5fc887f9a7bd243bec20a 100644
--- a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
+++ b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
@@ -55,14 +55,14 @@ CSSSelectorWatch& CSSSelectorWatch::from(Document& document)
CSSSelectorWatch* watch = fromIfExists(document);
if (!watch) {
watch = new CSSSelectorWatch(document);
- WillBeHeapSupplement<Document>::provideTo(document, kSupplementName, adoptPtrWillBeNoop(watch));
+ HeapSupplement<Document>::provideTo(document, kSupplementName, (watch));
}
return *watch;
}
CSSSelectorWatch* CSSSelectorWatch::fromIfExists(Document& document)
{
- return static_cast<CSSSelectorWatch*>(WillBeHeapSupplement<Document>::from(document, kSupplementName));
+ return static_cast<CSSSelectorWatch*>(HeapSupplement<Document>::from(document, kSupplementName));
}
void CSSSelectorWatch::callbackSelectorChangeTimerFired(Timer<CSSSelectorWatch>*)
@@ -145,7 +145,7 @@ void CSSSelectorWatch::watchCSSSelectors(const Vector<String>& selectors)
{
m_watchedCallbackSelectors.clear();
- const RefPtrWillBeRawPtr<StylePropertySet> callbackPropertySet = ImmutableStylePropertySet::create(nullptr, 0, UASheetMode);
+ const RawPtr<StylePropertySet> callbackPropertySet = ImmutableStylePropertySet::create(nullptr, 0, UASheetMode);
for (unsigned i = 0; i < selectors.size(); ++i) {
CSSSelectorList selectorList = CSSParser::parseSelector(CSSParserContext(UASheetMode, 0), nullptr, selectors[i]);
@@ -165,7 +165,7 @@ DEFINE_TRACE(CSSSelectorWatch)
{
visitor->trace(m_watchedCallbackSelectors);
visitor->trace(m_document);
- WillBeHeapSupplement<Document>::trace(visitor);
+ HeapSupplement<Document>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698