зеркало из https://github.com/mozilla/gecko-dev.git
Renamed GetTransferable() to GetData()
This commit is contained in:
Родитель
8bb5990b04
Коммит
2813616d59
|
@ -863,7 +863,7 @@ NS_IMETHODIMP nsEditor::Paste()
|
|||
}
|
||||
|
||||
if(clipboard) {
|
||||
clipboard->SetTransferable(trans, nsnull);
|
||||
clipboard->SetData(trans, nsnull);
|
||||
clipboard->GetClipboard();
|
||||
} else {
|
||||
printf("nsEditor::Paste(), clipboard instance is null.\n");
|
||||
|
|
|
@ -863,7 +863,7 @@ NS_IMETHODIMP nsEditor::Paste()
|
|||
}
|
||||
|
||||
if(clipboard) {
|
||||
clipboard->SetTransferable(trans, nsnull);
|
||||
clipboard->SetData(trans, nsnull);
|
||||
clipboard->GetClipboard();
|
||||
} else {
|
||||
printf("nsEditor::Paste(), clipboard instance is null.\n");
|
||||
|
|
|
@ -1584,7 +1584,7 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
|
|||
}
|
||||
|
||||
if(clipboard) {
|
||||
clipboard->SetTransferable(trans, nsnull);
|
||||
clipboard->SetData(trans, nsnull);
|
||||
clipboard->SetClipboard();
|
||||
} else {
|
||||
printf("PresShell::DoCopy(), clipboard instance is null.\n");
|
||||
|
|
|
@ -1584,7 +1584,7 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
|
|||
}
|
||||
|
||||
if(clipboard) {
|
||||
clipboard->SetTransferable(trans, nsnull);
|
||||
clipboard->SetData(trans, nsnull);
|
||||
clipboard->SetClipboard();
|
||||
} else {
|
||||
printf("PresShell::DoCopy(), clipboard instance is null.\n");
|
||||
|
|
|
@ -564,7 +564,7 @@ nsEditorAppCore::Exit()
|
|||
|
||||
if (NS_OK == rvv) {
|
||||
nsITransferable * trans;
|
||||
clipboard->GetTransferable(&trans);
|
||||
clipboard->GetData(&trans);
|
||||
if (nsnull != trans) {
|
||||
if (NS_OK == trans->IsLargeDataSet()) {
|
||||
// XXX A Dialog goes here to see if they want to "force" a copy
|
||||
|
|
Загрузка…
Ссылка в новой задаче