Index: Source/WebCore/dom/DeviceMotionController.cpp |
=================================================================== |
--- Source/WebCore/dom/DeviceMotionController.cpp (revision 78117) |
+++ Source/WebCore/dom/DeviceMotionController.cpp (working copy) |
@@ -54,7 +54,7 @@ |
RefPtr<DeviceMotionData> deviceMotionData = m_client ? m_client->currentDeviceMotion() : DeviceMotionData::create(); |
RefPtr<DeviceMotionEvent> event = DeviceMotionEvent::create(eventNames().devicemotionEvent, deviceMotionData.get()); |
- Vector<DOMWindow*> listenersVector; |
+ Vector<RefPtr<DOMWindow> > listenersVector; |
copyToVector(m_newListeners, listenersVector); |
m_newListeners.clear(); |
for (size_t i = 0; i < listenersVector.size(); ++i) |
@@ -100,7 +100,7 @@ |
void DeviceMotionController::didChangeDeviceMotion(DeviceMotionData* deviceMotionData) |
{ |
RefPtr<DeviceMotionEvent> event = DeviceMotionEvent::create(eventNames().devicemotionEvent, deviceMotionData); |
- Vector<DOMWindow*> listenersVector; |
+ Vector<RefPtr<DOMWindow> > listenersVector; |
copyToVector(m_listeners, listenersVector); |
for (size_t i = 0; i < listenersVector.size(); ++i) |
listenersVector[i]->dispatchEvent(event); |