Fix assert to not fire when it shouldn't. Bug 379405, r+sr=dbaron

This commit is contained in:
bzbarsky@mit.edu 2007-05-01 19:25:50 -07:00
Родитель 712a5203fc
Коммит d3c244039d
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -2454,6 +2454,10 @@ nsComputedDOMStyle::GetRelativeOffset(PRUint8 aSide, nsIDOMCSSValue** aValue)
break;
default:
NS_ERROR("Unexpected left/right/top/bottom unit");
// Fall through
case eStyleUnit_Auto:
// In this case, both this side and the opposite side are auto.
// The computed offset is 0.
val->SetAppUnits(0);
break;
}