aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothdevice.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-23 10:50:37 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-23 10:50:37 -0700
commit7d02c2055d5c5c7a5a6b1fff34bbef75e1da7cf6 (patch)
tree0b7f005ac4432a7159527b94a5586eda02547d77 /components/script/dom/bluetoothdevice.rs
parent208337976d0b913e00fe9c090c6868027092a0a1 (diff)
parent1e9be028cf6f5f347dcf2d6f66caa850ec3ee6e4 (diff)
downloadservo-7d02c2055d5c5c7a5a6b1fff34bbef75e1da7cf6.tar.gz
servo-7d02c2055d5c5c7a5a6b1fff34bbef75e1da7cf6.zip
Auto merge of #11341 - nox:raf, r=pcwalton
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. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11341) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bluetoothdevice.rs')
0 files changed, 0 insertions, 0 deletions