Note that I'm looking for a way to track this across the entire process,
not a single document. I'd rather avoid having to track all documents
(both XUL and HTML) in the process if I can find a simpler solution.

On 30/10/15 01:18, Brian Birtles wrote:
> For CSS animations/transitions (not including SVG SMIL animations), you
> could use:
> 
>   document.timeline.getAnimations().some(
>     anim => anim.playState == 'running')
> 
> (Soon to become just document.getAnimations())
> 
> We could likewise just check if the DocumentTimeline is observing the
> refresh driver since we should stop doing that when CSS
> animations/transitions are at rest.
> 
> For rAF animations we could use the the js::NotifyAnimationActivity
> information? Or else look for registered frame request callbacks?
> 
> I think we could probably detect SVG SMIL animations too, if needed
> (perhaps by exposing the mRegisteredWithRefreshDriver member of
> nsSMILAnimationController although that might be too broad).


-- 
David Rajchenbach-Teller, PhD
 Performance Team, Mozilla

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to