mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
Stop using dragTracker (bug 43428)
This commit is contained in:
parent
028fd2878c
commit
886cb5ccdc
@ -287,17 +287,6 @@ STDMETHODIMP nsNativeDragTarget::DragLeave() {
|
||||
// tell the drag service that we're done with it
|
||||
mDragService->EndDragSession();
|
||||
|
||||
// tell anyone interested to stop tracking drags, but only when we're
|
||||
// leaving a window, not a child widget
|
||||
nsCOMPtr<nsIWidget> parent ( dont_AddRef(mWindow->GetParent()) );
|
||||
if ( !parent ) {
|
||||
printf("stopping\n");
|
||||
nsCOMPtr<nsIDragSession> session;
|
||||
mDragService->GetCurrentSession ( getter_AddRefs(session) );
|
||||
if ( session )
|
||||
session->StopTracking();
|
||||
}
|
||||
|
||||
// dispatch the event into Gecko
|
||||
DispatchDragDropEvent(NS_DRAGDROP_EXIT, gDragLastPoint);
|
||||
return S_OK;
|
||||
@ -344,12 +333,6 @@ STDMETHODIMP nsNativeDragTarget::Drop(LPDATAOBJECT pIDataSource,
|
||||
// Set the native data object into drage service
|
||||
winDragService->SetIDataObject(pIDataSource);
|
||||
|
||||
// tell anyone interested to stop tracking drags
|
||||
nsCOMPtr<nsIDragSession> session;
|
||||
mDragService->GetCurrentSession ( getter_AddRefs(session) );
|
||||
if ( session )
|
||||
session->StopTracking();
|
||||
|
||||
// Now process the native drag state and then dispatch the event
|
||||
ProcessDrag(NS_DRAGDROP_DROP, grfKeyState, aPT, pdwEffect);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user