зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1335308 - Assert against non-length units in Gecko_CSSValue_SetAbsoluteLength. r=emilio
This commit is contained in:
Родитель
b5140be91a
Коммит
0e51a14782
|
@ -1091,6 +1091,10 @@ Gecko_NewCSSValueSharedList(uint32_t aLen)
|
|||
void
|
||||
Gecko_CSSValue_SetAbsoluteLength(nsCSSValueBorrowedMut aCSSValue, nscoord aLen)
|
||||
{
|
||||
MOZ_ASSERT(aCSSValue->GetUnit() == eCSSUnit_Null || aCSSValue->IsLengthUnit());
|
||||
// The call below could trigger refcounting if aCSSValue were a
|
||||
// FontFamilyList, but we just asserted that it's not. So we can
|
||||
// whitelist this for static analysis.
|
||||
aCSSValue->SetIntegerCoordValue(aLen);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче