From b34de1697ef30c620d623e15ff0bbf52ef78ad18 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Mon, 21 Jun 1999 23:19:54 +0000 Subject: [PATCH] Fixing drag test case, this is #if 0 by default. git-svn-id: svn://10.0.0.236/trunk@36142 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsFrame.cpp | 6 +++--- mozilla/layout/html/base/src/nsFrame.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/generic/nsFrame.cpp b/mozilla/layout/generic/nsFrame.cpp index 6e06f63f69a..44978e1b90f 100644 --- a/mozilla/layout/generic/nsFrame.cpp +++ b/mozilla/layout/generic/nsFrame.cpp @@ -51,7 +51,7 @@ #include "nsCOMPtr.h" #include "nsStyleChangeList.h" -#define NORMAL_DRAG_HANDLING 1 // remove this to try out new D&D stuff. +#define NORMAL_DRAG_HANDLING 1 #if !NORMAL_DRAG_HANDLING #include "nsWidgetsCID.h" #include "nsIDragService.h" @@ -830,12 +830,12 @@ nsFrame::HandleEvent(nsIPresContext& aPresContext, trans->AddDataFlavor(&textPlainFlavor); nsString dragText = "Drag Text"; PRUint32 len = 9; - trans->SetTransferData(flavor, dragText.ToNewCString(), len); // transferable consumes the data + trans->SetTransferData(&textPlainFlavor, dragText.ToNewCString(), len); // transferable consumes the data trans2->AddDataFlavor(&textPlainFlavor); nsString dragText2 = "More Drag Text"; len = 14; - trans2->SetTransferData(flavor2, dragText2.ToNewCString(), len); // transferable consumes the data + trans2->SetTransferData(&textPlainFlavor, dragText2.ToNewCString(), len); // transferable consumes the data nsCOMPtr items; NS_NewISupportsArray(getter_AddRefs(items)); diff --git a/mozilla/layout/html/base/src/nsFrame.cpp b/mozilla/layout/html/base/src/nsFrame.cpp index 6e06f63f69a..44978e1b90f 100644 --- a/mozilla/layout/html/base/src/nsFrame.cpp +++ b/mozilla/layout/html/base/src/nsFrame.cpp @@ -51,7 +51,7 @@ #include "nsCOMPtr.h" #include "nsStyleChangeList.h" -#define NORMAL_DRAG_HANDLING 1 // remove this to try out new D&D stuff. +#define NORMAL_DRAG_HANDLING 1 #if !NORMAL_DRAG_HANDLING #include "nsWidgetsCID.h" #include "nsIDragService.h" @@ -830,12 +830,12 @@ nsFrame::HandleEvent(nsIPresContext& aPresContext, trans->AddDataFlavor(&textPlainFlavor); nsString dragText = "Drag Text"; PRUint32 len = 9; - trans->SetTransferData(flavor, dragText.ToNewCString(), len); // transferable consumes the data + trans->SetTransferData(&textPlainFlavor, dragText.ToNewCString(), len); // transferable consumes the data trans2->AddDataFlavor(&textPlainFlavor); nsString dragText2 = "More Drag Text"; len = 14; - trans2->SetTransferData(flavor2, dragText2.ToNewCString(), len); // transferable consumes the data + trans2->SetTransferData(&textPlainFlavor, dragText2.ToNewCString(), len); // transferable consumes the data nsCOMPtr items; NS_NewISupportsArray(getter_AddRefs(items));