Stop using dragTracker (bug 43428)

This commit is contained in:
pinkerton%netscape.com 2000-08-09 07:41:31 +00:00
parent 028fd2878c
commit 886cb5ccdc

View File

@ -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);