Changeset 147440 in webkit
- Timestamp:
- Apr 2, 2013 9:00:28 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147439 r147440 1 2013-04-02 Hayato Ito <hayato@chromium.org> 2 3 Report memory usage for ShadowDistributedRules. 4 https://bugs.webkit.org/show_bug.cgi?id=109882 5 6 Reviewed by Dimitri Glazkov. 7 8 This is a follow-up patch for r142855. 9 10 No new tests, no behavior change for layout tests. 11 12 * css/DocumentRuleSets.cpp: 13 (WebCore): 14 (WebCore::ShadowDistributedRules::reportMemoryUsage): 15 (WebCore::DocumentRuleSets::reportMemoryUsage): 16 * css/DocumentRuleSets.h: 17 (ShadowDistributedRules): 18 1 19 2013-04-02 Chris Fleizach <cfleizach@apple.com> 2 20 -
trunk/Source/WebCore/css/DocumentRuleSets.cpp
r145510 r147440 55 55 for (ShadowDistributedRuleSetMap::iterator it = m_shadowDistributedRuleSetMap.begin(); it != m_shadowDistributedRuleSetMap.end(); ++it) 56 56 matchRequests.append(MatchRequest(it->value.get(), includeEmptyRules, it->key)); 57 } 58 59 void ShadowDistributedRules::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 60 { 61 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); 62 info.addMember(m_shadowDistributedRuleSetMap, "shadowDistributedRuleSetMap"); 57 63 } 58 64 #endif … … 163 169 info.addMember(m_siblingRuleSet, "siblingRuleSet"); 164 170 info.addMember(m_uncommonAttributeRuleSet, "uncommonAttributeRuleSet"); 171 #if ENABLE(SHADOW_DOM) 172 info.addMember(m_shadowDistributedRules, "shadowDistributedRules"); 173 #endif 165 174 } 166 175 -
trunk/Source/WebCore/css/DocumentRuleSets.h
r145510 r147440 49 49 void clear() { m_shadowDistributedRuleSetMap.clear(); } 50 50 bool isEmpty() const { return m_shadowDistributedRuleSetMap.isEmpty(); } 51 void reportMemoryUsage(MemoryObjectInfo*) const; 51 52 private: 52 53 typedef HashMap<const ContainerNode*, OwnPtr<RuleSet> > ShadowDistributedRuleSetMap;
Note: See TracChangeset
for help on using the changeset viewer.