aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothdevice.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-05-23 12:07:37 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-05-23 12:11:58 +0200
commit1e9be028cf6f5f347dcf2d6f66caa850ec3ee6e4 (patch)
tree9e40282536af97c53669e332b84a92fa78ce4b4e /components/script/dom/bluetoothdevice.rs
parent7cea4eb01ce3b84ca276ca417d933fb122005b51 (diff)
downloadservo-1e9be028cf6f5f347dcf2d6f66caa850ec3ee6e4.tar.gz
servo-1e9be028cf6f5f347dcf2d6f66caa850ec3ee6e4.zip
Use a simple Vec for the animation frame list
Adding an animation frame list is now just pushing a new pair onto the vector, while canceling one is setting its callback to None. This means we can't send NoAnimationCallbacksPresent anymore to the constellation when all entries were cancelled, but I'm not sure that's very important anyway. The good downside of this change is that when running the callbacks, if no new one was queued during their execution, we can just swap back the original Vec into the Document in run_the_animation_frame_callbacks, thus reusing the original allocation.
Diffstat (limited to 'components/script/dom/bluetoothdevice.rs')
0 files changed, 0 insertions, 0 deletions