diff options
Diffstat (limited to 'Source/WebCore/css/WebKitCSSKeyframeRule.cpp')
-rw-r--r-- | Source/WebCore/css/WebKitCSSKeyframeRule.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp index 8acb54979..36f5c02f4 100644 --- a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp +++ b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,8 +27,6 @@ #include "WebKitCSSKeyframeRule.h" #include "PropertySetCSSStyleDeclaration.h" -#include "StylePropertySet.h" -#include "WebCoreMemoryInstrumentation.h" #include "WebKitCSSKeyframesRule.h" #include <wtf/text/StringBuilder.h> @@ -97,7 +95,7 @@ void StyleKeyframe::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const } WebKitCSSKeyframeRule::WebKitCSSKeyframeRule(StyleKeyframe* keyframe, WebKitCSSKeyframesRule* parent) - : CSSRule(0, CSSRule::WEBKIT_KEYFRAME_RULE) + : CSSRule(0) , m_keyframe(keyframe) { setParentRule(parent); @@ -116,12 +114,18 @@ CSSStyleDeclaration* WebKitCSSKeyframeRule::style() const return m_propertiesCSSOMWrapper.get(); } -void WebKitCSSKeyframeRule::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +void WebKitCSSKeyframeRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const { MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); - CSSRule::reportBaseClassMemoryUsage(memoryObjectInfo); + 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. + ASSERT_NOT_REACHED(); +} + } // namespace WebCore |