Index: Source/WebCore/css/CSSRuleList.cpp |
=================================================================== |
--- Source/WebCore/css/CSSRuleList.cpp (revision 78111) |
+++ Source/WebCore/css/CSSRuleList.cpp (working copy) |
@@ -22,8 +22,10 @@ |
#include "config.h" |
#include "CSSRuleList.h" |
+#include "CSSMutableStyleDeclaration.h" |
#include "CSSRule.h" |
#include "StyleList.h" |
+#include "WebKitCSSKeyframeRule.h" |
namespace WebCore { |
@@ -76,6 +78,11 @@ |
return; |
} |
+ if (m_lstCSSRules[index]->isKeyframeRule()) { |
+ if (CSSMutableStyleDeclaration* style = static_cast<WebKitCSSKeyframeRule*>(m_lstCSSRules[index].get())->style()) |
+ style->setParent(0); |
+ } |
+ |
m_lstCSSRules[index]->setParent(0); |
m_lstCSSRules.remove(index); |
} |