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

Side by Side Diff: Source/core/css/StyleResolver.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/StyleResolver.h ('k') | Source/core/css/StyleRule.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, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 #include "StyleRule.h" 117 #include "StyleRule.h"
118 #include "StyleRuleImport.h" 118 #include "StyleRuleImport.h"
119 #include "StyleSheetContents.h" 119 #include "StyleSheetContents.h"
120 #include "StyleSheetList.h" 120 #include "StyleSheetList.h"
121 #include "Text.h" 121 #include "Text.h"
122 #include "TransformationMatrix.h" 122 #include "TransformationMatrix.h"
123 #include "TranslateTransformOperation.h" 123 #include "TranslateTransformOperation.h"
124 #include "UserAgentStyleSheets.h" 124 #include "UserAgentStyleSheets.h"
125 #include "ViewportStyleResolver.h" 125 #include "ViewportStyleResolver.h"
126 #include "VisitedLinkState.h" 126 #include "VisitedLinkState.h"
127 #include "WebCoreMemoryInstrumentation.h"
128 #include "WebKitCSSKeyframeRule.h" 127 #include "WebKitCSSKeyframeRule.h"
129 #include "WebKitCSSKeyframesRule.h" 128 #include "WebKitCSSKeyframesRule.h"
130 #include "WebKitCSSRegionRule.h" 129 #include "WebKitCSSRegionRule.h"
131 #include "WebKitCSSTransformValue.h" 130 #include "WebKitCSSTransformValue.h"
132 #include "WebKitFontFamilyNames.h" 131 #include "WebKitFontFamilyNames.h"
133 #include "XMLNames.h" 132 #include "XMLNames.h"
134 #include <wtf/MemoryInstrumentationHashMap.h>
135 #include <wtf/MemoryInstrumentationHashSet.h>
136 #include <wtf/MemoryInstrumentationVector.h>
137 #include <wtf/StdLibExtras.h> 133 #include <wtf/StdLibExtras.h>
138 #include <wtf/Vector.h> 134 #include <wtf/Vector.h>
139 135
140 #include "FilterOperation.h" 136 #include "FilterOperation.h"
141 #include "WebKitCSSFilterValue.h" 137 #include "WebKitCSSFilterValue.h"
142 138
143 #if ENABLE(SVG) 139 #if ENABLE(SVG)
144 #include "CachedSVGDocument.h" 140 #include "CachedSVGDocument.h"
145 #include "CachedSVGDocumentReference.h" 141 #include "CachedSVGDocumentReference.h"
146 #include "SVGDocument.h" 142 #include "SVGDocument.h"
(...skipping 20 matching lines...) Expand all
167 163
168 #if ENABLE(CSS_IMAGE_SET) 164 #if ENABLE(CSS_IMAGE_SET)
169 #include "CSSImageSetValue.h" 165 #include "CSSImageSetValue.h"
170 #include "StyleCachedImageSet.h" 166 #include "StyleCachedImageSet.h"
171 #endif 167 #endif
172 168
173 #include "WebVTTElement.h" 169 #include "WebVTTElement.h"
174 170
175 using namespace std; 171 using namespace std;
176 172
177 namespace WTF {
178
179 template<> struct SequenceMemoryInstrumentationTraits<const WebCore::RuleData*> {
180 template <typename I> static void reportMemoryUsage(I, I, MemoryClassInfo&) { }
181 };
182
183 }
184
185 namespace WebCore { 173 namespace WebCore {
186 174
187 using namespace HTMLNames; 175 using namespace HTMLNames;
188 176
189 #define HANDLE_INHERIT(prop, Prop) \ 177 #define HANDLE_INHERIT(prop, Prop) \
190 if (isInherit) { \ 178 if (isInherit) { \
191 m_state.style()->set##Prop(m_state.parentStyle()->prop()); \ 179 m_state.style()->set##Prop(m_state.parentStyle()->prop()); \
192 return; \ 180 return; \
193 } 181 }
194 182
(...skipping 4196 matching lines...) Expand 10 before | Expand all | Expand 10 after
4391 4379
4392 inline StyleResolver::MatchedProperties::MatchedProperties() 4380 inline StyleResolver::MatchedProperties::MatchedProperties()
4393 : possiblyPaddedMember(0) 4381 : possiblyPaddedMember(0)
4394 { 4382 {
4395 } 4383 }
4396 4384
4397 inline StyleResolver::MatchedProperties::~MatchedProperties() 4385 inline StyleResolver::MatchedProperties::~MatchedProperties()
4398 { 4386 {
4399 } 4387 }
4400 4388
4401 void StyleResolver::MatchedProperties::reportMemoryUsage(MemoryObjectInfo* memor yObjectInfo) const
4402 {
4403 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
4404 info.addMember(properties, "properties");
4405 }
4406
4407 void StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage(MemoryObjectIn fo* memoryObjectInfo) const
4408 {
4409 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
4410 info.addMember(matchedProperties, "matchedProperties");
4411 info.addMember(ranges, "ranges");
4412 info.addMember(renderStyle, "renderStyle");
4413 info.addMember(parentRenderStyle, "parentRenderStyle");
4414 }
4415
4416 void MediaQueryResult::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con st
4417 {
4418 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
4419 info.addMember(m_expression, "expression");
4420 }
4421
4422 void StyleResolver::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
4423 {
4424 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
4425 info.addMember(m_ruleSets, "ruleSets");
4426 info.addMember(m_keyframesRuleMap, "keyframesRuleMap");
4427 info.addMember(m_matchedPropertiesCache, "matchedPropertiesCache");
4428 info.addMember(m_matchedPropertiesCacheSweepTimer, "matchedPropertiesCacheSw eepTimer");
4429
4430 info.addMember(m_medium, "medium");
4431 info.addMember(m_rootDefaultStyle, "rootDefaultStyle");
4432 info.addMember(m_document, "document");
4433
4434 info.addMember(m_fontSelector, "fontSelector");
4435 info.addMember(m_viewportDependentMediaQueryResults, "viewportDependentMedia QueryResults");
4436 info.ignoreMember(m_styleBuilder);
4437 info.addMember(m_inspectorCSSOMWrappers);
4438 info.addMember(m_scopeResolver, "scopeResolver");
4439
4440 info.addMember(m_state, "state");
4441
4442 // FIXME: move this to a place where it would be called only once?
4443 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle");
4444 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl e");
4445 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle") ;
4446 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo urceStyle");
4447 }
4448
4449 } // namespace WebCore 4389 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/StyleResolver.h ('k') | Source/core/css/StyleRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698