зеркало из 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;
|
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;
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче