зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1305325 - Part 3: Make AnimationPropertyValueDetails::mValue optional. r=birtles,smaug
MozReview-Commit-ID: H2fhRfC0Uoh
This commit is contained in:
Родитель
d4826bcff3
Коммит
20bc31d6c8
|
@ -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;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче