Bug 670965 - Make nsCommentNode, nsTextNode, nsXMLCDATASection and nsXMLProcessingInstruction participate in the DOM Memory Reporter. r=jst

This commit is contained in:
Mounir Lamouri 2011-07-19 10:05:37 -07:00
Родитель 502af0ee07
Коммит 653b1ce364
4 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -43,6 +43,7 @@
#include "nsGenericDOMDataNode.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsDOMMemoryReporter.h"
class nsCommentNode : public nsGenericDOMDataNode,
public nsIDOMComment
@ -60,6 +61,10 @@ public:
// nsIDOMCharacterData
NS_FORWARD_NSIDOMCHARACTERDATA(nsGenericDOMDataNode::)
// DOM Memory Reporter participant.
NS_DECL_AND_IMPL_DOM_MEMORY_REPORTER_SIZEOF(nsCommentNode,
nsGenericDOMDataNode)
// nsIDOMComment
// Empty interface

Просмотреть файл

@ -47,6 +47,7 @@
#include "nsIAttribute.h"
#include "nsIDocument.h"
#include "nsThreadUtils.h"
#include "nsDOMMemoryReporter.h"
/**
* Class used to implement DOM text nodes
@ -70,6 +71,9 @@ public:
// nsIDOMText
NS_FORWARD_NSIDOMTEXT(nsGenericDOMDataNode::)
// DOM Memory Reporter participant.
NS_DECL_AND_IMPL_DOM_MEMORY_REPORTER_SIZEOF(nsTextNode, nsGenericDOMDataNode)
// nsINode
virtual PRBool IsNodeOfType(PRUint32 aFlags) const;

Просмотреть файл

@ -40,6 +40,7 @@
#include "nsGkAtoms.h"
#include "nsIDocument.h"
#include "nsContentUtils.h"
#include "nsDOMMemoryReporter.h"
class nsXMLCDATASection : public nsGenericDOMDataNode,
@ -61,6 +62,10 @@ public:
// nsIDOMText
NS_FORWARD_NSIDOMTEXT(nsGenericDOMDataNode::)
// DOM Memory Reporter participant.
NS_DECL_AND_IMPL_DOM_MEMORY_REPORTER_SIZEOF(nsXMLCDATASection,
nsGenericDOMDataNode)
// nsIDOMCDATASection
// Empty interface

Просмотреть файл

@ -62,6 +62,10 @@ public:
// nsIDOMProcessingInstruction
NS_DECL_NSIDOMPROCESSINGINSTRUCTION
// DOM Memory Reporter participant.
NS_DECL_AND_IMPL_DOM_MEMORY_REPORTER_SIZEOF(nsXMLProcessingInstruction,
nsGenericDOMDataNode)
// nsINode
virtual PRBool IsNodeOfType(PRUint32 aFlags) const;