From 259010e0828a5f2858f8c063907e96296233430a Mon Sep 17 00:00:00 2001 From: "ABE Hiroki (hATrayflood)" Date: Sun, 10 Apr 2016 11:35:52 +0900 Subject: [PATCH] Bug 1244637 - implement AnimationEffectTiming fill. r=hiro MozReview-Commit-ID: 46kYkxy06Sk --HG-- extra : rebase_source : b85e4c1d7dfada490a43e18fd6f012553f9045f0 --- dom/animation/AnimationEffectTiming.cpp | 7 +++++- testing/web-platform/meta/MANIFEST.json | 4 +++ .../animation-effect-timing/fill.html | 25 +++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 testing/web-platform/tests/web-animations/animation-effect-timing/fill.html diff --git a/dom/animation/AnimationEffectTiming.cpp b/dom/animation/AnimationEffectTiming.cpp index 24eee09485d4..1ecf6ce96540 100644 --- a/dom/animation/AnimationEffectTiming.cpp +++ b/dom/animation/AnimationEffectTiming.cpp @@ -55,7 +55,12 @@ AnimationEffectTiming::SetEndDelay(double aEndDelay) void AnimationEffectTiming::SetFill(const FillMode& aFill) { - // TODO: Bug 1244637 - implement AnimationEffectTiming fill + if (mTiming.mFill == aFill) { + return; + } + mTiming.mFill = aFill; + + PostSpecifiedTimingUpdated(mEffect); } void diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 58043b774874..00ccbff80e64 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -28753,6 +28753,10 @@ "path": "web-animations/animation-effect-timing/endDelay.html", "url": "/web-animations/animation-effect-timing/endDelay.html" }, + { + "path": "web-animations/animation-effect-timing/fill.html", + "url": "/web-animations/animation-effect-timing/fill.html" + }, { "path": "web-animations/animation-effect-timing/getAnimations.html", "url": "/web-animations/animation-effect-timing/getAnimations.html" diff --git a/testing/web-platform/tests/web-animations/animation-effect-timing/fill.html b/testing/web-platform/tests/web-animations/animation-effect-timing/fill.html new file mode 100644 index 000000000000..e635bebae1c9 --- /dev/null +++ b/testing/web-platform/tests/web-animations/animation-effect-timing/fill.html @@ -0,0 +1,25 @@ + + +fill tests + + + + + + +
+ +