W3C home > Mailing lists > Public > public-web-perf@w3.org > December 2011

Re: [RequestAnimationFrame] Canceling animation frame requests from animation frame callbacks may not work

From: James Robinson <jamesr@google.com>
Date: Thu, 8 Dec 2011 14:54:02 -0800
Message-ID: <CAD73mdJ999tgQdjih2rHzg_U5a+9Cp20A+RSTEy9Y8pAxGOORA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-web-perf@w3.org
I've pushed https://dvcs.w3.org/hg/webperf/rev/a43340fd9097, viewable at
which I believe fixes this issue.  I've made the cancelled flag a property
of the callback itself rather than state carried along on the side and
clarified that cancelAnimationFrame() sets this flag regardless of whether
the callback is in any document's animation list or not.

It's possible that I've flubbed something here, please let me know if so.

- James

On Tue, Dec 6, 2011 at 10:22 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 12/7/11 12:34 AM, James Robinson wrote:
>> I believe that if I modify the lookup to do what the Note says instead
>> of what the normative text says then it should behave as expected.
> Agreed.
>  Would that work for you?
> I think having cancel always cancel reliably would make more sense, yeah.
> -Boris
Received on Thursday, 8 December 2011 22:54:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:32 UTC