Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Unified Diff: Source/core/dom/Element.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index fa7fe10a406ecfc89725cbd027a00d416d1504b8..b8041435b5d780248f79345536393d5765bc7f4b 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -79,12 +79,10 @@
#include "Text.h"
#include "TextIterator.h"
#include "VoidCallback.h"
-#include "WebCoreMemoryInstrumentation.h"
#include "XMLNSNames.h"
#include "XMLNames.h"
#include "htmlediting.h"
#include <wtf/BitVector.h>
-#include <wtf/MemoryInstrumentationVector.h>
#include <wtf/text/CString.h>
#if ENABLE(SVG)
@@ -2880,14 +2878,6 @@ void Element::createUniqueElementData()
}
}
-void Element::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
- ContainerNode::reportMemoryUsage(memoryObjectInfo);
- info.addMember(m_tagName, "tagName");
- info.addMember(m_elementData, "elementData");
-}
-
#if ENABLE(SVG)
bool Element::hasPendingResources() const
{
@@ -3069,22 +3059,6 @@ bool ElementData::isEquivalent(const ElementData* other) const
return true;
}
-void ElementData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- size_t actualSize = m_isUnique ? sizeof(ElementData) : sizeForShareableElementDataWithAttributeCount(m_arraySize);
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM, actualSize);
- info.addMember(m_inlineStyle, "inlineStyle");
- info.addMember(m_classNames, "classNames");
- info.addMember(m_idForStyleResolution, "idForStyleResolution");
- if (m_isUnique) {
- const UniqueElementData* uniqueThis = static_cast<const UniqueElementData*>(this);
- info.addMember(uniqueThis->m_presentationAttributeStyle, "presentationAttributeStyle");
- info.addMember(uniqueThis->m_attributeVector, "attributeVector");
- }
- for (unsigned i = 0, len = length(); i < len; i++)
- info.addMember(*attributeItem(i), "*attributeItem");
-}
-
size_t ElementData::getAttributeItemIndexSlowCase(const AtomicString& name, bool shouldIgnoreAttributeCase) const
{
// Continue to checking case-insensitively and/or full namespaced names if necessary:
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698