summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/css/WebKitCSSKeyframesRule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/WebKitCSSKeyframesRule.cpp')
-rw-r--r--Source/WebCore/css/WebKitCSSKeyframesRule.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/WebCore/css/WebKitCSSKeyframesRule.cpp b/Source/WebCore/css/WebKitCSSKeyframesRule.cpp
index bf0c463..3b41f43 100644
--- a/Source/WebCore/css/WebKitCSSKeyframesRule.cpp
+++ b/Source/WebCore/css/WebKitCSSKeyframesRule.cpp
@@ -88,7 +88,14 @@ const WebKitCSSKeyframeRule* WebKitCSSKeyframesRule::item(unsigned index) const
void WebKitCSSKeyframesRule::append(WebKitCSSKeyframeRule* rule)
{
- m_lstCSSRules.get()->append(rule);
+ if (!rule)
+ return;
+
+ m_lstCSSRules->append(rule);
+ rule->setParent(this);
+
+ if (CSSMutableStyleDeclaration* style = rule->style())
+ style->setParent(this);
}
void WebKitCSSKeyframesRule::insertRule(const String& rule)