Bug 1342316 - Check eCSSUnit_Calc_Plus' array length in assertion. r=heycam

MozReview-Commit-ID: 9bxXrl36FtA

--HG--
extra : rebase_source : 66b5bbaf410cd1737e4ce6c08ba40c26d6924915
This commit is contained in:
Hiroyuki Ikezoe 2017-04-28 07:52:02 +09:00
parent eb8dafe978
commit b9a5793e2b

View File

@ -873,7 +873,7 @@ nsCSSValue::GetCalcValue() const
"Calc unit should be eCSSUnit_Calc_Plus");
const nsCSSValue::Array *calcPlusArray = rootValue.GetArrayValue();
MOZ_ASSERT(array->Count() == 2,
MOZ_ASSERT(calcPlusArray->Count() == 2,
"eCSSUnit_Calc_Plus should have a 2-length array");
const nsCSSValue& length = calcPlusArray->Item(0);