diff --git a/dom/animation/CSSPseudoElement.cpp b/dom/animation/CSSPseudoElement.cpp index 40c6c40437d8..c8c2673e6e7f 100644 --- a/dom/animation/CSSPseudoElement.cpp +++ b/dom/animation/CSSPseudoElement.cpp @@ -68,9 +68,9 @@ CSSPseudoElement::Animate( const UnrestrictedDoubleOrKeyframeAnimationOptions& aOptions, ErrorResult& aError) { - // Bug 1241784: Implement this API. - NS_NOTREACHED("CSSPseudoElement::Animate() is not implemented yet."); - return nullptr; + Nullable target; + target.SetValue().SetAsCSSPseudoElement() = this; + return Element::Animate(target, aContext, aFrames, aOptions, aError); } /* static */ already_AddRefed