Bug 1355348 - Add constructor to AnimationValue; r=hiro

We will use this later in this patch series to simplify the creation of SMIL's
ValueWrapper objects.

MozReview-Commit-ID: 7EF9CN2SdwQ
This commit is contained in:
Brian Birtles
2017-04-26 13:00:11 +09:00
parent 6f31f71d47
commit a21e613ca1
3 changed files with 9 additions and 2 deletions

View File

@@ -570,6 +570,12 @@ private:
struct AnimationValue
{
explicit AnimationValue(const StyleAnimationValue& aValue)
: mGecko(aValue) { }
explicit AnimationValue(const RefPtr<RawServoAnimationValue>& aValue)
: mServo(aValue) { }
AnimationValue() = default;
// mGecko and mServo are mutually exclusive: only one or the other should
// ever be set.
// FIXME: After obsoleting StyleAnimationValue, we should remove mGecko, and