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

Side by Side Diff: Source/core/css/DocumentRuleSets.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/DocumentRuleSets.h ('k') | Source/core/css/FontFeatureValue.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 m_shadowDistributedRuleSetMap.add(scope, ruleSetForScope.release()); 48 m_shadowDistributedRuleSetMap.add(scope, ruleSetForScope.release());
49 } 49 }
50 } 50 }
51 51
52 void ShadowDistributedRules::collectMatchRequests(bool includeEmptyRules, Vector <MatchRequest>& matchRequests) 52 void ShadowDistributedRules::collectMatchRequests(bool includeEmptyRules, Vector <MatchRequest>& matchRequests)
53 { 53 {
54 for (ShadowDistributedRuleSetMap::iterator it = m_shadowDistributedRuleSetMa p.begin(); it != m_shadowDistributedRuleSetMap.end(); ++it) 54 for (ShadowDistributedRuleSetMap::iterator it = m_shadowDistributedRuleSetMa p.begin(); it != m_shadowDistributedRuleSetMap.end(); ++it)
55 matchRequests.append(MatchRequest(it->value.get(), includeEmptyRules, it ->key)); 55 matchRequests.append(MatchRequest(it->value.get(), includeEmptyRules, it ->key));
56 } 56 }
57 57
58 void ShadowDistributedRules::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf o) const
59 {
60 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
61 info.addMember(m_shadowDistributedRuleSetMap, "shadowDistributedRuleSetMap") ;
62 }
63
64 DocumentRuleSets::DocumentRuleSets() 58 DocumentRuleSets::DocumentRuleSets()
65 { 59 {
66 } 60 }
67 61
68 DocumentRuleSets::~DocumentRuleSets() 62 DocumentRuleSets::~DocumentRuleSets()
69 { 63 {
70 } 64 }
71 65
72 void DocumentRuleSets::initUserStyle(DocumentStyleSheetCollection* styleSheetCol lection, const MediaQueryEvaluator& medium, StyleResolver& resolver) 66 void DocumentRuleSets::initUserStyle(DocumentStyleSheetCollection* styleSheetCol lection, const MediaQueryEvaluator& medium, StyleResolver& resolver)
73 { 67 {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 141
148 if (scopeResolver) 142 if (scopeResolver)
149 scopeResolver->collectFeaturesTo(m_features); 143 scopeResolver->collectFeaturesTo(m_features);
150 if (m_userStyle) 144 if (m_userStyle)
151 m_features.add(m_userStyle->features()); 145 m_features.add(m_userStyle->features());
152 146
153 m_siblingRuleSet = makeRuleSet(m_features.siblingRules); 147 m_siblingRuleSet = makeRuleSet(m_features.siblingRules);
154 m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules); 148 m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules);
155 } 149 }
156 150
157 void DocumentRuleSets::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con st
158 {
159 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
160 info.addMember(m_authorStyle, "authorStyle");
161 info.addMember(m_userStyle, "userStyle");
162 info.addMember(m_features, "features");
163 info.addMember(m_siblingRuleSet, "siblingRuleSet");
164 info.addMember(m_uncommonAttributeRuleSet, "uncommonAttributeRuleSet");
165 info.addMember(m_shadowDistributedRules, "shadowDistributedRules");
166 }
167
168 } // namespace WebCore 151 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/DocumentRuleSets.h ('k') | Source/core/css/FontFeatureValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698