diff options
Diffstat (limited to 'Source/WebCore/css/CSSStyleRule.cpp')
-rw-r--r-- | Source/WebCore/css/CSSStyleRule.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/css/CSSStyleRule.cpp b/Source/WebCore/css/CSSStyleRule.cpp index 1eeb32d42..7f82ae593 100644 --- a/Source/WebCore/css/CSSStyleRule.cpp +++ b/Source/WebCore/css/CSSStyleRule.cpp @@ -26,6 +26,7 @@ #include "CSSSelector.h" #include "CSSStyleSheet.h" #include "Document.h" +#include "MemoryInstrumentation.h" #include "PropertySetCSSStyleDeclaration.h" #include "StylePropertySet.h" #include "StyleRule.h" @@ -127,4 +128,12 @@ void CSSStyleRule::reattach(StyleRule* rule) m_propertiesCSSOMWrapper->reattach(m_styleRule->mutableProperties()); } +void CSSStyleRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +{ + MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::CSS); + CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); + info.addInstrumentedMember(m_styleRule); + info.addInstrumentedMember(m_propertiesCSSOMWrapper); +} + } // namespace WebCore |