Bug 1049975 - Part 2: Make effect writable in Animation.webidl. r=smaug

MozReview-Commit-ID: HB4iWPXGkou

--HG--
extra : rebase_source : a2c5053aeb25872af66ea9b609b0ac05cdf96c85
This commit is contained in:
Boris Chiou 2016-07-12 18:05:48 +08:00
Родитель 238f6f1f58
Коммит 3b4aa2e726
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -98,6 +98,10 @@ public:
void GetId(nsAString& aResult) const { aResult = mId; }
void SetId(const nsAString& aId);
KeyframeEffectReadOnly* GetEffect() const { return mEffect; }
void SetEffect(AnimationEffectReadOnly* aEffect)
{
// TODO: Merged with SetEffect(KeyframeEffectReadOnly*) in the next patch.
}
void SetEffect(KeyframeEffectReadOnly* aEffect);
AnimationTimeline* GetTimeline() const { return mTimeline; }
void SetTimeline(AnimationTimeline* aTimeline);

Просмотреть файл

@ -17,9 +17,8 @@ enum AnimationPlayState { "idle", "pending", "running", "paused", "finished" };
optional AnimationTimeline? timeline)]
interface Animation : EventTarget {
attribute DOMString id;
// Bug 1049975: Make 'effect' writeable
[Func="nsDocument::IsWebAnimationsEnabled", Pure]
readonly attribute AnimationEffectReadOnly? effect;
attribute AnimationEffectReadOnly? effect;
[Func="nsDocument::IsWebAnimationsEnabled"]
attribute AnimationTimeline? timeline;
[BinaryName="startTimeAsDouble"]