зеркало из 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) {
|
if(clipboard) {
|
||||||
clipboard->SetTransferable(trans, nsnull);
|
clipboard->SetData(trans, nsnull);
|
||||||
clipboard->GetClipboard();
|
clipboard->GetClipboard();
|
||||||
} else {
|
} else {
|
||||||
printf("nsEditor::Paste(), clipboard instance is null.\n");
|
printf("nsEditor::Paste(), clipboard instance is null.\n");
|
||||||
|
|
|
@ -863,7 +863,7 @@ NS_IMETHODIMP nsEditor::Paste()
|
||||||
}
|
}
|
||||||
|
|
||||||
if(clipboard) {
|
if(clipboard) {
|
||||||
clipboard->SetTransferable(trans, nsnull);
|
clipboard->SetData(trans, nsnull);
|
||||||
clipboard->GetClipboard();
|
clipboard->GetClipboard();
|
||||||
} else {
|
} else {
|
||||||
printf("nsEditor::Paste(), clipboard instance is null.\n");
|
printf("nsEditor::Paste(), clipboard instance is null.\n");
|
||||||
|
|
|
@ -1584,7 +1584,7 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(clipboard) {
|
if(clipboard) {
|
||||||
clipboard->SetTransferable(trans, nsnull);
|
clipboard->SetData(trans, nsnull);
|
||||||
clipboard->SetClipboard();
|
clipboard->SetClipboard();
|
||||||
} else {
|
} else {
|
||||||
printf("PresShell::DoCopy(), clipboard instance is null.\n");
|
printf("PresShell::DoCopy(), clipboard instance is null.\n");
|
||||||
|
|
|
@ -1584,7 +1584,7 @@ PresShell::DoCopy(nsISelectionMgr* aSelectionMgr)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(clipboard) {
|
if(clipboard) {
|
||||||
clipboard->SetTransferable(trans, nsnull);
|
clipboard->SetData(trans, nsnull);
|
||||||
clipboard->SetClipboard();
|
clipboard->SetClipboard();
|
||||||
} else {
|
} else {
|
||||||
printf("PresShell::DoCopy(), clipboard instance is null.\n");
|
printf("PresShell::DoCopy(), clipboard instance is null.\n");
|
||||||
|
|
|
@ -564,7 +564,7 @@ nsEditorAppCore::Exit()
|
||||||
|
|
||||||
if (NS_OK == rvv) {
|
if (NS_OK == rvv) {
|
||||||
nsITransferable * trans;
|
nsITransferable * trans;
|
||||||
clipboard->GetTransferable(&trans);
|
clipboard->GetData(&trans);
|
||||||
if (nsnull != trans) {
|
if (nsnull != trans) {
|
||||||
if (NS_OK == trans->IsLargeDataSet()) {
|
if (NS_OK == trans->IsLargeDataSet()) {
|
||||||
// XXX A Dialog goes here to see if they want to "force" a copy
|
// XXX A Dialog goes here to see if they want to "force" a copy
|
||||||
|
|
Загрузка…
Ссылка в новой задаче