diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-12 09:27:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-12 09:27:39 +0200 |
commit | 3749d61e1f7a59f5ec5067e560af1eb610c82015 (patch) | |
tree | 73dc228333948738bbe02976cacca8cd382bc978 /Source/WebCore/css/WebKitCSSKeyframeRule.cpp | |
parent | b32b4dcd9a51ab8de6afc53d9e17f8707e1f7a5e (diff) | |
download | qtwebkit-3749d61e1f7a59f5ec5067e560af1eb610c82015.tar.gz |
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
Diffstat (limited to 'Source/WebCore/css/WebKitCSSKeyframeRule.cpp')
-rw-r--r-- | Source/WebCore/css/WebKitCSSKeyframeRule.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 |