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:
@@ -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!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user