Changeset 124589 in webkit
- Timestamp:
- Aug 3, 2012 3:18:31 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r124588 r124589 1 2012-08-03 Yury Semikhatsky <yurys@chromium.org> 2 3 Web Inspector: add CSSRule memory instrumentation 4 https://bugs.webkit.org/show_bug.cgi?id=92962 5 6 Reviewed by Pavel Feldman. 7 8 Added memory footprint reporting method to CSSRule and its descendants. 9 10 * css/CSSCharsetRule.cpp: 11 (WebCore::CSSCharsetRule::reportDescendantMemoryUsage): 12 (WebCore): 13 * css/CSSCharsetRule.h: 14 (CSSCharsetRule): 15 * css/CSSComputedStyleDeclaration.cpp: 16 (WebCore::CSSComputedStyleDeclaration::reportMemoryUsage): 17 (WebCore): 18 * css/CSSComputedStyleDeclaration.h: 19 (CSSComputedStyleDeclaration): 20 * css/CSSFontFaceRule.cpp: 21 (WebCore::CSSFontFaceRule::reportDescendantMemoryUsage): 22 (WebCore): 23 * css/CSSFontFaceRule.h: 24 (CSSFontFaceRule): 25 * css/CSSImportRule.cpp: 26 (WebCore::CSSImportRule::reportDescendantMemoryUsage): 27 (WebCore): 28 * css/CSSImportRule.h: 29 (CSSImportRule): 30 * css/CSSMediaRule.cpp: 31 (WebCore::CSSMediaRule::reportDescendantMemoryUsage): 32 (WebCore): 33 * css/CSSMediaRule.h: 34 (CSSMediaRule): 35 * css/CSSPageRule.cpp: 36 (WebCore::CSSPageRule::reportDescendantMemoryUsage): 37 (WebCore): 38 * css/CSSPageRule.h: 39 (CSSPageRule): 40 * css/CSSRule.cpp: 41 (WebCore::CSSRule::reportMemoryUsage): we manually implement polymorphic 42 call here to avoid adding vtable pointer to all CSSRule objects. Descendants 43 are expected to report their memory via reportDescendantMemoryUsage. The name 44 is intentionally different from reportMemoryUsage to avoid accidential infitite 45 recursion: if the descendants overrode non-virtual CSSRule::reportMemoryUsage, 46 it would be easy to add a new descendant type to the switch in 47 CSSRule::reportMemoryUsage without providing proper override for reportMemoryUsage 48 and CSSRule::reportMemoryUsage would end up calling itself. 49 (WebCore): 50 (WebCore::CSSRule::reportBaseClassMemoryUsage): again we cannot use 51 MemoryClassInfo::visitBaseClass like we do for virtual methods because it would 52 lead to a recursive call of CSSRule::reportMemoryUsage. This is why we use 53 reportBaseClassMemoryUsage to allow descendants to report objects referenced 54 from their base class. 55 * css/CSSRule.h: 56 (WebCore): 57 (CSSRule): 58 * css/CSSRuleList.cpp: 59 (WebCore::StaticCSSRuleList::reportMemoryUsage): 60 (WebCore): 61 * css/CSSRuleList.h: 62 (WebCore): 63 (CSSRuleList): 64 (StaticCSSRuleList): 65 (LiveCSSRuleList): 66 * css/CSSStyleDeclaration.h: 67 (WebCore): 68 (CSSStyleDeclaration): 69 * css/CSSStyleRule.cpp: 70 (WebCore::CSSStyleRule::reportDescendantMemoryUsage): 71 (WebCore): 72 * css/CSSStyleRule.h: 73 (CSSStyleRule): 74 * css/CSSStyleSheet.cpp: 75 (StyleSheetCSSRuleList): 76 (WebCore::CSSStyleSheet::reportMemoryUsage): 77 * css/CSSUnknownRule.h: 78 (CSSUnknownRule): 79 (WebCore::CSSUnknownRule::reportDescendantMemoryUsage): 80 * css/PropertySetCSSStyleDeclaration.cpp: 81 (WebCore::PropertySetCSSStyleDeclaration::reportMemoryUsage): 82 (WebCore): 83 (WebCore::StyleRuleCSSStyleDeclaration::reportMemoryUsage): 84 (WebCore::InlineCSSStyleDeclaration::reportMemoryUsage): 85 * css/PropertySetCSSStyleDeclaration.h: 86 (PropertySetCSSStyleDeclaration): 87 (StyleRuleCSSStyleDeclaration): 88 (InlineCSSStyleDeclaration): 89 * css/WebKitCSSKeyframeRule.cpp: 90 (WebCore::WebKitCSSKeyframeRule::reportDescendantMemoryUsage): 91 (WebCore): 92 * css/WebKitCSSKeyframeRule.h: 93 (WebKitCSSKeyframeRule): 94 * css/WebKitCSSKeyframesRule.cpp: 95 (WebCore::WebKitCSSKeyframesRule::reportDescendantMemoryUsage): 96 (WebCore): 97 * css/WebKitCSSKeyframesRule.h: 98 (WebKitCSSKeyframesRule): 99 * css/WebKitCSSRegionRule.cpp: 100 (WebCore::WebKitCSSRegionRule::reportDescendantMemoryUsage): 101 (WebCore): 102 * css/WebKitCSSRegionRule.h: 103 (WebKitCSSRegionRule): 104 1 105 2012-08-03 Adam Barth <abarth@webkit.org> 2 106 -
trunk/Source/WebCore/css/CSSCharsetRule.cpp
r99708 r124589 22 22 #include "CSSCharsetRule.h" 23 23 24 #include "MemoryInstrumentation.h" 25 24 26 namespace WebCore { 25 27 … … 35 37 } 36 38 39 void CSSCharsetRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 40 { 41 MemoryClassInfo<CSSCharsetRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 42 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 43 info.addString(m_encoding); 44 } 45 37 46 } // namespace WebCore -
trunk/Source/WebCore/css/CSSCharsetRule.h
r99708 r124589 40 40 String cssText() const; 41 41 42 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 43 42 44 private: 43 45 CSSCharsetRule(CSSStyleSheet* parent, const String& encoding); -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r124389 r124589 47 47 #include "FontFeatureValue.h" 48 48 #include "FontValue.h" 49 #include "MemoryInstrumentation.h" 49 50 #include "Pair.h" 50 51 #include "Rect.h" … … 2685 2686 } 2686 2687 2688 void CSSComputedStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 2689 { 2690 MemoryClassInfo<CSSComputedStyleDeclaration> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 2691 info.addInstrumentedMember(m_node); 2692 } 2693 2687 2694 CSSRule* CSSComputedStyleDeclaration::parentRule() const 2688 2695 { -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h
r116645 r124589 73 73 PassRefPtr<StylePropertySet> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const; 74 74 75 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 76 75 77 private: 76 78 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const String&); -
trunk/Source/WebCore/css/CSSFontFaceRule.cpp
r118761 r124589 23 23 #include "CSSFontFaceRule.h" 24 24 25 #include "MemoryInstrumentation.h" 25 26 #include "StylePropertySet.h" 26 27 #include "StyleRule.h" … … 64 65 } 65 66 67 void CSSFontFaceRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 68 { 69 MemoryClassInfo<CSSFontFaceRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 70 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 71 info.addInstrumentedMember(m_fontFaceRule); 72 info.addInstrumentedMember(m_propertiesCSSOMWrapper); 73 } 74 66 75 } // namespace WebCore -
trunk/Source/WebCore/css/CSSFontFaceRule.h
r116291 r124589 46 46 void reattach(StyleRuleFontFace*); 47 47 48 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 49 48 50 private: 49 51 CSSFontFaceRule(StyleRuleFontFace*, CSSStyleSheet* parent); -
trunk/Source/WebCore/css/CSSImportRule.cpp
r118376 r124589 28 28 #include "Document.h" 29 29 #include "MediaList.h" 30 #include "MemoryInstrumentation.h" 30 31 #include "SecurityOrigin.h" 31 32 #include "StyleRuleImport.h" … … 77 78 } 78 79 80 void CSSImportRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 81 { 82 MemoryClassInfo<CSSImportRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 83 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 84 info.addInstrumentedMember(m_importRule); 85 info.addInstrumentedMember(m_mediaCSSOMWrapper); 86 info.addInstrumentedMember(m_styleSheetCSSOMWrapper); 87 } 88 79 89 CSSStyleSheet* CSSImportRule::styleSheet() const 80 90 { -
trunk/Source/WebCore/css/CSSImportRule.h
r118376 r124589 44 44 String cssText() const; 45 45 46 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 47 46 48 private: 47 49 CSSImportRule(StyleRuleImport*, CSSStyleSheet*); -
trunk/Source/WebCore/css/CSSMediaRule.cpp
r121551 r124589 28 28 #include "CSSStyleSheet.h" 29 29 #include "ExceptionCode.h" 30 #include "MemoryInstrumentation.h" 30 31 #include "StyleRule.h" 31 32 #include <wtf/text/StringBuilder.h> … … 175 176 } 176 177 178 void CSSMediaRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 179 { 180 MemoryClassInfo<CSSMediaRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 181 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 182 info.addInstrumentedMember(m_mediaCSSOMWrapper); 183 info.addInstrumentedVector(m_childRuleCSSOMWrappers); 184 info.addInstrumentedMember(m_ruleListCSSOMWrapper); 185 } 186 177 187 } // namespace WebCore -
trunk/Source/WebCore/css/CSSMediaRule.h
r116291 r124589 53 53 void reattach(StyleRuleMedia*); 54 54 55 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 56 55 57 private: 56 58 CSSMediaRule(StyleRuleMedia*, CSSStyleSheet*); -
trunk/Source/WebCore/css/CSSPageRule.cpp
r118761 r124589 96 96 } 97 97 98 void CSSPageRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 99 { 100 MemoryClassInfo<CSSPageRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 101 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 102 info.addInstrumentedMember(m_pageRule); 103 info.addInstrumentedMember(m_propertiesCSSOMWrapper); 104 } 105 98 106 } // namespace WebCore -
trunk/Source/WebCore/css/CSSPageRule.h
r116291 r124589 49 49 void reattach(StyleRulePage*); 50 50 51 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 52 51 53 private: 52 54 CSSPageRule(StyleRulePage*, CSSStyleSheet*); -
trunk/Source/WebCore/css/CSSRule.cpp
r120943 r124589 165 165 } 166 166 167 void CSSRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 168 { 169 switch (type()) { 170 case UNKNOWN_RULE: 171 static_cast<const CSSUnknownRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 172 return; 173 case STYLE_RULE: 174 static_cast<const CSSStyleRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 175 return; 176 case PAGE_RULE: 177 static_cast<const CSSPageRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 178 return; 179 case CHARSET_RULE: 180 static_cast<const CSSCharsetRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 181 return; 182 case IMPORT_RULE: 183 static_cast<const CSSImportRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 184 return; 185 case MEDIA_RULE: 186 static_cast<const CSSMediaRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 187 return; 188 case FONT_FACE_RULE: 189 static_cast<const CSSFontFaceRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 190 return; 191 case WEBKIT_KEYFRAMES_RULE: 192 static_cast<const WebKitCSSKeyframesRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 193 return; 194 case WEBKIT_KEYFRAME_RULE: 195 static_cast<const WebKitCSSKeyframeRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 196 return; 197 #if ENABLE(CSS_REGIONS) 198 case WEBKIT_REGION_RULE: 199 static_cast<const WebKitCSSRegionRule*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); 200 return; 201 #endif 202 } 203 ASSERT_NOT_REACHED(); 204 return; 205 } 206 167 207 const CSSParserContext& CSSRule::parserContext() const 168 208 { … … 171 211 } 172 212 213 void CSSRule::reportBaseClassMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 214 { 215 MemoryClassInfo<CSSRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 216 if (m_parentIsRule) 217 info.addInstrumentedMember(m_parentRule); 218 else 219 info.addInstrumentedMember(m_parentStyleSheet); 220 } 221 173 222 } // namespace WebCore -
trunk/Source/WebCore/css/CSSRule.h
r120943 r124589 31 31 32 32 class CSSStyleSheet; 33 class MemoryObjectInfo; 33 34 class StyleRuleBase; 34 35 struct CSSParserContext; … … 104 105 void reattach(StyleRuleBase*); 105 106 107 void reportMemoryUsage(MemoryObjectInfo*) const; 108 106 109 protected: 107 110 CSSRule(CSSStyleSheet* parent, Type type) … … 123 126 const CSSParserContext& parserContext() const; 124 127 128 void reportBaseClassMemoryUsage(MemoryObjectInfo*) const; 129 125 130 private: 126 131 mutable unsigned m_hasCachedSelectorText : 1; -
trunk/Source/WebCore/css/CSSRuleList.cpp
r112037 r124589 52 52 } 53 53 54 void StaticCSSRuleList::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 55 { 56 MemoryClassInfo<StaticCSSRuleList> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 57 info.addInstrumentedVector(m_rules); 58 } 59 54 60 } // namespace WebCore -
trunk/Source/WebCore/css/CSSRuleList.h
r112516 r124589 23 23 #define CSSRuleList_h 24 24 25 #include "MemoryInstrumentation.h" 25 26 #include <wtf/PassRefPtr.h> 26 27 #include <wtf/RefCounted.h> … … 46 47 47 48 virtual CSSStyleSheet* styleSheet() const = 0; 49 50 virtual void reportMemoryUsage(MemoryObjectInfo*) const = 0; 48 51 49 52 protected: … … 61 64 62 65 virtual CSSStyleSheet* styleSheet() const { return 0; } 66 67 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 63 68 64 69 private: … … 81 86 virtual void ref() { m_rule->ref(); } 82 87 virtual void deref() { m_rule->deref(); } 88 89 virtual void reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const OVERRIDE 90 { 91 MemoryClassInfo<LiveCSSRuleList<Rule> > info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 92 info.addInstrumentedMember(m_rule); 93 } 83 94 84 95 private: -
trunk/Source/WebCore/css/CSSStyleDeclaration.h
r117369 r124589 31 31 class CSSStyleSheet; 32 32 class CSSValue; 33 class MemoryObjectInfo; 33 34 class StylePropertySet; 34 35 class StyledElement; … … 70 71 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } 71 72 73 virtual void reportMemoryUsage(MemoryObjectInfo*) const = 0; 74 72 75 protected: 73 76 CSSStyleDeclaration() { } -
trunk/Source/WebCore/css/CSSStyleRule.cpp
r118761 r124589 27 27 #include "CSSStyleSheet.h" 28 28 #include "Document.h" 29 #include "MemoryInstrumentation.h" 29 30 #include "PropertySetCSSStyleDeclaration.h" 30 31 #include "StylePropertySet.h" … … 128 129 } 129 130 131 void CSSStyleRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 132 { 133 MemoryClassInfo<CSSStyleRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 134 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 135 info.addInstrumentedMember(m_styleRule); 136 info.addInstrumentedMember(m_propertiesCSSOMWrapper); 137 } 138 130 139 } // namespace WebCore -
trunk/Source/WebCore/css/CSSStyleRule.h
r116291 r124589 51 51 void reattach(StyleRule*); 52 52 53 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 54 53 55 private: 54 56 CSSStyleRule(StyleRule*, CSSStyleSheet*); -
trunk/Source/WebCore/css/CSSStyleSheet.cpp
r124330 r124589 54 54 55 55 virtual CSSStyleSheet* styleSheet() const { return m_styleSheet; } 56 57 virtual void reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const OVERRIDE 58 { 59 MemoryClassInfo<StyleSheetCSSRuleList> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 60 info.addInstrumentedMember(m_styleSheet); 61 } 56 62 57 63 CSSStyleSheet* m_styleSheet; … … 177 183 info.addInstrumentedMember(m_mediaQueries); 178 184 info.addInstrumentedMember(m_ownerNode); 185 info.addInstrumentedMember(m_ownerRule); 179 186 info.addInstrumentedMember(m_mediaCSSOMWrapper); 187 info.addInstrumentedVector(m_childRuleCSSOMWrappers); 180 188 } 181 189 -
trunk/Source/WebCore/css/CSSUnknownRule.h
r98859 r124589 24 24 25 25 #include "CSSRule.h" 26 #include "MemoryInstrumentation.h" 26 27 27 28 namespace WebCore { … … 30 31 public: 31 32 CSSUnknownRule() : CSSRule(0, CSSRule::UNKNOWN_RULE) { } 33 34 void reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 35 { 36 MemoryClassInfo<CSSUnknownRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 37 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 38 } 32 39 }; 33 40 -
trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
r123636 r124589 27 27 #include "HTMLNames.h" 28 28 #include "InspectorInstrumentation.h" 29 #include "MemoryInstrumentation.h" 29 30 #include "MutationObserverInterestGroup.h" 30 31 #include "MutationRecord.h" … … 131 132 } 132 133 134 void PropertySetCSSStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 135 { 136 MemoryClassInfo<PropertySetCSSStyleDeclaration> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 137 info.addInstrumentedMember(m_propertySet); 138 // FIXME: add info.addInstrumentedHasMap(m_cssomCSSValueClones) when CSSValue is instrumented. 139 } 140 133 141 unsigned PropertySetCSSStyleDeclaration::length() const 134 142 { … … 381 389 } 382 390 391 void StyleRuleCSSStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 392 { 393 MemoryClassInfo<StyleRuleCSSStyleDeclaration> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 394 info.visitBaseClass(this); 395 info.addInstrumentedMember(m_parentRule); 396 } 397 398 void InlineCSSStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 399 { 400 MemoryClassInfo<InlineCSSStyleDeclaration> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 401 info.visitBaseClass(this); 402 info.addInstrumentedMember(m_parentElement); 403 } 404 383 405 void InlineCSSStyleDeclaration::didMutate(MutationType type) 384 406 { -
trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h
r121982 r124589 48 48 virtual void ref() OVERRIDE; 49 49 virtual void deref() OVERRIDE; 50 51 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 50 52 51 53 protected: … … 100 102 void reattach(StylePropertySet*); 101 103 104 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 105 102 106 private: 103 107 StyleRuleCSSStyleDeclaration(StylePropertySet*, CSSRule*); … … 125 129 { 126 130 } 131 132 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 127 133 128 134 private: -
trunk/Source/WebCore/css/WebKitCSSKeyframeRule.cpp
r124330 r124589 114 114 } 115 115 116 void WebKitCSSKeyframeRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 117 { 118 MemoryClassInfo<WebKitCSSKeyframeRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 119 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 120 info.addInstrumentedMember(m_keyframe); 121 info.addInstrumentedMember(m_propertiesCSSOMWrapper); 122 } 123 116 124 } // namespace WebCore -
trunk/Source/WebCore/css/WebKitCSSKeyframeRule.h
r124330 r124589 81 81 String cssText() const { return m_keyframe->cssText(); } 82 82 83 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 84 83 85 private: 84 86 WebKitCSSKeyframeRule(StyleKeyframe*, WebKitCSSKeyframesRule* parent); -
trunk/Source/WebCore/css/WebKitCSSKeyframesRule.cpp
r124435 r124589 207 207 } 208 208 209 void WebKitCSSKeyframesRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 210 { 211 MemoryClassInfo<WebKitCSSKeyframesRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 212 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 213 info.addInstrumentedMember(m_keyframesRule); 214 info.addInstrumentedVector(m_childRuleCSSOMWrappers); 215 info.addInstrumentedMember(m_ruleListCSSOMWrapper); 216 } 217 209 218 } // namespace WebCore -
trunk/Source/WebCore/css/WebKitCSSKeyframesRule.h
r124435 r124589 93 93 void reattach(StyleRuleKeyframes*); 94 94 95 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 96 95 97 private: 96 98 WebKitCSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); -
trunk/Source/WebCore/css/WebKitCSSRegionRule.cpp
r118484 r124589 109 109 } 110 110 111 void WebKitCSSRegionRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 112 { 113 MemoryClassInfo<WebKitCSSRegionRule> info(memoryObjectInfo, this, MemoryInstrumentation::CSS); 114 CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); 115 info.addInstrumentedMember(m_regionRule); 116 info.addInstrumentedVector(m_childRuleCSSOMWrappers); 117 info.addInstrumentedMember(m_ruleListCSSOMWrapper); 118 } 119 111 120 } // namespace WebCore 112 121 -
trunk/Source/WebCore/css/WebKitCSSRegionRule.h
r118484 r124589 58 58 void reattach(StyleRuleRegion*); 59 59 60 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; 61 60 62 private: 61 63 WebKitCSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent);
Note: See TracChangeset
for help on using the changeset viewer.