summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/QualifiedName.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/QualifiedName.cpp')
-rw-r--r--Source/WebCore/dom/QualifiedName.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/WebCore/dom/QualifiedName.cpp b/Source/WebCore/dom/QualifiedName.cpp
index fb2f320fe..56810b4e4 100644
--- a/Source/WebCore/dom/QualifiedName.cpp
+++ b/Source/WebCore/dom/QualifiedName.cpp
@@ -27,6 +27,7 @@
#include "QualifiedName.h"
#include "HTMLNames.h"
+#include "WebCoreMemoryInstrumentation.h"
#include "XLinkNames.h"
#include "XMLNSNames.h"
#include "XMLNames.h"
@@ -141,6 +142,22 @@ const AtomicString& QualifiedName::localNameUpper() const
return m_impl->m_localNameUpper;
}
+void QualifiedName::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
+{
+ MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
+ info.addInstrumentedMember(m_impl);
+}
+
+
+void QualifiedName::QualifiedNameImpl::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
+{
+ MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
+ info.addInstrumentedMember(m_prefix);
+ info.addInstrumentedMember(m_localName);
+ info.addInstrumentedMember(m_namespace);
+ info.addInstrumentedMember(m_localNameUpper);
+}
+
void createQualifiedName(void* targetAddress, const char* name, unsigned nameLength, const AtomicString& nameNamespace)
{
AtomicString atomicName(name, nameLength, AtomicString::ConstructFromLiteral);