mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
7976ecebaf
This patch adds the WebIDL definitions and implementation of getAnimationPlayers on Element. It does not include the full definition of AnimationPlayer but only readonly versions of the currentTime and startTime attributes since these are easy to implement and enable identifying the different animations that are returned for the sake of testing. Web Animations defines getAnimationPlayers as only returning the animations that are either running or will run in the future (known as "current" animations). This will likely change since it seems desirable to be able query animations that have finished but are applying a forwards fill. For now, however, this patch makes us only return animations that have not finished. This patch also removes an assertion in ElementAnimation::GetLocalTime that would fail if called on a finished transition. This assertion is no longer necessary since an earlier patch in this series removed the overloading of the animation start time that meant calling this on a finished transition was unsafe. Furthermore, this assertion, if it were not removed, would fail if script holds onto a transition and queries its start time after it completed.
18 lines
660 B
Plaintext
18 lines
660 B
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* The origin of this IDL file is
|
|
* http://dev.w3.org/fxtf/web-animations/#the-animatable-interface
|
|
*
|
|
* Copyright © 2014 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
* liability, trademark and document use rules apply.
|
|
*/
|
|
|
|
[NoInterfaceObject]
|
|
interface Animatable {
|
|
[Pref="dom.animations-api.core.enabled"]
|
|
sequence<AnimationPlayer> getAnimationPlayers();
|
|
};
|