Bug 1612106 - Use NIGHTLY build flag to distinguish the writable/readonly Animation.timeline. r=birtles,bzbarsky

We only support writable Animation.timeline attribute on nightly
build, so use nightly build flag in WebIDL and Animation.h/cpp.
For the test expectations, we also use this build flag to skip them or
mark them as expected fail if necessary.

Differential Revision: https://phabricator.services.mozilla.com/D63432
This commit is contained in:
Boris Chiou
2020-02-24 23:07:09 +00:00
parent 8d3d3c5962
commit 2e8146eca6
14 changed files with 182 additions and 43 deletions

View File

@@ -189,6 +189,10 @@ void Animation::SetEffectNoUpdate(AnimationEffect* aEffect) {
}
void Animation::SetTimeline(AnimationTimeline* aTimeline) {
#ifndef NIGHTLY_BUILD
MOZ_ASSERT_UNREACHABLE(
"Animation.timeline setter is supported only on nightly");
#endif
SetTimelineNoUpdate(aTimeline);
PostUpdate();
}