Remove bogus assertions. Bug 344888, r+sr=tor.
git-svn-id: svn://10.0.0.236/trunk@225058 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d7d73517fd
commit
f10ea529ea
@ -317,9 +317,6 @@ nsSVGAngle::SetValueAsString(const nsAString & aValueAsString)
|
||||
if (rest!=number) {
|
||||
PRUint16 unitType = GetUnitTypeForString(nsCRT::strtok(rest, "\x20\x9\xD\xA", &rest));
|
||||
rv = NewValueSpecifiedUnits(unitType, (float)value);
|
||||
if (rv != NS_OK) {
|
||||
NS_ERROR("invalid length type");
|
||||
}
|
||||
}
|
||||
else { // parse error
|
||||
// no number
|
||||
|
||||
@ -432,7 +432,6 @@ nsSVGLength::SetValueAsString(const nsAString & aValueAsString)
|
||||
else { // parse error
|
||||
// not a valid unit type
|
||||
rv = NS_ERROR_FAILURE;
|
||||
NS_ERROR("invalid length type");
|
||||
}
|
||||
}
|
||||
else { // parse error
|
||||
|
||||
@ -223,7 +223,6 @@ nsSVGLength2::SetBaseValueString(const nsAString &aValueAsString,
|
||||
else { // parse error
|
||||
// not a valid unit type
|
||||
rv = NS_ERROR_FAILURE;
|
||||
NS_ERROR("invalid length type");
|
||||
}
|
||||
}
|
||||
else { // parse error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user