зеркало из https://github.com/mozilla/pjs.git
Bug 645142 - "ABORT: negative lengths and percents should be rejected by parser" with huge font size. r=dbaron
This commit is contained in:
Родитель
0e523959ea
Коммит
89901c2e43
|
@ -275,7 +275,8 @@ nscoord nsCSSValue::GetFixedLength(nsPresContext* aPresContext) const
|
|||
"not a fixed length unit");
|
||||
|
||||
float inches = mValue.mFloat / MM_PER_INCH_FLOAT;
|
||||
return inches * aPresContext->DeviceContext()->AppUnitsPerPhysicalInch();
|
||||
return NSToCoordFloorClamped(inches *
|
||||
float(aPresContext->DeviceContext()->AppUnitsPerPhysicalInch()));
|
||||
}
|
||||
|
||||
nscoord nsCSSValue::GetPixelLength() const
|
||||
|
|
Загрузка…
Ссылка в новой задаче