зеркало из https://github.com/mozilla/pjs.git
Bug 562815 part 7 - Don't cache display animation values (due to bug 536660); r=dholbert
--HG-- extra : rebase_source : ddd0350c570dd101960901279e2411e672b05625
This commit is contained in:
Родитель
1d82717b5c
Коммит
1b86c0083f
|
@ -168,6 +168,14 @@ nsSMILCSSProperty::ValueFromString(const nsAString& aStr,
|
|||
|
||||
nsSMILCSSValueType::ValueFromString(mPropID, mElement, aStr, aValue,
|
||||
&aPreventCachingOfSandwich);
|
||||
|
||||
// XXX Due to bug 536660 (or at least that seems to be the most likely
|
||||
// culprit), when we have animation setting display:none on a <use> element,
|
||||
// if we DON'T set the property every sample, chaos ensues.
|
||||
if (!aPreventCachingOfSandwich && mPropID == eCSSProperty_display) {
|
||||
aPreventCachingOfSandwich = PR_TRUE;
|
||||
}
|
||||
|
||||
return aValue.IsNull() ? NS_ERROR_FAILURE : NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче