diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-13 12:51:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | d441d6f39bb846989d95bcf5caf387b42414718d (patch) | |
tree | e367e64a75991c554930278175d403c072de6bb8 /Source/WebCore/css/WebKitCSSKeyframeRule.cpp | |
parent | 0060b2994c07842f4c59de64b5e3e430525c4b90 (diff) | |
download | qtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz |
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit.
Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebCore/css/WebKitCSSKeyframeRule.cpp')
-rw-r--r-- | Source/WebCore/css/WebKitCSSKeyframeRule.cpp | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp index 36f5c02f4..af85b97f4 100644 --- a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp +++ b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp @@ -27,16 +27,25 @@ #include "WebKitCSSKeyframeRule.h" #include "PropertySetCSSStyleDeclaration.h" +#include "StylePropertySet.h" #include "WebKitCSSKeyframesRule.h" #include <wtf/text/StringBuilder.h> namespace WebCore { -StylePropertySet* StyleKeyframe::mutableProperties() +StyleKeyframe::StyleKeyframe() +{ +} + +StyleKeyframe::~StyleKeyframe() +{ +} + +MutableStylePropertySet* StyleKeyframe::mutableProperties() { if (!m_properties->isMutable()) - m_properties = m_properties->copy(); - return m_properties.get(); + m_properties = m_properties->mutableCopy(); + return static_cast<MutableStylePropertySet*>(m_properties.get()); } void StyleKeyframe::setProperties(PassRefPtr<StylePropertySet> properties) @@ -87,13 +96,6 @@ String StyleKeyframe::cssText() const return result.toString(); } -void StyleKeyframe::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const -{ - MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); - info.addMember(m_properties); - info.addMember(m_key); -} - WebKitCSSKeyframeRule::WebKitCSSKeyframeRule(StyleKeyframe* keyframe, WebKitCSSKeyframesRule* parent) : CSSRule(0) , m_keyframe(keyframe) @@ -107,21 +109,13 @@ WebKitCSSKeyframeRule::~WebKitCSSKeyframeRule() m_propertiesCSSOMWrapper->clearParentRule(); } -CSSStyleDeclaration* WebKitCSSKeyframeRule::style() const +CSSStyleDeclaration* WebKitCSSKeyframeRule::style() { if (!m_propertiesCSSOMWrapper) - m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_keyframe->mutableProperties(), const_cast<WebKitCSSKeyframeRule*>(this)); + m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_keyframe->mutableProperties(), this); return m_propertiesCSSOMWrapper.get(); } -void WebKitCSSKeyframeRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const -{ - MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); - CSSRule::reportMemoryUsage(memoryObjectInfo); - info.addMember(m_keyframe); - info.addMember(m_propertiesCSSOMWrapper); -} - void WebKitCSSKeyframeRule::reattach(StyleRuleBase*) { // No need to reattach, the underlying data is shareable on mutation. |