From 23cdcfcbf27ec2afbf1dd4a93eaebd22248eeb92 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Sun, 11 Apr 1999 22:53:17 +0000 Subject: [PATCH] added some debugging output git-svn-id: svn://10.0.0.236/trunk@27114 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/InsertElementTxn.cpp | 10 ++++++++-- mozilla/editor/libeditor/base/InsertElementTxn.cpp | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/mozilla/editor/base/InsertElementTxn.cpp b/mozilla/editor/base/InsertElementTxn.cpp index a7c144d9409..5af4c9f8ac3 100644 --- a/mozilla/editor/base/InsertElementTxn.cpp +++ b/mozilla/editor/base/InsertElementTxn.cpp @@ -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) + { + nsCOMPtrnodeAsContent = do_QueryInterface(mNode); + nsCOMPtrparentAsContent = 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; diff --git a/mozilla/editor/libeditor/base/InsertElementTxn.cpp b/mozilla/editor/libeditor/base/InsertElementTxn.cpp index a7c144d9409..5af4c9f8ac3 100644 --- a/mozilla/editor/libeditor/base/InsertElementTxn.cpp +++ b/mozilla/editor/libeditor/base/InsertElementTxn.cpp @@ -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) + { + nsCOMPtrnodeAsContent = do_QueryInterface(mNode); + nsCOMPtrparentAsContent = 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;