fixing selection speed. only copying to clipboard on mouse up

git-svn-id: svn://10.0.0.236/trunk@66024 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-04-14 23:00:30 +00:00
parent b49aa33078
commit 922709ebdd
14 changed files with 52 additions and 18 deletions

View File

@@ -377,6 +377,13 @@ DocumentViewerImpl::~DocumentViewerImpl()
if (mPresShell) {
// Break circular reference (or something)
mPresShell->EndObservingDocument();
nsCOMPtr<nsIDOMSelection> selection;
nsresult rv;
rv = GetDocumentSelection(getter_AddRefs(selection));
if (NS_FAILED(rv) || !selection)
return;
if (mSelectionListener)
selection->RemoveSelectionListener(mSelectionListener);
}
}
@@ -1661,7 +1668,7 @@ nsresult nsDocViwerSelectionListener::Init(DocumentViewerImpl *aDocViewer)
}
NS_IMETHODIMP nsDocViwerSelectionListener::NotifySelectionChanged(nsIDOMDocument *, nsIDOMSelection *)
NS_IMETHODIMP nsDocViwerSelectionListener::NotifySelectionChanged(nsIDOMDocument *, nsIDOMSelection *, short)
{
NS_ASSERTION(mDocViewer, "Should have doc viewer!");