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

Unified Diff: Source/modules/device_orientation/DeviceMotionEvent.h

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/modules/device_orientation/DeviceMotionEvent.h
diff --git a/Source/modules/device_orientation/DeviceMotionEvent.h b/Source/modules/device_orientation/DeviceMotionEvent.h
index 2f50e9f9635e7b6f585cfd8d7663f2af682f97bf..ce19d5fb6403af6c04cac2b439e34a45fff75700 100644
--- a/Source/modules/device_orientation/DeviceMotionEvent.h
+++ b/Source/modules/device_orientation/DeviceMotionEvent.h
@@ -38,13 +38,13 @@ class DeviceRotationRate;
class DeviceMotionEvent FINAL : public Event {
public:
virtual ~DeviceMotionEvent();
- static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create()
+ static PassRefPtr<DeviceMotionEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new DeviceMotionEvent);
+ return adoptRef(new DeviceMotionEvent);
}
- static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
+ static PassRefPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
{
- return adoptRefWillBeRefCountedGarbageCollected(new DeviceMotionEvent(eventType, deviceMotionData));
+ return adoptRef(new DeviceMotionEvent(eventType, deviceMotionData));
}
void initDeviceMotionEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceMotionData*);

Powered by Google App Engine
This is Rietveld 408576698