added some debugging output

git-svn-id: svn://10.0.0.236/trunk@27114 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
1999-04-11 22:53:17 +00:00
parent c572773032
commit 23cdcfcbf2
2 changed files with 16 additions and 4 deletions

View File

@@ -18,6 +18,7 @@
#include "InsertElementTxn.h"
#include "nsIDOMSelection.h"
#include "nsIContent.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_TRUE;
@@ -54,8 +55,13 @@ InsertElementTxn::~InsertElementTxn()
NS_IMETHODIMP InsertElementTxn::Do(void)
{
if (gNoisy) { printf("%p Do Insert Element of %p into parent %p at offset %d\n",
this, mNode, mParent, mOffset); }
if (gNoisy)
{
nsCOMPtr<nsIContent>nodeAsContent = do_QueryInterface(mNode);
nsCOMPtr<nsIContent>parentAsContent = do_QueryInterface(mParent);
printf("%p Do Insert Element of %p into parent %p at offset %d\n",
this, nodeAsContent.get(), parentAsContent.get(), mOffset);
}
if (!mNode || !mParent)
return NS_ERROR_NULL_POINTER;

View File

@@ -18,6 +18,7 @@
#include "InsertElementTxn.h"
#include "nsIDOMSelection.h"
#include "nsIContent.h"
#ifdef NS_DEBUG
static PRBool gNoisy = PR_TRUE;
@@ -54,8 +55,13 @@ InsertElementTxn::~InsertElementTxn()
NS_IMETHODIMP InsertElementTxn::Do(void)
{
if (gNoisy) { printf("%p Do Insert Element of %p into parent %p at offset %d\n",
this, mNode, mParent, mOffset); }
if (gNoisy)
{
nsCOMPtr<nsIContent>nodeAsContent = do_QueryInterface(mNode);
nsCOMPtr<nsIContent>parentAsContent = do_QueryInterface(mParent);
printf("%p Do Insert Element of %p into parent %p at offset %d\n",
this, nodeAsContent.get(), parentAsContent.get(), mOffset);
}
if (!mNode || !mParent)
return NS_ERROR_NULL_POINTER;