Support for nsPresShell::DoCopy()
git-svn-id: svn://10.0.0.236/trunk@26680 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -84,7 +84,10 @@
|
||||
|
||||
// For Copy
|
||||
#include "nsIDOMSelection.h"
|
||||
|
||||
#ifndef NEW_CLIPBOARD_SUPPORT
|
||||
#include "nsISelectionMgr.h"
|
||||
#endif
|
||||
|
||||
// XXX For font setting below
|
||||
#include "nsFont.h"
|
||||
@@ -1976,9 +1979,14 @@ nsBrowserWindow::DoCopy()
|
||||
{
|
||||
nsIPresShell* shell = GetPresShell();
|
||||
if (nsnull != shell) {
|
||||
|
||||
#ifndef NEW_CLIPBOARD_SUPPORT
|
||||
nsISelectionMgr* selectionMgr;
|
||||
if (NS_SUCCEEDED(mAppShell->GetSelectionMgr(&selectionMgr)))
|
||||
shell->DoCopy(selectionMgr);
|
||||
#else
|
||||
shell->DoCopy();
|
||||
#endif
|
||||
NS_RELEASE(shell);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user