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

Unified Diff: Source/core/dom/Document.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/Document.h ('k') | Source/core/dom/DocumentEventQueue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index e3ff783900ca656fd499106a88c7daf2f48be5c4..5af369d23b78a23c51d61c380e5efde0e607303c 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -176,7 +176,6 @@
#include "UserActionElementSet.h"
#include "UserContentURLPattern.h"
#include "VisitedLinkState.h"
-#include "WebCoreMemoryInstrumentation.h"
#include "XMLDocumentParser.h"
#include "XMLHttpRequest.h"
#include "XMLNSNames.h"
@@ -190,10 +189,6 @@
#include <wtf/CurrentTime.h>
#include <wtf/HashFunctions.h>
#include <wtf/MainThread.h>
-#include <wtf/MemoryInstrumentationHashCountedSet.h>
-#include <wtf/MemoryInstrumentationHashMap.h>
-#include <wtf/MemoryInstrumentationHashSet.h>
-#include <wtf/MemoryInstrumentationVector.h>
#include <wtf/PassRefPtr.h>
#include <wtf/StdLibExtras.h>
#include <wtf/text/StringBuffer.h>
@@ -5738,104 +5733,6 @@ void Document::updateHoverActiveState(const HitTestRequest& request, Element* in
updateStyleIfNeeded();
}
-void Document::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
- ContainerNode::reportMemoryUsage(memoryObjectInfo);
- TreeScope::reportMemoryUsage(memoryObjectInfo);
- ScriptExecutionContext::reportMemoryUsage(memoryObjectInfo);
- info.addMember(m_styleResolver, "styleResolver");
- info.addMember(m_url, "url");
- info.addMember(m_baseURL, "baseURL");
- info.addMember(m_baseURLOverride, "baseURLOverride");
- info.addMember(m_baseElementURL, "baseElementURL");
- info.addMember(m_cookieURL, "cookieURL");
- info.addMember(m_firstPartyForCookies, "firstPartyForCookies");
- info.addMember(m_documentURI, "documentURI");
- info.addMember(m_baseTarget, "baseTarget");
- info.addMember(m_docType, "docType");
- info.addMember(m_implementation, "implementation");
- info.addMember(m_elemSheet, "elemSheet");
- info.addMember(m_frame, "frame");
- info.addMember(m_cachedResourceLoader, "cachedResourceLoader");
- info.addMember(m_styleSheetCollection, "styleSheetCollection");
- info.addMember(m_styleSheetList, "styleSheetList");
- info.addMember(m_formController, "formController");
- info.addMember(m_nodeIterators, "nodeIterators");
- info.addMember(m_ranges, "ranges");
- info.addMember(m_title.string(), "title.string()");
- info.addMember(m_rawTitle.string(), "rawTitle.string()");
- info.addMember(m_xmlEncoding, "xmlEncoding");
- info.addMember(m_xmlVersion, "xmlVersion");
- info.addMember(m_contentLanguage, "contentLanguage");
- info.addMember(m_annotatedRegions, "annotatedRegions");
- info.addMember(m_cssCanvasElements, "cssCanvasElements");
- info.addMember(m_iconURLs, "iconURLs");
- info.addMember(m_documentSuspensionCallbackElements, "documentSuspensionCallbackElements");
- info.addMember(m_mediaVolumeCallbackElements, "mediaVolumeCallbackElements");
- info.addMember(m_elementsByAccessKey, "elementsByAccessKey");
- info.addMember(m_eventQueue, "eventQueue");
- info.addMember(m_mediaCanStartListeners, "mediaCanStartListeners");
- info.addMember(m_pendingTasks, "pendingTasks");
- info.addMember(m_prerenderer, "prerenderer");
- info.addMember(m_listsInvalidatedAtDocument, "listsInvalidatedAtDocument");
- info.addMember(m_styleResolverThrowawayTimer, "styleResolverThrowawayTimer");
- info.addMember(m_domWindow, "domWindow");
- info.addMember(m_parser, "parser");
- info.addMember(m_contextFeatures, "contextFeatures");
- info.addMember(m_focusedNode, "focusedNode");
- info.addMember(m_hoverNode, "hoverNode");
- info.addMember(m_documentElement, "documentElement");
- info.addMember(m_visitedLinkState, "visitedLinkState");
- info.addMember(m_styleRecalcTimer, "styleRecalcTimer");
- info.addMember(m_titleElement, "titleElement");
- info.ignoreMember(m_renderArena);
- info.addMember(m_axObjectCache, "axObjectCache");
- info.addMember(m_markers, "markers");
- info.addMember(m_cssTarget, "cssTarget");
- info.addMember(m_updateFocusAppearanceTimer, "updateFocusAppearanceTimer");
- info.addMember(m_pendingStateObject, "pendingStateObject");
- info.addMember(m_scriptRunner, "scriptRunner");
- info.addMember(m_transformSource, "transformSource");
- info.addMember(m_transformSourceDocument, "transformSourceDocument");
- info.addMember(m_savedRenderer, "savedRenderer");
- info.addMember(m_decoder, "decoder");
- info.addMember(m_xpathEvaluator, "xpathEvaluator");
-#if ENABLE(SVG)
- info.addMember(m_svgExtensions, "svgExtensions");
-#endif
- info.addMember(m_selectorQueryCache, "selectorQueryCache");
- info.addMember(m_renderer, "renderer");
- info.addMember(m_weakFactory, "weakFactory");
- info.addMember(m_idAttributeName, "idAttributeName");
- info.addMember(m_fullScreenElement, "fullScreenElement");
- info.addMember(m_fullScreenElementStack, "fullScreenElementStack");
- info.addMember(m_fullScreenRenderer, "fullScreenRenderer");
- info.addMember(m_fullScreenChangeDelayTimer, "fullScreenChangeDelayTimer");
- info.addMember(m_fullScreenChangeEventTargetQueue, "fullScreenChangeEventTargetQueue");
- info.addMember(m_fullScreenErrorEventTargetQueue, "fullScreenErrorEventTargetQueue");
- info.addMember(m_savedPlaceholderRenderStyle, "savedPlaceholderRenderStyle");
-#if ENABLE(DIALOG_ELEMENT)
- info.addMember(m_topLayerElements, "topLayerElements");
-#endif
- info.addMember(m_loadEventDelayTimer, "loadEventDelayTimer");
- info.addMember(m_viewportArguments, "viewportArguments");
- info.addMember(m_documentTiming, "documentTiming");
- info.addMember(m_mediaQueryMatcher, "mediaQueryMatcher");
- info.addMember(m_touchEventTargets, "touchEventTargets");
- info.addMember(m_scriptedAnimationController, "scriptedAnimationController");
- info.addMember(m_pendingTasksTimer, "pendingTasksTimer");
- info.addMember(m_textAutosizer, "textAutosizer");
- info.addMember(m_namedFlows, "namedFlows");
- info.addMember(m_domSecurityPolicy, "domSecurityPolicy");
- info.addMember(m_sharedObjectPoolClearTimer, "sharedObjectPoolClearTimer");
- info.addMember(m_sharedObjectPool, "sharedObjectPool");
- info.addMember(m_localeCache, "localeCache");
- info.addMember(m_templateDocument, "templateDocument");
- info.addMember(m_templateDocumentHost, "templateDocumentHost");
- info.addMember(m_activeElement, "activeElement");
-}
-
bool Document::haveStylesheetsLoaded() const
{
return !m_styleSheetCollection->hasPendingSheets() || m_ignorePendingStylesheets;
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/DocumentEventQueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698