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/WebKitCSSKeyframeRule.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Source/WebCore/css/WebKitCSSKeyframeRule.cpp') diff --git a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp index 0577b46f0..5c093022c 100644 --- a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp +++ b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp @@ -26,6 +26,7 @@ #include "config.h" #include "WebKitCSSKeyframeRule.h" +#include "MemoryInstrumentation.h" #include "PropertySetCSSStyleDeclaration.h" #include "StylePropertySet.h" #include "WebKitCSSKeyframesRule.h" @@ -85,6 +86,13 @@ String StyleKeyframe::cssText() const return result; } +void StyleKeyframe::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +{ + MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::CSS); + info.addInstrumentedMember(m_properties); + info.addMember(m_key); +} + WebKitCSSKeyframeRule::WebKitCSSKeyframeRule(StyleKeyframe* keyframe, WebKitCSSKeyframesRule* parent) : CSSRule(0, CSSRule::WEBKIT_KEYFRAME_RULE) , m_keyframe(keyframe) @@ -105,4 +113,12 @@ CSSStyleDeclaration* WebKitCSSKeyframeRule::style() const return m_propertiesCSSOMWrapper.get(); } +void WebKitCSSKeyframeRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +{ + MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::CSS); + CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); + info.addInstrumentedMember(m_keyframe); + info.addInstrumentedMember(m_propertiesCSSOMWrapper); +} + } // namespace WebCore -- cgit v1.2.1