зеркало из https://github.com/mozilla/gecko-dev.git
1231ac3eea
Currently, CommonAnimationManager::GetAnimationCollection returns early when the referenced list of animation collections is empty. So, for example, if we try to get the collection of CSS animations on an element on a page with no CSS animations, we will quickly return null without possibly expensive property lookup. However, if there is just one CSS animation on the page, we will do the property lookup for every element in the page where this method is called. In this bug, we would like to remove the linked list of animation collections since this is now the only place where it is used. So, in place if this optimization, we introduce quite a different one based on the changes from bug 1226091 which makes MayHaveAnimations() apply to animations on the element itself as well as pseudo elements. Using this, we can return early for any element that has never had any kind of animation on it. The page may have dozens of other animations but we will still return early. However, if the element has ever had any kind of animation on it, we will not return early. It is expected that this optimization is at least as good as the one it replaces. |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |