зеркало из https://github.com/mozilla/pjs.git
Bug 670965 - Make nsCommentNode, nsTextNode, nsXMLCDATASection and nsXMLProcessingInstruction participate in the DOM Memory Reporter. r=jst
This commit is contained in:
Родитель
03c5f59546
Коммит
83afc821c9
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче