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

Side by Side Diff: Source/core/css/InspectorCSSOMWrappers.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/InspectorCSSOMWrappers.h ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 23 matching lines...) Expand all
34 #include "CSSImportRule.h" 34 #include "CSSImportRule.h"
35 #include "CSSMediaRule.h" 35 #include "CSSMediaRule.h"
36 #include "CSSRule.h" 36 #include "CSSRule.h"
37 #include "CSSStyleRule.h" 37 #include "CSSStyleRule.h"
38 #include "CSSStyleSheet.h" 38 #include "CSSStyleSheet.h"
39 #include "CSSSupportsRule.h" 39 #include "CSSSupportsRule.h"
40 #include "DocumentStyleSheetCollection.h" 40 #include "DocumentStyleSheetCollection.h"
41 #include "StyleSheetContents.h" 41 #include "StyleSheetContents.h"
42 #include "WebKitCSSRegionRule.h" 42 #include "WebKitCSSRegionRule.h"
43 43
44 #include <wtf/MemoryInstrumentationHashMap.h>
45 #include <wtf/MemoryInstrumentationHashSet.h>
46
47 namespace WebCore { 44 namespace WebCore {
48 45
49 void InspectorCSSOMWrappers::collectFromStyleSheetIfNeeded(CSSStyleSheet* styleS heet) 46 void InspectorCSSOMWrappers::collectFromStyleSheetIfNeeded(CSSStyleSheet* styleS heet)
50 { 47 {
51 if (!m_styleRuleToCSSOMWrapperMap.isEmpty()) 48 if (!m_styleRuleToCSSOMWrapperMap.isEmpty())
52 collect(styleSheet); 49 collect(styleSheet);
53 } 50 }
54 51
55 template <class ListType> 52 template <class ListType>
56 void InspectorCSSOMWrappers::collect(ListType* listType) 53 void InspectorCSSOMWrappers::collect(ListType* listType)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::svgStyleSheet); 116 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::svgStyleSheet);
120 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::mathMLStyleSheet); 117 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::mathMLStyleSheet);
121 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::mediaControlsStyleSheet); 118 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::mediaControlsStyleSheet);
122 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::fullscreenStyleSheet); 119 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty leSheets::fullscreenStyleSheet);
123 120
124 collectFromDocumentStyleSheetCollection(styleSheetCollection); 121 collectFromDocumentStyleSheetCollection(styleSheetCollection);
125 } 122 }
126 return m_styleRuleToCSSOMWrapperMap.get(rule).get(); 123 return m_styleRuleToCSSOMWrapperMap.get(rule).get();
127 } 124 }
128 125
129 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf o) const
130 {
131 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
132 info.addMember(m_styleRuleToCSSOMWrapperMap);
133 info.addMember(m_styleSheetCSSOMWrapperSet);
134 }
135
136 } // namespace WebCore 126 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/InspectorCSSOMWrappers.h ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698