| Index: Source/WebCore/css/WebKitCSSKeyframesRule.cpp
|
| ===================================================================
|
| --- Source/WebCore/css/WebKitCSSKeyframesRule.cpp (revision 78111)
|
| +++ Source/WebCore/css/WebKitCSSKeyframesRule.cpp (working copy)
|
| @@ -24,12 +24,13 @@
|
| */
|
|
|
| #include "config.h"
|
| +#include "WebKitCSSKeyframesRule.h"
|
|
|
| +#include "CSSMutableStyleDeclaration.h"
|
| #include "CSSParser.h"
|
| -#include "WebKitCSSKeyframesRule.h"
|
| -#include "WebKitCSSKeyframeRule.h"
|
| #include "CSSRuleList.h"
|
| #include "StyleSheet.h"
|
| +#include "WebKitCSSKeyframeRule.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -45,8 +46,13 @@
|
| if (length == 0)
|
| return;
|
|
|
| - for (int i = 0; i < length; i++)
|
| + for (int i = 0; i < length; i++) {
|
| + if (m_lstCSSRules->item(i)->isKeyframeRule()) {
|
| + if (CSSMutableStyleDeclaration* style = static_cast<WebKitCSSKeyframeRule*>(m_lstCSSRules->item(i))->style())
|
| + style->setParent(0);
|
| + }
|
| m_lstCSSRules->item(i)->setParent(0);
|
| + }
|
| }
|
|
|
| String WebKitCSSKeyframesRule::name() const
|
|
|