| Index: sky/engine/core/css/resolver/SharedStyleFinder.cpp
|
| diff --git a/sky/engine/core/css/resolver/SharedStyleFinder.cpp b/sky/engine/core/css/resolver/SharedStyleFinder.cpp
|
| index 538e5f851bc86b30c0187ffc8e7b1e6f7c351e46..6ebc540975d1f028fce7b84dcb68e3e8718cdae5 100644
|
| --- a/sky/engine/core/css/resolver/SharedStyleFinder.cpp
|
| +++ b/sky/engine/core/css/resolver/SharedStyleFinder.cpp
|
| @@ -153,7 +153,10 @@ inline Element* SharedStyleFinder::findElementForStyleSharing() const
|
| StyleSharingList& styleSharingList = m_styleResolver.styleSharingList();
|
| for (StyleSharingList::iterator it = styleSharingList.begin(); it != styleSharingList.end(); ++it) {
|
| Element& candidate = **it;
|
| - if (!canShareStyleWithElement(candidate))
|
| + // We shouldn't have elements in the style sharing list that don't
|
| + // support style sharing but we can end up with one currently if it gets
|
| + // added to the list and then it starts an animation.
|
| + if (candidate.hasActiveAnimations() || !canShareStyleWithElement(candidate))
|
| continue;
|
| if (it != styleSharingList.begin()) {
|
| // Move the element to the front of the LRU
|
|
|