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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.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/device_orientation/DeviceOrientationController.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
index 1b144e8feb6dbca5a1e0ed4260be5ef95e87d5c2..a62ca0d6085d27dc4205dd638aaf192667a50c8c 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
@@ -43,10 +43,10 @@ const char* DeviceOrientationController::supplementName()
DeviceOrientationController& DeviceOrientationController::from(Document& document)
{
- DeviceOrientationController* controller = static_cast<DeviceOrientationController*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
+ DeviceOrientationController* controller = static_cast<DeviceOrientationController*>(HeapSupplement<Document>::from(document, supplementName()));
if (!controller) {
controller = new DeviceOrientationController(document);
- WillBeHeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
+ HeapSupplement<Document>::provideTo(document, supplementName(), (controller));
}
return *controller;
}
@@ -94,7 +94,7 @@ void DeviceOrientationController::unregisterWithDispatcher()
dispatcherInstance().removeController(this);
}
-PassRefPtrWillBeRawPtr<Event> DeviceOrientationController::lastEvent() const
+RawPtr<Event> DeviceOrientationController::lastEvent() const
{
return DeviceOrientationEvent::create(eventTypeName(), lastData());
}
@@ -135,7 +135,7 @@ DEFINE_TRACE(DeviceOrientationController)
{
visitor->trace(m_overrideOrientationData);
DeviceSingleWindowEventController::trace(visitor);
- WillBeHeapSupplement<Document>::trace(visitor);
+ HeapSupplement<Document>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698