Bug 1305325 - Part 3: Make AnimationPropertyValueDetails::mValue optional. r=birtles,smaug

MozReview-Commit-ID: H2fhRfC0Uoh
This commit is contained in:
Hiroyuki Ikezoe 2016-12-04 08:07:39 +09:00
Родитель d4826bcff3
Коммит 20bc31d6c8
2 изменённых файлов: 8 добавлений и 6 удалений

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

@ -800,11 +800,13 @@ CreatePropertyValue(nsCSSPropertyID aProperty,
{
aResult.mOffset = aOffset;
nsString stringValue;
DebugOnly<bool> uncomputeResult =
StyleAnimationValue::UncomputeValue(aProperty, aValue, stringValue);
MOZ_ASSERT(uncomputeResult, "failed to uncompute value");
aResult.mValue = stringValue;
if (!aValue.IsNull()) {
nsString stringValue;
DebugOnly<bool> uncomputeResult =
StyleAnimationValue::UncomputeValue(aProperty, aValue, stringValue);
MOZ_ASSERT(uncomputeResult, "failed to uncompute value");
aResult.mValue.Construct(stringValue);
}
if (aTimingFunction) {
aResult.mEasing.Construct();

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

@ -45,7 +45,7 @@ interface KeyframeEffectReadOnly : AnimationEffectReadOnly {
// Non-standard extensions
dictionary AnimationPropertyValueDetails {
required double offset;
required DOMString value;
DOMString value;
DOMString easing;
required CompositeOperation composite;
};