Fix compiling error for b2g platform.
Merge branch 'WebAnimations' of https://github.com/shellylin/mozilla-central into WebAnimations