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; aResult.mOffset = aOffset;
nsString stringValue; if (!aValue.IsNull()) {
DebugOnly<bool> uncomputeResult = nsString stringValue;
StyleAnimationValue::UncomputeValue(aProperty, aValue, stringValue); DebugOnly<bool> uncomputeResult =
MOZ_ASSERT(uncomputeResult, "failed to uncompute value"); StyleAnimationValue::UncomputeValue(aProperty, aValue, stringValue);
aResult.mValue = stringValue; MOZ_ASSERT(uncomputeResult, "failed to uncompute value");
aResult.mValue.Construct(stringValue);
}
if (aTimingFunction) { if (aTimingFunction) {
aResult.mEasing.Construct(); aResult.mEasing.Construct();

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

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