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

Unified Diff: third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.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/modules/worklet/DOMWindowWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.cpp b/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.cpp
index 34c6e5c84830255faa62eecaa3e3378d901d2718..146536a961f501f87f4376615905239684228be1 100644
--- a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.cpp
+++ b/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.cpp
@@ -15,8 +15,6 @@ DOMWindowWorklet::DOMWindowWorklet(LocalDOMWindow& window)
{
}
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowWorklet);
-
const char* DOMWindowWorklet::supplementName()
{
return "DOMWindowWorklet";
@@ -25,10 +23,10 @@ const char* DOMWindowWorklet::supplementName()
// static
DOMWindowWorklet& DOMWindowWorklet::from(LocalDOMWindow& window)
{
- DOMWindowWorklet* supplement = static_cast<DOMWindowWorklet*>(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName()));
+ DOMWindowWorklet* supplement = static_cast<DOMWindowWorklet*>(HeapSupplement<LocalDOMWindow>::from(window, supplementName()));
if (!supplement) {
supplement = new DOMWindowWorklet(window);
- provideTo(window, supplementName(), adoptPtrWillBeNoop(supplement));
+ provideTo(window, supplementName(), (supplement));
}
return *supplement;
}
@@ -49,7 +47,7 @@ Worklet* DOMWindowWorklet::renderWorklet(ExecutionContext* executionContext) con
DEFINE_TRACE(DOMWindowWorklet)
{
visitor->trace(m_renderWorklet);
- WillBeHeapSupplement<LocalDOMWindow>::trace(visitor);
+ HeapSupplement<LocalDOMWindow>::trace(visitor);
DOMWindowProperty::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698