зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357295 - Allow all numeric values for SMIL. r=birtles
MozReview-Commit-ID: Knlgs1j4dan --HG-- extra : rebase_source : 02e84a42a377deb0489c123adaa6db4df244ca56
This commit is contained in:
Родитель
6ac20e3acf
Коммит
76442db0fb
|
@ -478,18 +478,6 @@ ValueFromStringHelper(nsCSSPropertyID aPropID,
|
|||
const ServoComputedValuesWithParent servoStyles =
|
||||
{ currentStyle, parentStyle };
|
||||
|
||||
// FIXME (bug 1357295): Handle negative values properly
|
||||
#ifdef DEBUG
|
||||
{
|
||||
bool isNegative = false;
|
||||
Unused << GetNonNegativePropValue(aString, aPropID, isNegative);
|
||||
if (isNegative) {
|
||||
NS_WARNING("stylo: Special negative value handling not yet supported"
|
||||
" (bug 1357295)");
|
||||
}
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
// Parse property
|
||||
nsIDocument* doc = aTargetElement->GetUncomposedDoc();
|
||||
if (!doc) {
|
||||
|
@ -504,7 +492,8 @@ ValueFromStringHelper(nsCSSPropertyID aPropID,
|
|||
Servo_ParseProperty(aPropID,
|
||||
&value,
|
||||
data,
|
||||
ParsingMode::AllowUnitlessLength).Consume();
|
||||
ParsingMode::AllowUnitlessLength |
|
||||
ParsingMode::AllowAllNumericValues).Consume();
|
||||
if (!servoDeclarationBlock) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче