зеркало из https://github.com/mozilla/gecko-dev.git
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
This commit is contained in:
Родитель
545e075fd7
Коммит
5a357eea01
|
@ -231,37 +231,6 @@ public:
|
|||
*/
|
||||
NS_IMETHOD GetAttrCount(PRInt32& aCountResult) const = 0;
|
||||
|
||||
/**
|
||||
* Get the size of the content object. The size value should include
|
||||
* all subordinate data referenced by the content that is not
|
||||
* accounted for by child content. However, this value should not
|
||||
* include the frame objects, style contexts, views or other data
|
||||
* that lies logically outside the content model.
|
||||
*
|
||||
* If the implementation so chooses, instead of returning the total
|
||||
* subordinate data it may instead use the sizeof handler to store
|
||||
* away subordinate data under its own key so that the subordinate
|
||||
* data may be tabulated independently of the frame itself.
|
||||
*
|
||||
* The caller is responsible for recursing over all children that
|
||||
* the content contains.
|
||||
*/
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const = 0;
|
||||
|
||||
/**
|
||||
* List the content (and anything it contains) out to the given
|
||||
* file stream. Use aIndent as the base indent during formatting.
|
||||
* Returns NS_OK unless a file error occurs.
|
||||
*/
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
/**
|
||||
* Dump the content (and anything it contains) out to the given
|
||||
* file stream. Use aIndent as the base indent during formatting.
|
||||
* Returns NS_OK unless a file error occurs.
|
||||
*/
|
||||
NS_IMETHOD DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const = 0;
|
||||
|
||||
/**
|
||||
* Inform content of range ownership changes. This allows content
|
||||
* to do the right thing to ranges in the face of changes to the content
|
||||
|
@ -331,6 +300,39 @@ public:
|
|||
NS_IMETHOD_(PRBool) IsContentOfType(PRUint32 aFlags) = 0;
|
||||
|
||||
NS_IMETHOD GetListenerManager(nsIEventListenerManager** aResult) = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
/**
|
||||
* Get the size of the content object. The size value should include
|
||||
* all subordinate data referenced by the content that is not
|
||||
* accounted for by child content. However, this value should not
|
||||
* include the frame objects, style contexts, views or other data
|
||||
* that lies logically outside the content model.
|
||||
*
|
||||
* If the implementation so chooses, instead of returning the total
|
||||
* subordinate data it may instead use the sizeof handler to store
|
||||
* away subordinate data under its own key so that the subordinate
|
||||
* data may be tabulated independently of the frame itself.
|
||||
*
|
||||
* The caller is responsible for recursing over all children that
|
||||
* the content contains.
|
||||
*/
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const = 0;
|
||||
|
||||
/**
|
||||
* List the content (and anything it contains) out to the given
|
||||
* file stream. Use aIndent as the base indent during formatting.
|
||||
* Returns NS_OK unless a file error occurs.
|
||||
*/
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
/**
|
||||
* Dump the content (and anything it contains) out to the given
|
||||
* file stream. Use aIndent as the base indent during formatting.
|
||||
* Returns NS_OK unless a file error occurs.
|
||||
*/
|
||||
NS_IMETHOD DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
// nsresult codes for GetAttr
|
||||
|
|
|
@ -66,9 +66,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData)=0;
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize) = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -89,7 +89,9 @@ public:
|
|||
nsIAtom* aMedium,
|
||||
nsIContent* aContent) = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize) = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* nsIStyleRuleProcessor_h___ */
|
||||
|
|
|
@ -84,14 +84,17 @@ public:
|
|||
|
||||
// XXX style rule enumerations
|
||||
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize) = 0;
|
||||
|
||||
// If changing the given attribute cannot affect style context, aAffects
|
||||
// will be PR_FALSE on return.
|
||||
NS_IMETHOD AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent,
|
||||
PRBool &aAffects) = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize) = 0;
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsIStyleSheet_h___ */
|
||||
|
|
|
@ -152,10 +152,12 @@ public:
|
|||
NS_IMETHOD GetAttrCount(PRInt32& aResult) const {
|
||||
return mInner.GetAttributeCount(aResult);
|
||||
}
|
||||
#ifdef DEBUG
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
|
@ -203,17 +205,15 @@ public:
|
|||
return mInner.GetListenerManager(this, aResult);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const {
|
||||
if (!aResult) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
*aResult = sizeof(*this);
|
||||
#else
|
||||
*aResult = 0;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHOD GetText(const nsTextFragment** aFragmentsResult)
|
||||
{ return mInner.GetText(aFragmentsResult); }
|
||||
|
@ -357,6 +357,7 @@ nsCommentNode::CloneContent(PRBool aCloneText, nsITextContent** aReturn)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsCommentNode::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -374,6 +375,7 @@ nsCommentNode::List(FILE* out, PRInt32 aIndent) const
|
|||
fputs("-->\n", out);
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsCommentNode::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
|
|
|
@ -211,6 +211,7 @@ nsDOMDocumentType::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
return it->QueryInterface(NS_GET_IID(nsIDOMNode), (void**) aReturn);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -228,6 +229,7 @@ NS_IMETHODIMP
|
|||
nsDOMDocumentType::DumpContent(FILE* out = stdout, PRInt32 aIndent = 0,PRBool aDumpAll=PR_TRUE) const {
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
|
@ -257,12 +259,12 @@ nsDOMDocumentType::SetContentID(PRUint32 aID)
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsDOMDocumentType::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aResult);
|
||||
|
||||
#ifdef DEBUG
|
||||
PRUint32 sum;
|
||||
mInner.SizeOf(aSizer, &sum, sizeof(*this));
|
||||
PRUint32 ssize;
|
||||
|
@ -286,9 +288,9 @@ nsDOMDocumentType::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
aSizer->AddSize(nsLayoutAtoms::xml_document_notations, size);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP_(PRBool)
|
||||
nsDOMDocumentType::IsContentOfType(PRUint32 aFlags)
|
||||
|
|
|
@ -70,7 +70,9 @@ public:
|
|||
// nsIContent
|
||||
NS_IMPL_ICONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// XXX DocumentType is currently implemented by using the generic
|
||||
|
|
|
@ -169,17 +169,15 @@ public:
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const {
|
||||
if (!aResult) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
*aResult = sizeof(*this);
|
||||
#else
|
||||
*aResult = 0;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsCOMPtr<nsIDocument> mOwnerDocument;
|
||||
|
|
|
@ -817,6 +817,7 @@ nsGenericDOMDataNode::SetBindingParent(nsIContent* aParent)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
nsresult
|
||||
nsGenericDOMDataNode::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult,
|
||||
size_t aInstanceSize) const
|
||||
|
@ -825,14 +826,13 @@ nsGenericDOMDataNode::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult,
|
|||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
PRUint32 sum = 0;
|
||||
#ifdef DEBUG
|
||||
sum += (PRUint32) aInstanceSize;
|
||||
sum += mText.GetLength() *
|
||||
(mText.Is2b() ? sizeof(PRUnichar) : sizeof(char));
|
||||
#endif
|
||||
*aResult = sum;
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -204,8 +204,10 @@ struct nsGenericDOMDataNode {
|
|||
aResult = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
nsresult List(FILE* out, PRInt32 aIndent) const;
|
||||
nsresult DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
#endif
|
||||
nsresult HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
|
@ -223,8 +225,10 @@ struct nsGenericDOMDataNode {
|
|||
nsresult GetListenerManager(nsIContent* aOuterContent,
|
||||
nsIEventListenerManager** aInstancePtrResult);
|
||||
|
||||
#ifdef DEBUG
|
||||
nsresult SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult,
|
||||
size_t aInstanceSize) const;
|
||||
#endif
|
||||
|
||||
nsresult CanContainChildren(PRBool& aResult) const {
|
||||
aResult = PR_FALSE;
|
||||
|
@ -445,6 +449,16 @@ struct nsGenericDOMDataNode {
|
|||
return _g.RemoveEventListener(aType, aListener, aUseCapture); \
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DEBUG_METHODS \
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const; \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const;
|
||||
#else
|
||||
#define DEBUG_METHODS
|
||||
#endif
|
||||
|
||||
#define NS_IMPL_ICONTENT_USING_GENERIC_DOM_DATA(_g) \
|
||||
NS_IMETHOD GetDocument(nsIDocument*& aResult) const { \
|
||||
return _g.GetDocument(aResult); \
|
||||
|
@ -523,10 +537,7 @@ struct nsGenericDOMDataNode {
|
|||
NS_IMETHOD GetAttrCount(PRInt32& aResult) const { \
|
||||
return _g.GetAttributeCount(aResult); \
|
||||
} \
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const; \
|
||||
NS_IMETHOD DumpContent(FILE* out, \
|
||||
PRInt32 aIndent, \
|
||||
PRBool aDumpAll) const; \
|
||||
DEBUG_METHODS \
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, \
|
||||
nsEvent* aEvent, \
|
||||
nsIDOMEvent** aDOMEvent, \
|
||||
|
|
|
@ -1888,11 +1888,13 @@ nsGenericElement::HandleDOMEvent(nsIPresContext* aPresContext,
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
PRUint32
|
||||
nsGenericElement::BaseSizeOf(nsISizeOfHandler *aSizer) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsGenericElement::GetContentID(PRUint32* aID)
|
||||
|
@ -3390,6 +3392,7 @@ nsGenericContainerElement::GetAttrCount(PRInt32& aResult) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
nsGenericContainerElement::ListAttributes(FILE* out) const
|
||||
{
|
||||
|
@ -3513,6 +3516,7 @@ nsresult
|
|||
nsGenericContainerElement::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const {
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
nsresult
|
||||
nsGenericContainerElement::CanContainChildren(PRBool& aResult) const
|
||||
|
@ -3713,11 +3717,11 @@ nsGenericContainerElement::RemoveChildAt(PRInt32 aIndex, PRBool aNotify)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
PRUint32
|
||||
nsGenericContainerElement::BaseSizeOf(nsISizeOfHandler *aSizer) const
|
||||
{
|
||||
PRUint32 sum = 0;
|
||||
#ifdef DEBUG
|
||||
if (mAttributes) {
|
||||
// Add in array of attributes size
|
||||
PRUint32 asize;
|
||||
|
@ -3736,8 +3740,7 @@ nsGenericContainerElement::BaseSizeOf(nsISizeOfHandler *aSizer) const
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -266,8 +266,10 @@ public:
|
|||
// nsIAtom*& aName,
|
||||
// nsIAtom*& aPrefix) const;
|
||||
// NS_IMETHOD GetAttrCount(PRInt32& aResult) const;
|
||||
#ifdef DEBUG
|
||||
// NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
// NS_IMETHOD DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
#endif
|
||||
NS_IMETHOD RangeAdd(nsIDOMRange& aRange);
|
||||
NS_IMETHOD RangeRemove(nsIDOMRange& aRange);
|
||||
NS_IMETHOD GetRangeList(nsVoidArray*& aResult) const;
|
||||
|
@ -405,7 +407,9 @@ public:
|
|||
PRUint32 aType);
|
||||
|
||||
protected:
|
||||
#ifdef DEBUG
|
||||
virtual PRUint32 BaseSizeOf(nsISizeOfHandler *aSizer) const;
|
||||
#endif
|
||||
|
||||
nsDOMSlots *GetDOMSlots();
|
||||
void MaybeClearDOMSlots();
|
||||
|
@ -484,8 +488,10 @@ public:
|
|||
nsIAtom*& aName,
|
||||
nsIAtom*& aPrefix) const;
|
||||
NS_IMETHOD GetAttrCount(PRInt32& aResult) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
NS_IMETHOD DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
#endif
|
||||
NS_IMETHOD CanContainChildren(PRBool& aResult) const;
|
||||
NS_IMETHOD ChildCount(PRInt32& aResult) const;
|
||||
NS_IMETHOD ChildAt(PRInt32 aIndex, nsIContent*& aResult) const;
|
||||
|
@ -498,10 +504,14 @@ public:
|
|||
PRBool aDeepSetDocument);
|
||||
NS_IMETHOD RemoveChildAt(PRInt32 aIndex, PRBool aNotify);
|
||||
|
||||
#ifdef DEBUG
|
||||
void ListAttributes(FILE* out) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
#ifdef DEBUG
|
||||
virtual PRUint32 BaseSizeOf(nsISizeOfHandler *aSizer) const;
|
||||
#endif
|
||||
|
||||
nsVoidArray* mAttributes;
|
||||
nsCheapVoidArray mChildren;
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#include "nsReadableUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
|
||||
nsHTMLValue::nsHTMLValue(nsHTMLUnit aUnit)
|
||||
: mUnit(aUnit)
|
||||
|
|
|
@ -109,11 +109,11 @@ public:
|
|||
|
||||
#ifdef DEBUG
|
||||
virtual void DumpRegressionData(nsIPresContext* aPresContext, FILE* out, PRInt32 aIndent);
|
||||
#endif
|
||||
|
||||
virtual void List(FILE* out, PRInt32 aIndent);
|
||||
virtual void List(FILE* out, PRInt32 aIndent);
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
void AppendChild(nsStyleContext* aChild);
|
||||
|
@ -832,6 +832,7 @@ nsStyleContext::CalcStyleDifference(nsIStyleContext* aOther, PRInt32& aHint,PRBo
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void nsStyleContext::List(FILE* out, PRInt32 aIndent)
|
||||
{
|
||||
// Indent
|
||||
|
@ -925,7 +926,6 @@ void nsStyleContext::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static void IndentBy(FILE* out, PRInt32 aIndent) {
|
||||
while (--aIndent >= 0) fputs(" ", out);
|
||||
}
|
||||
|
|
|
@ -225,9 +225,11 @@ public:
|
|||
NS_IMETHOD SetStyleRuleSupplier(nsIStyleRuleSupplier* aSupplier);
|
||||
NS_IMETHOD GetStyleRuleSupplier(nsIStyleRuleSupplier** aSupplier);
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0);
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
virtual void ResetUniqueStyleItems(void);
|
||||
|
||||
void AddImportantRules(nsIRuleNode* aRuleNode);
|
||||
|
@ -268,8 +270,10 @@ protected:
|
|||
nsIStyleContext* aParentContext,
|
||||
nsIAtom* aPseudoTag,
|
||||
PRBool aForceUnique);
|
||||
#ifdef DEBUG
|
||||
void List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets);
|
||||
void ListContexts(nsIStyleContext* aRootContext, FILE* out, PRInt32 aIndent);
|
||||
#endif
|
||||
|
||||
nsISupportsArray* mOverrideSheets; // most significant first
|
||||
nsISupportsArray* mDocSheets; // " "
|
||||
|
@ -1323,6 +1327,7 @@ StyleSetImpl::GetInsertionPoint(nsIPresShell* aPresShell,
|
|||
aChildContent, aInsertionPoint);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets)
|
||||
{
|
||||
PRUint32 cnt = 0;
|
||||
|
@ -1338,6 +1343,7 @@ void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets)
|
|||
NS_RELEASE(sheet);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// APIs for registering objects that can supply additional
|
||||
// rules during processing.
|
||||
|
@ -1357,6 +1363,7 @@ StyleSetImpl::GetStyleRuleSupplier(nsIStyleRuleSupplier** aSupplier)
|
|||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
void StyleSetImpl::List(FILE* out, PRInt32 aIndent)
|
||||
{
|
||||
// List(out, aIndent, mOverrideSheets);
|
||||
|
@ -1369,6 +1376,7 @@ void StyleSetImpl::ListContexts(nsIStyleContext* aRootContext, FILE* out, PRInt3
|
|||
{
|
||||
aRootContext->List(out, aIndent);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
NS_LAYOUT nsresult
|
||||
|
@ -1566,6 +1574,7 @@ StyleSetImpl::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/******************************************************************************
|
||||
* SizeOf method:
|
||||
*
|
||||
|
@ -1724,6 +1733,7 @@ void StyleSetImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
// now delegate the sizeof to the larger or more complex aggregated objects
|
||||
// - none
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
StyleSetImpl::WalkRuleProcessors(nsISupportsArrayEnumFunc aFunc, void* aData,
|
||||
|
|
|
@ -70,9 +70,11 @@ public:
|
|||
// nsIContent
|
||||
NS_IMPL_ICONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const {
|
||||
return mInner.SizeOf(aSizer, aResult, sizeof(*this));
|
||||
}
|
||||
#endif
|
||||
|
||||
// nsITextContent
|
||||
NS_IMPL_ITEXTCONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
@ -207,6 +209,7 @@ nsTextNode::CloneContent(PRBool aCloneText, nsITextContent** aReturn)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsTextNode::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -244,6 +247,7 @@ nsTextNode::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const
|
|||
}
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextNode::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
|
|
|
@ -134,7 +134,9 @@ public:
|
|||
|
||||
NS_IMETHOD IndexOfControl(nsIFormControl* aControl, PRInt32* aIndex) = 0;
|
||||
|
||||
#ifdef DEBUG // XXX Does this even need to be here?
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* nsIForm_h___ */
|
||||
|
|
|
@ -154,9 +154,11 @@ public:
|
|||
|
||||
NS_IMETHOD GetAttrCount(PRInt32& aResult) const { aResult = 0; return NS_OK; }
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const { return NS_OK; }
|
||||
NS_IMETHOD DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const { return NS_OK; }
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
|
@ -543,6 +545,7 @@ nsAttributeContent::CloneContent(PRBool aCloneText, nsITextContent** aReturn)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsAttributeContent::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -550,3 +553,4 @@ nsAttributeContent::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
*aResult = sizeof(*this);
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -2203,6 +2203,7 @@ nsGenericHTMLElement::GetBaseTarget(nsAWritableString& aBaseTarget) const
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
nsGenericHTMLElement::ListAttributes(FILE* out) const
|
||||
{
|
||||
|
@ -2316,6 +2317,7 @@ nsGenericHTMLElement::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) co
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
NS_IMETHODIMP_(PRBool)
|
||||
|
@ -2324,19 +2326,19 @@ nsGenericHTMLElement::IsContentOfType(PRUint32 aFlags)
|
|||
return !(aFlags & ~(eELEMENT | eHTML));
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
PRUint32
|
||||
nsGenericHTMLElement::BaseSizeOf(nsISizeOfHandler* aSizer) const
|
||||
{
|
||||
PRUint32 sum = 0;
|
||||
#ifdef DEBUG
|
||||
if (mAttributes) {
|
||||
PRUint32 attrs = 0;
|
||||
mAttributes->SizeOf(aSizer, attrs);
|
||||
sum += attrs;
|
||||
}
|
||||
#endif
|
||||
return sum;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -149,8 +149,10 @@ public:
|
|||
nsIAtom*& aName,
|
||||
nsIAtom*& aPrefix) const;
|
||||
NS_IMETHOD GetAttrCount(PRInt32& aResult) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
NS_IMETHOD DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
|
||||
#endif
|
||||
NS_IMETHOD_(PRBool) IsContentOfType(PRUint32 aFlags);
|
||||
|
||||
nsresult HandleDOMEventForAnchors(nsIContent* aOuter,
|
||||
|
@ -180,9 +182,11 @@ public:
|
|||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
void ListAttributes(FILE* out) const;
|
||||
|
||||
PRUint32 BaseSizeOf(nsISizeOfHandler* aSizer) const;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -117,7 +117,9 @@ public:
|
|||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent, PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsresult RegUnRegAccessKey(PRBool aDoReg);
|
||||
|
@ -467,6 +469,7 @@ nsHTMLAnchorElement::SetTarget(const nsAReadableString& aValue)
|
|||
aValue, PR_TRUE);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLAnchorElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -474,6 +477,7 @@ nsHTMLAnchorElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -87,7 +87,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
PRBool mReflectedApplet;
|
||||
|
@ -254,6 +256,7 @@ nsHTMLAppletElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMap
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLAppletElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -261,3 +264,4 @@ nsHTMLAppletElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -93,7 +93,9 @@ public:
|
|||
nsEventStatus* aEventStatus);
|
||||
NS_IMETHOD SetFocus(nsIPresContext* aPresContext);
|
||||
NS_IMETHOD RemoveFocus(nsIPresContext* aPresContext);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// The cached visited state
|
||||
|
@ -269,6 +271,7 @@ nsHTMLAreaElement::SetHref(const nsAReadableString& aValue)
|
|||
aValue, PR_TRUE);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLAreaElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -276,6 +279,7 @@ nsHTMLAreaElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLAreaElement::GetProtocol(nsAWritableString& aProtocol)
|
||||
|
|
|
@ -78,7 +78,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -236,6 +238,7 @@ nsHTMLBRElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRule
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLBRElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -243,3 +246,4 @@ nsHTMLBRElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLBaseElement
|
||||
NS_DECL_NSIDOMHTMLBASEELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -152,6 +154,7 @@ NS_IMPL_STRING_ATTR(nsHTMLBaseElement, Href, href)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLBaseElement, Target, target)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLBaseElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -159,3 +162,4 @@ nsHTMLBaseElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -70,7 +70,9 @@ public:
|
|||
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -170,6 +172,7 @@ nsHTMLBaseFontElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLBaseFontElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -178,3 +181,4 @@ nsHTMLBaseFontElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -92,9 +92,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
nsHTMLBodyElement* mPart; // not ref-counted, cleared by content
|
||||
nsIHTMLStyleSheet* mSheet; // not ref-counted, cleared by content
|
||||
|
@ -118,9 +120,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
nsHTMLBodyElement* mPart; // not ref-counted, cleared by content
|
||||
nsIHTMLCSSStyleSheet* mSheet; // not ref-counted, cleared by content
|
||||
|
@ -233,7 +237,9 @@ public:
|
|||
NS_IMETHOD WalkInlineStyleRules(nsIRuleWalker* aRuleWalker);
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -408,6 +414,7 @@ BodyRule::MapRuleInfoInto(nsRuleData* aData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
BodyRule::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -452,6 +459,7 @@ void BodyRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
@ -685,6 +693,7 @@ BodyFixupRule::MapRuleInfoInto(nsRuleData* aRuleData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
BodyFixupRule::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -733,6 +742,7 @@ void BodyFixupRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
@ -1090,6 +1100,7 @@ nsHTMLBodyElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 a
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLBodyElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -1097,3 +1108,4 @@ nsHTMLBodyElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -105,7 +105,9 @@ public:
|
|||
nsIDOMEvent** aDOMEvent,
|
||||
PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
PRInt8 mType;
|
||||
|
@ -525,6 +527,7 @@ nsHTMLButtonElement::GetType(PRInt32* aType)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLButtonElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -532,3 +535,4 @@ nsHTMLButtonElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -76,7 +76,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -198,6 +200,7 @@ nsHTMLDListElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapR
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDListElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -205,3 +208,4 @@ nsHTMLDListElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLModElement
|
||||
NS_DECL_NSIDOMHTMLMODELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -152,6 +154,7 @@ NS_IMPL_STRING_ATTR(nsHTMLDelElement, Cite, cite)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLDelElement, DateTime, datetime)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDelElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -159,3 +162,4 @@ nsHTMLDelElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -83,7 +83,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -245,6 +247,7 @@ nsHTMLDirectoryElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& a
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDirectoryElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -252,3 +255,4 @@ nsHTMLDirectoryElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) cons
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -81,7 +81,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -248,6 +250,7 @@ nsHTMLDivElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRul
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDivElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -255,3 +258,4 @@ nsHTMLDivElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -73,7 +73,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -224,6 +226,7 @@ nsHTMLEmbedElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapR
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLEmbedElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -231,6 +234,7 @@ nsHTMLEmbedElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////
|
||||
// Implement nsIDOMHTMLEmbedElement interface
|
||||
|
|
|
@ -75,7 +75,9 @@ public:
|
|||
// nsIFormControl
|
||||
NS_IMETHOD GetType(PRInt32* aType);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
// construction, destruction
|
||||
|
@ -183,6 +185,7 @@ nsHTMLFieldSetElement::GetType(PRInt32* aType)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFieldSetElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -191,3 +194,4 @@ nsHTMLFieldSetElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -82,7 +82,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -335,6 +337,7 @@ nsHTMLFontElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRu
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFontElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -342,3 +345,4 @@ nsHTMLFontElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -108,7 +108,9 @@ public:
|
|||
NS_IMETHOD ResolveName(const nsAReadableString& aName,
|
||||
nsISupports **aReturn);
|
||||
NS_IMETHOD IndexOfControl(nsIFormControl* aControl, PRInt32* aIndex);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
// nsIContent
|
||||
NS_IMETHOD StringToAttribute(nsIAtom* aAttribute,
|
||||
|
@ -985,7 +987,6 @@ nsFormControlList::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
*aResult = sizeof(*this) - sizeof(mElements) + asize;
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFormElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
|
@ -994,3 +995,4 @@ nsHTMLFormElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -92,7 +92,9 @@ public:
|
|||
NS_IMETHOD AttributeToString(nsIAtom* aAttribute,
|
||||
const nsHTMLValue& aValue,
|
||||
nsAWritableString& aResult) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -303,6 +305,7 @@ nsHTMLFrameElement::AttributeToString(nsIAtom* aAttribute,
|
|||
aResult);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFrameElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -310,6 +313,7 @@ nsHTMLFrameElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
|
|
|
@ -76,7 +76,9 @@ public:
|
|||
nsAWritableString& aResult) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -212,6 +214,7 @@ nsHTMLFrameSetElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFrameSetElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -220,3 +223,4 @@ nsHTMLFrameSetElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -78,7 +78,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -299,6 +301,7 @@ nsHTMLHRElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRule
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLHRElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -306,3 +309,4 @@ nsHTMLHRElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLHeadElement
|
||||
NS_DECL_NSIDOMHTMLHEADELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -151,6 +153,7 @@ nsHTMLHeadElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLHeadElement, Profile, profile)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLHeadElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -158,3 +161,4 @@ nsHTMLHeadElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -78,7 +78,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -232,6 +234,7 @@ nsHTMLHeadingElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMa
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLHeadingElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -239,3 +242,4 @@ nsHTMLHeadingElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -69,7 +69,9 @@ public:
|
|||
// nsIDOMHTMLHtmlElement
|
||||
NS_DECL_NSIDOMHTMLHTMLELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
@ -154,6 +156,7 @@ nsHTMLHtmlElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLHtmlElement, Version, version)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLHtmlElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -161,3 +164,4 @@ nsHTMLHtmlElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -98,7 +98,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -404,6 +406,7 @@ nsHTMLIFrameElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMap
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLIFrameElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -411,6 +414,7 @@ nsHTMLIFrameElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
|
|
|
@ -132,7 +132,9 @@ public:
|
|||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent, PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsresult SetSrcInner(nsIURI* aBaseURL, const nsAReadableString& aSrc);
|
||||
|
@ -974,6 +976,7 @@ nsHTMLImageElement::SetSrc(const nsAReadableString& aSrc)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLImageElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -981,6 +984,7 @@ nsHTMLImageElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLImageElement::GetNaturalHeight(PRInt32* aNaturalHeight)
|
||||
|
|
|
@ -217,7 +217,9 @@ public:
|
|||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent, PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// Helper method
|
||||
|
@ -1482,6 +1484,7 @@ nsHTMLInputElement::GetType(PRInt32* aType)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLInputElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -1489,6 +1492,7 @@ nsHTMLInputElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
// Controllers Methods
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLModElement
|
||||
NS_DECL_NSIDOMHTMLMODELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -152,6 +154,7 @@ NS_IMPL_STRING_ATTR(nsHTMLInsElement, Cite, cite)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLInsElement, DateTime, datetime)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLInsElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -159,3 +162,4 @@ nsHTMLInsElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -69,7 +69,9 @@ public:
|
|||
NS_DECL_NSIDOMHTMLISINDEXELEMENT
|
||||
|
||||
NS_IMETHOD_(PRBool) IsContentOfType(PRUint32 aFlags);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -164,6 +166,7 @@ nsHTMLIsIndexElement::IsContentOfType(PRUint32 aFlags)
|
|||
return !(aFlags & ~(eELEMENT | eHTML | eHTML_FORM_CONTROL));
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLIsIndexElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -171,3 +174,4 @@ nsHTMLIsIndexElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -78,7 +78,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -259,6 +261,7 @@ nsHTMLLIElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRule
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLLIElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -266,3 +269,4 @@ nsHTMLLIElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -175,7 +175,9 @@ public:
|
|||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent, PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
// construction, destruction
|
||||
|
@ -421,6 +423,7 @@ nsHTMLLabelElement::HandleDOMEvent(nsIPresContext* aPresContext,
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLLabelElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -428,3 +431,4 @@ nsHTMLLabelElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -81,7 +81,9 @@ public:
|
|||
NS_IMETHOD AttributeToString(nsIAtom* aAttribute,
|
||||
const nsHTMLValue& aValue,
|
||||
nsAWritableString& aResult) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -227,6 +229,7 @@ nsHTMLLegendElement::AttributeToString(nsIAtom* aAttribute,
|
|||
aValue, aResult);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLLegendElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -234,3 +237,4 @@ nsHTMLLegendElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -135,7 +135,9 @@ public:
|
|||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent, PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual void GetStyleSheetInfo(nsAWritableString& aUrl,
|
||||
|
@ -310,6 +312,7 @@ nsHTMLLinkElement::HandleDOMEvent(nsIPresContext* aPresContext,
|
|||
aFlags, aEventStatus);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLLinkElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -317,6 +320,7 @@ nsHTMLLinkElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLLinkElement::GetLinkState(nsLinkState &aState)
|
||||
|
|
|
@ -76,7 +76,9 @@ public:
|
|||
PRInt32& aHint) const;
|
||||
NS_IMETHOD SetDocument(nsIDocument* aDocument, PRBool aDeep,
|
||||
PRBool aCompileEventHandlers);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
GenericElementCollection* mAreas;
|
||||
|
@ -225,6 +227,7 @@ nsHTMLMapElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aM
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLMapElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -232,3 +235,4 @@ nsHTMLMapElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -84,7 +84,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -242,6 +244,7 @@ nsHTMLMenuElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRu
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLMenuElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -249,3 +252,4 @@ nsHTMLMenuElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLMetaElement
|
||||
NS_DECL_NSIDOMHTMLMETAELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -155,6 +157,7 @@ NS_IMPL_STRING_ATTR(nsHTMLMetaElement, Name, name)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLMetaElement, Scheme, scheme)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLMetaElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -162,3 +165,4 @@ nsHTMLMetaElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLModElement
|
||||
NS_DECL_NSIDOMHTMLMODELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -152,6 +154,7 @@ NS_IMPL_STRING_ATTR(nsHTMLModElement, Cite, cite)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLModElement, DateTime, datetime)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLModElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -159,3 +162,4 @@ nsHTMLModElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -78,7 +78,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -279,6 +281,7 @@ nsHTMLOListElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapR
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLOListElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -286,3 +289,4 @@ nsHTMLOListElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -73,7 +73,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -267,6 +269,7 @@ nsHTMLObjectElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMap
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLObjectElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -274,4 +277,4 @@ nsHTMLObjectElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -74,7 +74,9 @@ public:
|
|||
NS_IMETHOD HandleDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent, PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -196,6 +198,7 @@ nsHTMLOptGroupElement::HandleDOMEvent(nsIPresContext* aPresContext,
|
|||
aEventStatus);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLOptGroupElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -204,3 +207,4 @@ nsHTMLOptGroupElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -101,7 +101,9 @@ public:
|
|||
nsHTMLValue& aResult);
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// Get the primary frame associated with this content
|
||||
|
@ -767,6 +769,7 @@ nsHTMLOptionElement::Initialize(JSContext* aContext,
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLOptionElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -774,3 +777,4 @@ nsHTMLOptionElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -81,7 +81,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -234,6 +236,7 @@ nsHTMLParagraphElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& a
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLParagraphElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -242,3 +245,4 @@ nsHTMLParagraphElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLParamElement
|
||||
NS_DECL_NSIDOMHTMLPARAMELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -154,6 +156,7 @@ NS_IMPL_STRING_ATTR(nsHTMLParamElement, Value, value)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLParamElement, ValueType, valuetype)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLParamElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -161,3 +164,4 @@ nsHTMLParamElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -80,7 +80,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -281,6 +283,7 @@ nsHTMLPreElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRul
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLPreElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -288,3 +291,4 @@ nsHTMLPreElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,9 @@ public:
|
|||
// nsIDOMHTMLQuoteElement
|
||||
NS_DECL_NSIDOMHTMLQUOTEELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -150,6 +152,7 @@ nsHTMLQuoteElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLQuoteElement, Cite, cite)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLQuoteElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -157,3 +160,4 @@ nsHTMLQuoteElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -85,7 +85,9 @@ public:
|
|||
NS_IMETHOD SetDocument(nsIDocument* aDocument, PRBool aDeep,
|
||||
PRBool aCompileEventHandlers);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
PRUint32 mLineNumber;
|
||||
|
@ -288,6 +290,7 @@ NS_IMPL_STRING_ATTR(nsHTMLScriptElement, Src, src)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLScriptElement, Type, type)
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLScriptElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -295,6 +298,7 @@ nsHTMLScriptElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* void scriptAvailable (in nsresult aResult, in nsIDOMHTMLScriptElement aElement, in nsIURI aURI, in PRInt32 aLineNo, in PRUint32 aScriptLength, [size_is (aScriptLength)] in wstring aScript); */
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -155,7 +155,9 @@ public:
|
|||
PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
NS_IMETHOD SetFocus(nsIPresContext* aPresContext);
|
||||
NS_IMETHOD RemoveFocus(nsIPresContext* aPresContext);
|
||||
|
||||
|
@ -1845,6 +1847,7 @@ nsHTMLOptionCollection::Clear()
|
|||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLSelectElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -1852,3 +1855,4 @@ nsHTMLSelectElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -73,7 +73,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -267,6 +269,7 @@ nsHTMLObjectElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMap
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLObjectElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -274,4 +277,4 @@ nsHTMLObjectElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -90,7 +90,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -317,6 +319,7 @@ nsHTMLSpacerElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMap
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLSpacerElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -324,3 +327,4 @@ nsHTMLSpacerElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -64,7 +64,9 @@ public:
|
|||
// nsIDOMHTMLElement
|
||||
NS_FORWARD_NSIDOMHTMLELEMENT(nsGenericHTMLContainerElement::)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -142,6 +144,7 @@ nsHTMLSpanElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLSpanElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -149,3 +152,4 @@ nsHTMLSpanElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -124,7 +124,9 @@ public:
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual void GetStyleSheetInfo(nsAWritableString& aUrl,
|
||||
|
@ -254,6 +256,7 @@ nsHTMLStyleElement::SetDisabled(PRBool aDisabled)
|
|||
NS_IMPL_STRING_ATTR(nsHTMLStyleElement, Media, media)
|
||||
NS_IMPL_STRING_ATTR(nsHTMLStyleElement, Type, type)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLStyleElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -261,6 +264,7 @@ nsHTMLStyleElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
nsresult
|
||||
nsHTMLStyleElement::GetHrefCString(char* &aBuf)
|
||||
|
|
|
@ -78,7 +78,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -237,6 +239,7 @@ nsHTMLTableCaptionElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableCaptionElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -245,3 +248,4 @@ nsHTMLTableCaptionElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -87,7 +87,9 @@ public:
|
|||
NS_IMETHOD WalkContentStyleRules(nsIRuleWalker* aRuleWalker);
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// This does not retunr a nsresult since all we care about is if we
|
||||
|
@ -513,6 +515,7 @@ nsHTMLTableCellElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& a
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableCellElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -521,3 +524,4 @@ nsHTMLTableCellElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -83,7 +83,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -346,6 +348,7 @@ NS_METHOD nsHTMLTableColElement::GetSpanValue(PRInt32* aSpan)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableColElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -354,3 +357,4 @@ nsHTMLTableColElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -79,7 +79,9 @@ public:
|
|||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -318,6 +320,7 @@ nsHTMLTableColGroupElement::GetAttributeMappingFunction(nsMapRuleToAttributesFun
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableColGroupElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -326,3 +329,4 @@ nsHTMLTableColGroupElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -92,7 +92,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
GenericElementCollection *mTBodies;
|
||||
|
@ -1510,6 +1512,7 @@ nsHTMLTableElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapR
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -1517,3 +1520,4 @@ nsHTMLTableElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -189,7 +189,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsresult GetSection(nsIDOMHTMLTableSectionElement** aSection);
|
||||
|
@ -653,6 +655,7 @@ nsHTMLTableRowElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aM
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableRowElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -661,3 +664,4 @@ nsHTMLTableRowElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -82,7 +82,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
GenericElementCollection *mRows;
|
||||
|
@ -398,6 +400,7 @@ nsHTMLTableSectionElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTableSectionElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -406,3 +409,4 @@ nsHTMLTableSectionElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -110,7 +110,9 @@ public:
|
|||
nsEventStatus* aEventStatus);
|
||||
NS_IMETHOD SetFocus(nsIPresContext* aPresContext);
|
||||
NS_IMETHOD RemoveFocus(nsIPresContext* aPresContext);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsCOMPtr<nsIControllers> mControllers;
|
||||
|
@ -631,6 +633,7 @@ nsHTMLTextAreaElement::GetType(PRInt32* aType)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTextAreaElement::SizeOf(nsISizeOfHandler* aSizer,
|
||||
PRUint32* aResult) const
|
||||
|
@ -639,6 +642,7 @@ nsHTMLTextAreaElement::SizeOf(nsISizeOfHandler* aSizer,
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
// Controllers Methods
|
||||
|
|
|
@ -71,7 +71,9 @@ public:
|
|||
// nsIDOMHTMLTitleElement
|
||||
NS_DECL_NSIDOMHTMLTITLEELEMENT
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -199,6 +201,7 @@ nsHTMLTitleElement::SetText(const nsAReadableString& aTitle)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLTitleElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -206,3 +209,4 @@ nsHTMLTitleElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -81,7 +81,9 @@ public:
|
|||
NS_IMETHOD GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapRuleFunc) const;
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,
|
||||
PRInt32& aHint) const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -260,6 +262,7 @@ nsHTMLUListElement::GetAttributeMappingFunction(nsMapRuleToAttributesFunc& aMapR
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLUListElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -267,3 +270,4 @@ nsHTMLUListElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -74,7 +74,9 @@ public:
|
|||
|
||||
NS_IMETHOD SetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName,
|
||||
const nsAReadableString& aValue, PRBool aNotify);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -303,6 +305,7 @@ nsHTMLUnknownElement::SetAttribute(PRInt32 aNameSpaceID,
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLUnknownElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -310,3 +313,4 @@ nsHTMLUnknownElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -65,7 +65,9 @@ public:
|
|||
// nsIDOMHTMLElement
|
||||
NS_FORWARD_NSIDOMHTMLELEMENT(nsGenericHTMLLeafElement::)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
@ -144,6 +146,7 @@ nsHTMLWBRElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLWBRElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -151,3 +154,4 @@ nsHTMLWBRElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -203,8 +203,10 @@ class HTMLContentSink : public nsIHTMLContentSink,
|
|||
public nsIScriptLoaderObserver,
|
||||
public nsITimerCallback,
|
||||
public nsICSSLoaderObserver,
|
||||
public nsIDocumentObserver,
|
||||
public nsIDebugDumpContent
|
||||
public nsIDocumentObserver
|
||||
#ifdef DEBUG
|
||||
,public nsIDebugDumpContent
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
HTMLContentSink();
|
||||
|
@ -328,8 +330,10 @@ public:
|
|||
nsIStyleRule* aStyleRule) { return NS_OK; }
|
||||
NS_IMETHOD DocumentWillBeDestroyed(nsIDocument *aDocument) { return NS_OK; }
|
||||
|
||||
#ifdef DEBUG
|
||||
// nsIDebugDumpContent
|
||||
NS_IMETHOD DumpContentModel();
|
||||
#endif
|
||||
|
||||
PRBool IsTimeToNotify();
|
||||
PRBool IsInScript();
|
||||
|
@ -2414,6 +2418,7 @@ HTMLContentSink::~HTMLContentSink()
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMPL_ISUPPORTS7(HTMLContentSink,
|
||||
nsIHTMLContentSink,
|
||||
nsIContentSink,
|
||||
|
@ -2422,6 +2427,15 @@ NS_IMPL_ISUPPORTS7(HTMLContentSink,
|
|||
nsICSSLoaderObserver,
|
||||
nsIDocumentObserver,
|
||||
nsIDebugDumpContent)
|
||||
#else
|
||||
NS_IMPL_ISUPPORTS6(HTMLContentSink,
|
||||
nsIHTMLContentSink,
|
||||
nsIContentSink,
|
||||
nsIScriptLoaderObserver,
|
||||
nsITimerCallback,
|
||||
nsICSSLoaderObserver,
|
||||
nsIDocumentObserver)
|
||||
#endif
|
||||
|
||||
static PRBool
|
||||
IsScriptEnabled(nsIDocument *aDoc, nsIWebShell *aContainer)
|
||||
|
@ -5278,6 +5292,7 @@ HTMLContentSink::DoFragment(PRBool aFlag)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/**
|
||||
* This will dump content model into the output file.
|
||||
*
|
||||
|
@ -5311,6 +5326,7 @@ HTMLContentSink::DumpContentModel()
|
|||
}
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
// If the content sink can interrupt the parser (@see mCanInteruptParsing)
|
||||
// then it needs to schedule a dummy parser request to delay the document
|
||||
|
|
|
@ -1075,9 +1075,11 @@ public:
|
|||
|
||||
NS_IMETHOD Clone(nsICSSDeclaration*& aClone) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
NS_IMETHOD Count(PRUint32* aCount);
|
||||
NS_IMETHOD GetNthProperty(PRUint32 aIndex, nsAWritableString& aReturn);
|
||||
|
@ -4674,6 +4676,7 @@ CSSDeclarationImpl::ToString(nsAWritableString& aString)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void CSSDeclarationImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
for (PRInt32 index = aIndent; --index >= 0; ) fputs(" ", out);
|
||||
|
@ -4804,6 +4807,7 @@ void CSSDeclarationImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSiz
|
|||
}
|
||||
aSizeOfHandler->AddSize(tag, aSize);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSDeclarationImpl::Count(PRUint32* aCount)
|
||||
|
|
|
@ -186,9 +186,11 @@ public:
|
|||
DECL_STYLE_RULE_INHERIT
|
||||
|
||||
// nsIStyleRule methods
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// nsICSSRule methods
|
||||
NS_IMETHOD GetType(PRInt32& aType) const;
|
||||
|
@ -242,6 +244,7 @@ CSSCharsetRuleImpl::Init(const nsString& aEncoding)
|
|||
|
||||
IMPL_STYLE_RULE_INHERIT(CSSCharsetRuleImpl, nsCSSRule);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSCharsetRuleImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -291,6 +294,7 @@ void CSSCharsetRuleImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSiz
|
|||
aSize -= sizeof(mEncoding); // counted in sizeof(*this) and nsString->SizeOf()
|
||||
aSizeOfHandler->AddSize(tag,aSize);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSCharsetRuleImpl::GetType(PRInt32& aType) const
|
||||
|
@ -398,9 +402,11 @@ public:
|
|||
DECL_STYLE_RULE_INHERIT
|
||||
|
||||
// nsIStyleRule methods
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// nsICSSRule methods
|
||||
NS_IMETHOD GetType(PRInt32& aType) const;
|
||||
|
@ -470,6 +476,7 @@ NS_INTERFACE_MAP_END
|
|||
|
||||
IMPL_STYLE_RULE_INHERIT(CSSImportRuleImpl, nsCSSRule);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSImportRuleImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -526,6 +533,7 @@ void CSSImportRuleImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize
|
|||
aSizeOfHandler->AddSize(tag,aSize);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSImportRuleImpl::GetType(PRInt32& aType) const
|
||||
|
@ -719,9 +727,11 @@ public:
|
|||
DECL_STYLE_RULE_INHERIT
|
||||
|
||||
// nsIStyleRule methods
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// nsICSSRule methods
|
||||
NS_IMETHOD GetType(PRInt32& aType) const;
|
||||
|
@ -860,6 +870,7 @@ CSSMediaRuleImpl::SetStyleSheet(nsICSSStyleSheet* aSheet)
|
|||
return nsCSSRule::SetStyleSheet(aSheet);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSMediaRuleImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -955,6 +966,7 @@ void CSSMediaRuleImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSMediaRuleImpl::GetType(PRInt32& aType) const
|
||||
|
@ -1257,9 +1269,11 @@ public:
|
|||
DECL_STYLE_RULE_INHERIT
|
||||
|
||||
// nsIStyleRule methods
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// nsICSSRule methods
|
||||
NS_IMETHOD GetType(PRInt32& aType) const;
|
||||
|
@ -1315,6 +1329,7 @@ NS_INTERFACE_MAP_END
|
|||
|
||||
IMPL_STYLE_RULE_INHERIT(CSSNameSpaceRuleImpl, nsCSSRule);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSNameSpaceRuleImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -1379,6 +1394,7 @@ void CSSNameSpaceRuleImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aS
|
|||
}
|
||||
aSizeOfHandler->AddSize(tag, aSize);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSNameSpaceRuleImpl::GetType(PRInt32& aType) const
|
||||
|
|
|
@ -1075,9 +1075,11 @@ public:
|
|||
|
||||
NS_IMETHOD Clone(nsICSSDeclaration*& aClone) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
NS_IMETHOD Count(PRUint32* aCount);
|
||||
NS_IMETHOD GetNthProperty(PRUint32 aIndex, nsAWritableString& aReturn);
|
||||
|
@ -4674,6 +4676,7 @@ CSSDeclarationImpl::ToString(nsAWritableString& aString)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void CSSDeclarationImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
for (PRInt32 index = aIndent; --index >= 0; ) fputs(" ", out);
|
||||
|
@ -4804,6 +4807,7 @@ void CSSDeclarationImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSiz
|
|||
}
|
||||
aSizeOfHandler->AddSize(tag, aSize);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSDeclarationImpl::Count(PRUint32* aCount)
|
||||
|
|
|
@ -255,6 +255,7 @@ PRBool nsAttrSelector::Equals(const nsAttrSelector* aOther) const
|
|||
return PR_FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/******************************************************************************
|
||||
* SizeOf method:
|
||||
*
|
||||
|
@ -298,6 +299,7 @@ void nsAttrSelector::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mNext->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(nsCSSSelector)
|
||||
|
||||
|
@ -571,6 +573,7 @@ PRInt32 nsCSSSelector::CalcWeight(void) const
|
|||
return weight;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/******************************************************************************
|
||||
* SizeOf method:
|
||||
*
|
||||
|
@ -676,6 +679,7 @@ void nsCSSSelector::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mNext->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// pseudo-elements are stored in the selectors' chain using fictional elements;
|
||||
// these fictional elements have mTag starting with a colon
|
||||
|
@ -855,13 +859,6 @@ nsresult nsCSSSelector::ToString( nsAWritableString& aString, nsICSSStyleSheet*
|
|||
|
||||
// -- CSSImportantRule -------------------------------
|
||||
|
||||
static nscoord CalcLength(const nsCSSValue& aValue, const nsFont& aFont,
|
||||
nsIPresContext* aPresContext);
|
||||
static PRBool SetCoord(const nsCSSValue& aValue, nsStyleCoord& aCoord,
|
||||
const nsStyleCoord& aParentCoord,
|
||||
PRInt32 aMask, const nsFont& aFont,
|
||||
nsIPresContext* aPresContext);
|
||||
|
||||
// New map helpers shared by both important and regular rules.
|
||||
static nsresult MapFontForDeclaration(nsICSSDeclaration* aDecl, nsCSSFont& aFont);
|
||||
static nsresult MapDisplayForDeclaration(nsICSSDeclaration* aDecl, const nsStyleStructID& aID, nsCSSDisplay& aDisplay);
|
||||
|
@ -897,9 +894,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual ~CSSImportantRule(void);
|
||||
|
@ -991,6 +990,7 @@ CSSImportantRule::MapRuleInfoInto(nsRuleData* aRuleData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSImportantRule::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -1050,6 +1050,7 @@ void CSSImportantRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mSheet->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// -- nsDOMStyleRuleDeclaration -------------------------------
|
||||
|
||||
|
@ -1354,9 +1355,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// nsIDOMCSSRule interface
|
||||
NS_DECL_NSIDOMCSSRULE
|
||||
|
@ -2263,6 +2266,7 @@ MapUIForDeclaration(nsICSSDeclaration* aDecl, const nsStyleStructID& aID, nsCSSU
|
|||
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSStyleRuleImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -2339,6 +2343,7 @@ void CSSStyleRuleImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mImportantRule->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSStyleRuleImpl::GetType(PRUint16* aType)
|
||||
|
|
|
@ -731,7 +731,9 @@ public:
|
|||
nsIAtom* aMedium,
|
||||
nsIContent* aContent);
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
RuleCascadeData* GetRuleCascade(nsIPresContext* aPresContext, nsIAtom* aMedium);
|
||||
|
@ -759,7 +761,9 @@ public:
|
|||
|
||||
virtual void RebuildNameSpaces(void);
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
nsAutoVoidArray mSheets;
|
||||
|
||||
|
@ -857,9 +861,11 @@ public:
|
|||
|
||||
nsresult EnsureUniqueInner(void);
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// nsIDOMStyleSheet interface
|
||||
NS_DECL_NSIDOMSTYLESHEET
|
||||
|
@ -1606,6 +1612,7 @@ CSSStyleSheetInner::RebuildNameSpaces(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/******************************************************************************
|
||||
* SizeOf method:
|
||||
*
|
||||
|
@ -1679,6 +1686,7 @@ void CSSStyleSheetInner::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSiz
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
// -------------------------------
|
||||
|
@ -2430,6 +2438,7 @@ CSSStyleSheetImpl::Clone(nsICSSStyleSheet*& aClone) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static void
|
||||
ListRules(nsISupportsArray* aRules, FILE* aOut, PRInt32 aIndent)
|
||||
{
|
||||
|
@ -2573,6 +2582,7 @@ void CSSStyleSheetImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize
|
|||
mFirstChild->SizeOf(aSizeOfHandler, childSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static PRBool PR_CALLBACK
|
||||
EnumClearRuleCascades(void* aProcessor, void* aData)
|
||||
|
@ -4113,7 +4123,7 @@ CSSRuleProcessor::HasStateDependentStyle(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
|
||||
// XXXldb WHY IS THIS NOT |#ifdef DEBUG| ???????
|
||||
#ifdef DEBUG
|
||||
|
||||
struct CascadeSizeEnumData {
|
||||
|
||||
|
@ -4259,6 +4269,7 @@ void CSSRuleProcessor::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
// now add the size of the RuleProcessor
|
||||
aSizeOfHandler->AddSize(tag,aSize);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
CSSRuleProcessor::ClearRuleCascades(void)
|
||||
|
|
|
@ -236,6 +236,7 @@ struct HTMLAttribute {
|
|||
return PR_FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
nsresult SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const {
|
||||
if (!aResult) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
@ -243,6 +244,7 @@ struct HTMLAttribute {
|
|||
*aResult = sizeof(*this);
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
nsIAtom* mAttribute;
|
||||
nsHTMLValue mValue;
|
||||
|
@ -338,9 +340,11 @@ public:
|
|||
// The new mapping functions.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
|
||||
void SizeOf(nsISizeOfHandler* aSizer, PRUint32 &aResult);
|
||||
#endif
|
||||
|
||||
nsIHTMLStyleSheet* mSheet;
|
||||
PRInt32 mUseCount;
|
||||
|
@ -755,6 +759,7 @@ nsHTMLMappedAttributes::MapRuleInfoInto(nsRuleData* aRuleData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsHTMLMappedAttributes::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -798,6 +803,7 @@ void nsHTMLMappedAttributes::SizeOf(nsISizeOfHandler* aSizer, PRUint32 &aResult)
|
|||
aResult = sizeof(*this);
|
||||
aSizer->AddSize(tag, aResult);
|
||||
}
|
||||
#endif
|
||||
|
||||
//--------------------
|
||||
|
||||
|
@ -859,9 +865,11 @@ public:
|
|||
#endif
|
||||
NS_IMETHOD Reset(void);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
void SizeOf(nsISizeOfHandler* aSizer, PRUint32 &aResult);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual nsresult SetAttributeName(nsIAtom* aAttrName, PRBool& aFound);
|
||||
|
@ -1502,6 +1510,7 @@ HTMLAttributesImpl::Reset(void)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
HTMLAttributesImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -1564,6 +1573,7 @@ void HTMLAttributesImpl::SizeOf(nsISizeOfHandler* aSizer, PRUint32 &aResult)
|
|||
tag = getter_AddRefs(NS_NewAtom("HTMLAttributesImpl"));
|
||||
aSizer->AddSize(tag, aResult);
|
||||
}
|
||||
#endif
|
||||
|
||||
extern NS_HTML nsresult
|
||||
NS_NewHTMLAttributes(nsIHTMLAttributes** aInstancePtrResult)
|
||||
|
|
|
@ -76,9 +76,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
nsIHTMLCSSStyleSheet* mSheet;
|
||||
};
|
||||
|
@ -147,6 +149,7 @@ CSSFirstLineRule::MapRuleInfoInto(nsRuleData* aData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
CSSFirstLineRule::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -190,6 +193,7 @@ void CSSFirstLineRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mSheet->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------
|
||||
|
||||
|
@ -260,9 +264,11 @@ public:
|
|||
|
||||
// XXX style rule enumerations
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// If changing the given attribute cannot affect style context, aAffects
|
||||
// will be PR_FALSE on return.
|
||||
|
@ -576,6 +582,7 @@ HTMLCSSStyleSheetImpl::SetOwningDocument(nsIDocument* aDocument)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void HTMLCSSStyleSheetImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
// Indent
|
||||
|
@ -641,6 +648,7 @@ void HTMLCSSStyleSheetImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &a
|
|||
aSizeOfHandler->AddSize(tag,localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLCSSStyleSheetImpl::AttributeAffectsStyle(nsIAtom *aAttribute,
|
||||
|
|
|
@ -84,9 +84,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
nscolor mColor;
|
||||
nsIHTMLStyleSheet* mSheet;
|
||||
|
@ -99,7 +101,9 @@ public:
|
|||
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
void Reset() {
|
||||
mForegroundSet = PR_FALSE;
|
||||
|
@ -163,6 +167,7 @@ HTMLColorRule::MapRuleInfoInto(nsRuleData* aRuleData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
HTMLColorRule::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -206,6 +211,7 @@ void HTMLColorRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mSheet->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
HTMLDocumentColorRule::HTMLDocumentColorRule(nsIHTMLStyleSheet* aSheet)
|
||||
: HTMLColorRule(aSheet)
|
||||
|
@ -231,6 +237,7 @@ HTMLDocumentColorRule::MapRuleInfoInto(nsRuleData* aRuleData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/******************************************************************************
|
||||
* SizeOf method:
|
||||
*
|
||||
|
@ -268,6 +275,7 @@ void HTMLDocumentColorRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &a
|
|||
mSheet->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
class GenericTableRule: public nsIStyleRule {
|
||||
public:
|
||||
|
@ -286,9 +294,11 @@ public:
|
|||
// The new mapping function.
|
||||
NS_IMETHOD MapRuleInfoInto(nsRuleData* aRuleData);
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
void Reset()
|
||||
{
|
||||
|
@ -346,6 +356,7 @@ GenericTableRule::MapRuleInfoInto(nsRuleData* aRuleData)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
GenericTableRule::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -389,6 +400,7 @@ void GenericTableRule::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize)
|
|||
mSheet->SizeOf(aSizeOfHandler, localSize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------
|
||||
// this rule handles <th> inheritance
|
||||
|
@ -603,9 +615,11 @@ public:
|
|||
nsIHTMLMappedAttributes*& aUniqueMapped);
|
||||
NS_IMETHOD DropMappedAttributes(nsIHTMLMappedAttributes* aMapped);
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeofHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
// If changing the given attribute cannot affect style context, aAffects
|
||||
// will be PR_FALSE on return.
|
||||
|
@ -1250,6 +1264,7 @@ HTMLStyleSheetImpl::DropMappedAttributes(nsIHTMLMappedAttributes* aMapped)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void HTMLStyleSheetImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
// Indent
|
||||
|
@ -1392,6 +1407,7 @@ void HTMLStyleSheetImpl::SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSiz
|
|||
|
||||
// that's it
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLStyleSheetImpl::AttributeAffectsStyle(nsIAtom *aAttribute,
|
||||
|
|
|
@ -465,9 +465,11 @@ public:
|
|||
|
||||
NS_IMETHOD Clone(nsICSSDeclaration*& aClone) const = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize) = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
extern NS_HTML nsresult
|
||||
|
|
|
@ -80,7 +80,9 @@ public:
|
|||
~nsAttrSelector(void);
|
||||
PRBool Equals(const nsAttrSelector* aOther) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
|
||||
PRInt32 mNameSpace;
|
||||
nsIAtom* mAttr;
|
||||
|
@ -118,7 +120,9 @@ public:
|
|||
|
||||
PRInt32 CalcWeight(void) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
void SizeOf(nsISizeOfHandler *aSizeOfHandler, PRUint32 &aSize);
|
||||
#endif
|
||||
nsresult ToString( nsAWritableString& aString, nsICSSStyleSheet* aSheet,
|
||||
PRBool aIsPseudoElem, PRInt8 aNegatedIndex ) const;
|
||||
|
||||
|
|
|
@ -108,9 +108,11 @@ public:
|
|||
NS_IMETHOD Reset(void) = 0;
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const = 0;
|
||||
|
||||
virtual void SizeOf(nsISizeOfHandler* aSizer, PRUint32 &aResult) = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
class nsIHTMLMappedAttributes : public nsISupports {
|
||||
|
@ -129,7 +131,9 @@ public:
|
|||
NS_IMETHOD GetUniqued(PRBool& aUniqued) = 0;
|
||||
NS_IMETHOD DropStyleSheetReference(void) = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void SizeOf(nsISizeOfHandler* aSizer, PRUint32 &aResult) = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
extern NS_HTML nsresult
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#include "nsReadableUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
|
||||
nsHTMLValue::nsHTMLValue(nsHTMLUnit aUnit)
|
||||
: mUnit(aUnit)
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIStyleSet.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
#include "prenv.h"
|
||||
|
|
|
@ -71,9 +71,11 @@ public:
|
|||
// nsIContent
|
||||
NS_IMPL_ICONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const {
|
||||
return mInner.SizeOf(aSizer, aResult, sizeof(*this));
|
||||
}
|
||||
#endif
|
||||
|
||||
// nsITextContent
|
||||
NS_IMPL_ITEXTCONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
@ -209,6 +211,7 @@ nsXMLCDATASection::CloneContent(PRBool aCloneText, nsITextContent** aReturn)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsXMLCDATASection::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -231,6 +234,7 @@ NS_IMETHODIMP
|
|||
nsXMLCDATASection::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const {
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLCDATASection::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
|
|
|
@ -707,6 +707,7 @@ nsXMLElement::GetID(nsIAtom*& aResult) const
|
|||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsXMLElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
|
@ -714,11 +715,7 @@ nsXMLElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
*aResult = sizeof(*this);
|
||||
#else
|
||||
*aResult = 0;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -89,7 +89,9 @@ public:
|
|||
nsIDOMEvent** aDOMEvent,
|
||||
PRUint32 aFlags,
|
||||
nsEventStatus* aEventStatus);
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
PRBool mIsLink;
|
||||
|
|
|
@ -71,7 +71,9 @@ public:
|
|||
// nsIContent
|
||||
NS_IMPL_ICONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// XXX Processing instructions are currently implemented by using
|
||||
|
@ -199,6 +201,7 @@ nsXMLEntity::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
return it->QueryInterface(NS_GET_IID(nsIDOMNode), (void**) aReturn);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsXMLEntity::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -238,6 +241,7 @@ nsXMLEntity::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const
|
|||
{
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLEntity::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
|
@ -271,11 +275,11 @@ nsXMLEntity::IsContentOfType(PRUint32 aFlags)
|
|||
return PR_FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsXMLEntity::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
#ifdef DEBUG
|
||||
PRUint32 sum;
|
||||
mInner.SizeOf(aSizer, &sum, sizeof(*this));
|
||||
PRUint32 ssize;
|
||||
|
@ -287,6 +291,6 @@ nsXMLEntity::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
sum = sum - sizeof(mSystemId) + ssize;
|
||||
mNotationName.SizeOf(aSizer, &ssize);
|
||||
sum = sum - sizeof(mNotationName) + ssize;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -69,7 +69,9 @@ public:
|
|||
// nsIContent
|
||||
NS_IMPL_ICONTENT_USING_GENERIC_DOM_DATA(mInner)
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// XXX Processing instructions are currently implemented by using
|
||||
|
@ -185,6 +187,7 @@ nsXMLNotation::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
return it->QueryInterface(NS_GET_IID(nsIDOMNode), (void**) aReturn);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsXMLNotation::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
|
@ -219,6 +222,7 @@ nsXMLNotation::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const
|
|||
{
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLNotation::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
|
@ -252,11 +256,11 @@ nsXMLNotation::IsContentOfType(PRUint32 aFlags)
|
|||
return PR_FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsXMLNotation::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
#ifdef DEBUG
|
||||
PRUint32 sum;
|
||||
mInner.SizeOf(aSizer, &sum, sizeof(*this));
|
||||
PRUint32 ssize;
|
||||
|
@ -266,6 +270,6 @@ nsXMLNotation::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
|
|||
sum = sum - sizeof(mPublicId) + ssize;
|
||||
mSystemId.SizeOf(aSizer, &ssize);
|
||||
sum = sum - sizeof(mSystemId) + ssize;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче