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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.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, 9 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/DeviceMotionController.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp
index ae0b3aeee4b492ca6ed2f9594d960b20519b188f..06100c5997ac34c8ef97b756b1acc30322a772d2 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp
@@ -36,10 +36,10 @@ const char* DeviceMotionController::supplementName()
DeviceMotionController& DeviceMotionController::from(Document& document)
{
- DeviceMotionController* controller = static_cast<DeviceMotionController*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
+ DeviceMotionController* controller = static_cast<DeviceMotionController*>(HeapSupplement<Document>::from(document, supplementName()));
if (!controller) {
controller = new DeviceMotionController(document);
- WillBeHeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
+ HeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
}
return *controller;
}
@@ -82,7 +82,7 @@ void DeviceMotionController::unregisterWithDispatcher()
DeviceMotionDispatcher::instance().removeController(this);
}
-PassRefPtrWillBeRawPtr<Event> DeviceMotionController::lastEvent() const
+RawPtr<Event> DeviceMotionController::lastEvent() const
{
return DeviceMotionEvent::create(EventTypeNames::devicemotion, DeviceMotionDispatcher::instance().latestDeviceMotionData());
}
@@ -101,7 +101,7 @@ const AtomicString& DeviceMotionController::eventTypeName() const
DEFINE_TRACE(DeviceMotionController)
{
DeviceSingleWindowEventController::trace(visitor);
- WillBeHeapSupplement<Document>::trace(visitor);
+ HeapSupplement<Document>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698