This commit is contained in:
mcafee%netscape.com 1999-06-15 04:07:36 +00:00
Родитель 32162f5535
Коммит 610b0c79c2
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -1148,7 +1148,8 @@ nsTextEditorDragListener::DragEnter(nsIDOMEvent* aDragEvent)
nsCOMPtr<nsIDragSession> dragSession(do_QueryInterface(dragService));
nsAutoString textFlavor(kTextMime);
if (dragSession && NS_OK == dragSession->IsDataFlavorSupported(&textFlavor)) {
if (dragSession &&
(NS_OK == dragSession->IsDataFlavorSupported(&textFlavor))) {
dragSession->SetCanDrop(PR_TRUE);
}
@ -1214,7 +1215,8 @@ nsTextEditorDragListener::DragDrop(nsIDOMEvent* aMouseEvent)
(void**) getter_AddRefs(trans));
if ( NS_SUCCEEDED(rv) && trans ) {
// Add the text Flavor to the transferable,
// because that is the only type of data we are looking for at the moment
// because that is the only type of data we are
// looking for at the moment.
nsAutoString textMime (kTextMime);
trans->AddDataFlavor(&textMime);
//trans->AddDataFlavor(mImageDataFlavor);

Просмотреть файл

@ -1148,7 +1148,8 @@ nsTextEditorDragListener::DragEnter(nsIDOMEvent* aDragEvent)
nsCOMPtr<nsIDragSession> dragSession(do_QueryInterface(dragService));
nsAutoString textFlavor(kTextMime);
if (dragSession && NS_OK == dragSession->IsDataFlavorSupported(&textFlavor)) {
if (dragSession &&
(NS_OK == dragSession->IsDataFlavorSupported(&textFlavor))) {
dragSession->SetCanDrop(PR_TRUE);
}
@ -1214,7 +1215,8 @@ nsTextEditorDragListener::DragDrop(nsIDOMEvent* aMouseEvent)
(void**) getter_AddRefs(trans));
if ( NS_SUCCEEDED(rv) && trans ) {
// Add the text Flavor to the transferable,
// because that is the only type of data we are looking for at the moment
// because that is the only type of data we are
// looking for at the moment.
nsAutoString textMime (kTextMime);
trans->AddDataFlavor(&textMime);
//trans->AddDataFlavor(mImageDataFlavor);