Make unconstrained width assertions into warnings because we can hit them when we clamp really large widths. (Bug 525100) r=roc

This commit is contained in:
L. David Baron 2010-06-28 13:47:39 -07:00
Родитель b5888e8b07
Коммит a72acc83f3
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -1,4 +1,4 @@
load 306902-1.xml
load 383872-1.svg
asserts(8) load 423110-1.xhtml
load 423110-1.xhtml
load 445711.html

Просмотреть файл

@ -2191,8 +2191,10 @@ nsLayoutUtils::ComputeWidthDependentValue(
nscoord aContainingBlockWidth,
const nsStyleCoord& aCoord)
{
NS_PRECONDITION(aContainingBlockWidth != NS_UNCONSTRAINEDSIZE,
"unconstrained widths no longer supported");
NS_WARN_IF_FALSE(aContainingBlockWidth != NS_UNCONSTRAINEDSIZE,
"have unconstrained width; this should only result from "
"very large sizes, not attempts at intrinsic width "
"calculation");
if (eStyleUnit_Coord == aCoord.GetUnit()) {
return aCoord.GetCoordValue();