Backed out 8 changesets (bug 1873776) for causing vendor failures. CLOSED TREE
[gecko.git] / dom / animation / KeyframeEffectParams.h
blob08bb22e08e4b97e4e7e69510bbfb0868ecb31798
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_KeyframeEffectParams_h
8 #define mozilla_KeyframeEffectParams_h
10 #include "mozilla/dom/KeyframeEffectBinding.h" // IterationCompositeOperation
11 #include "mozilla/PseudoStyleType.h" // PseudoStyleType
13 namespace mozilla {
15 struct KeyframeEffectParams {
16 KeyframeEffectParams() = default;
17 KeyframeEffectParams(dom::IterationCompositeOperation aIterationComposite,
18 dom::CompositeOperation aComposite,
19 PseudoStyleType aPseudoType)
20 : mIterationComposite(aIterationComposite),
21 mComposite(aComposite),
22 mPseudoType(aPseudoType) {}
23 explicit KeyframeEffectParams(dom::CompositeOperation aComposite)
24 : mComposite(aComposite) {}
26 dom::IterationCompositeOperation mIterationComposite =
27 dom::IterationCompositeOperation::Replace;
28 dom::CompositeOperation mComposite = dom::CompositeOperation::Replace;
29 PseudoStyleType mPseudoType = PseudoStyleType::NotPseudo;
32 } // namespace mozilla
34 #endif // mozilla_KeyframeEffectParams_h