From 3749d61e1f7a59f5ec5067e560af1eb610c82015 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 12 Aug 2012 09:27:39 +0200 Subject: Imported WebKit commit a77350243e054f3460d1137301d8b3faee3d2052 (http://svn.webkit.org/repository/webkit/trunk@125365) New snapshot with build fixes for latest API changes in Qt and all WK1 Win MSVC fixes upstream --- Source/WebCore/css/CSSStyleRule.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source/WebCore/css/CSSStyleRule.cpp') 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 -- cgit v1.2.1