зеркало из https://github.com/mozilla/pjs.git
Added DumpContent() for parser regression test.
Triggered only under debug mode & when PARSER_DUMP_CONTENT flag is set. r=rickg a=rickg
This commit is contained in:
Родитель
dd1ab0ea53
Коммит
2e8349e7bd
|
@ -149,6 +149,9 @@ public:
|
|||
return mInner.GetAttributeCount(aResult);
|
||||
}
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
NS_IMETHOD DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const {
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter* aConverter) const {
|
||||
return mInner.BeginConvertToXIF(aConverter);
|
||||
}
|
||||
|
|
|
@ -201,6 +201,11 @@ nsDOMDocumentType::List(FILE* out, PRInt32 aIndent) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
|
|
|
@ -198,6 +198,10 @@ public:
|
|||
}
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const
|
||||
{ return mInner.List(out, aIndent); }
|
||||
NS_IMETHOD DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const
|
||||
{
|
||||
return mInner.DumpContent(out, aIndent,aDumpAll);
|
||||
}
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter* aConverter) const
|
||||
{ return NS_OK; }
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter* aConverter) const
|
||||
|
|
|
@ -200,6 +200,7 @@ struct nsGenericDOMDataNode {
|
|||
return NS_OK;
|
||||
}
|
||||
nsresult List(FILE* out, PRInt32 aIndent) const;
|
||||
nsresult DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
nsresult HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
|
@ -524,7 +525,10 @@ struct nsGenericDOMDataNode {
|
|||
return _g.GetAttributeCount(aResult); \
|
||||
} \
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const; \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const; \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
|
|
|
@ -2853,6 +2853,11 @@ nsGenericContainerElement::List(FILE* out, PRInt32 aIndent) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericContainerElement::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericContainerElement::CanContainChildren(PRBool& aResult) const
|
||||
{
|
||||
|
|
|
@ -347,6 +347,7 @@ public:
|
|||
nsIAtom*& aPrefix) const;
|
||||
nsresult GetAttributeCount(PRInt32& aResult) const;
|
||||
nsresult List(FILE* out, PRInt32 aIndent) const;
|
||||
nsresult DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
nsresult CanContainChildren(PRBool& aResult) const;
|
||||
nsresult ChildCount(PRInt32& aResult) const;
|
||||
nsresult ChildAt(PRInt32 aIndex, nsIContent*& aResult) const;
|
||||
|
@ -645,13 +646,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -772,13 +778,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -899,13 +910,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -1024,13 +1040,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -1153,13 +1174,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -1274,13 +1300,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
|
|
@ -223,6 +223,26 @@ nsTextNode::List(FILE* out, PRInt32 aIndent) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextNode::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const
|
||||
{
|
||||
NS_PRECONDITION(nsnull != mInner.mDocument, "bad content");
|
||||
|
||||
if(aDumpAll) {
|
||||
PRInt32 index;
|
||||
for (index = aIndent; --index >= 0; ) fputs(" ", out);
|
||||
|
||||
nsAutoString tmp;
|
||||
mInner.ToCString(tmp, 0, mInner.mText.GetLength());
|
||||
|
||||
if(!tmp.EqualsWithConversion("\\n")) {
|
||||
fputs(tmp, out);
|
||||
if(aIndent) fputs("\n", out);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextNode::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
|
|
|
@ -149,6 +149,9 @@ public:
|
|||
return mInner.GetAttributeCount(aResult);
|
||||
}
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
NS_IMETHOD DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const {
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter* aConverter) const {
|
||||
return mInner.BeginConvertToXIF(aConverter);
|
||||
}
|
||||
|
|
|
@ -201,6 +201,11 @@ nsDOMDocumentType::List(FILE* out, PRInt32 aIndent) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
|
|
|
@ -198,6 +198,10 @@ public:
|
|||
}
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const
|
||||
{ return mInner.List(out, aIndent); }
|
||||
NS_IMETHOD DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const
|
||||
{
|
||||
return mInner.DumpContent(out, aIndent,aDumpAll);
|
||||
}
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter* aConverter) const
|
||||
{ return NS_OK; }
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter* aConverter) const
|
||||
|
|
|
@ -200,6 +200,7 @@ struct nsGenericDOMDataNode {
|
|||
return NS_OK;
|
||||
}
|
||||
nsresult List(FILE* out, PRInt32 aIndent) const;
|
||||
nsresult DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
nsresult HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
|
@ -524,7 +525,10 @@ struct nsGenericDOMDataNode {
|
|||
return _g.GetAttributeCount(aResult); \
|
||||
} \
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const; \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const; \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
|
|
|
@ -2853,6 +2853,11 @@ nsGenericContainerElement::List(FILE* out, PRInt32 aIndent) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericContainerElement::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericContainerElement::CanContainChildren(PRBool& aResult) const
|
||||
{
|
||||
|
|
|
@ -347,6 +347,7 @@ public:
|
|||
nsIAtom*& aPrefix) const;
|
||||
nsresult GetAttributeCount(PRInt32& aResult) const;
|
||||
nsresult List(FILE* out, PRInt32 aIndent) const;
|
||||
nsresult DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
nsresult CanContainChildren(PRBool& aResult) const;
|
||||
nsresult ChildCount(PRInt32& aResult) const;
|
||||
nsresult ChildAt(PRInt32 aIndex, nsIContent*& aResult) const;
|
||||
|
@ -645,13 +646,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -772,13 +778,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -899,13 +910,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -1024,13 +1040,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -1153,13 +1174,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
@ -1274,13 +1300,18 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { \
|
||||
return _g.List(out, aIndent); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const { \
|
||||
return _g.DumpContent(out, aIndent,aDumpAll); \
|
||||
} \
|
||||
NS_IMETHOD BeginConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.BeginConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD ConvertContentToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.ConvertContentToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
NS_IMETHOD FinishConvertToXIF(nsIXIFConverter * aConverter) const { \
|
||||
return _g.FinishConvertToXIF(aConverter); \
|
||||
} \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
|
|
|
@ -223,6 +223,26 @@ nsTextNode::List(FILE* out, PRInt32 aIndent) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextNode::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const
|
||||
{
|
||||
NS_PRECONDITION(nsnull != mInner.mDocument, "bad content");
|
||||
|
||||
if(aDumpAll) {
|
||||
PRInt32 index;
|
||||
for (index = aIndent; --index >= 0; ) fputs(" ", out);
|
||||
|
||||
nsAutoString tmp;
|
||||
mInner.ToCString(tmp, 0, mInner.mText.GetLength());
|
||||
|
||||
if(!tmp.EqualsWithConversion("\\n")) {
|
||||
fputs(tmp, out);
|
||||
if(aIndent) fputs("\n", out);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextNode::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
|
|
Загрузка…
Ссылка в новой задаче