| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 9104a6af298d744b7fcce473dc367fd1560eab87..465c4dbfe9149fa31c6146aeabed89ae699bf708 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1450,6 +1450,13 @@ void Element::attach(const AttachContext& context)
|
|
|
| addCallbackSelectors();
|
|
|
| + if (hasRareData() && !layoutObject()) {
|
| + if (ElementAnimations* elementAnimations = elementRareData()->elementAnimations()) {
|
| + elementAnimations->cssAnimations().cancel();
|
| + elementAnimations->setAnimationStyleChange(false);
|
| + }
|
| + }
|
| +
|
| StyleResolverParentScope parentScope(*this);
|
|
|
| createPseudoElementIfNeeded(BEFORE);
|
| @@ -1467,13 +1474,6 @@ void Element::attach(const AttachContext& context)
|
| // children are attached because the first letter text could come
|
| // from any of them.
|
| createPseudoElementIfNeeded(FIRST_LETTER);
|
| -
|
| - if (hasRareData() && !layoutObject()) {
|
| - if (ElementAnimations* elementAnimations = elementRareData()->elementAnimations()) {
|
| - elementAnimations->cssAnimations().cancel();
|
| - elementAnimations->setAnimationStyleChange(false);
|
| - }
|
| - }
|
| }
|
|
|
| void Element::detach(const AttachContext& context)
|
|
|