Re-enable inspector showing positioning values. Bug 113863, r=timeless,

sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@109878 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2001-12-06 22:29:53 +00:00
parent ad9f77e996
commit 49ffcb2809
3 changed files with 6 additions and 4 deletions

View File

@ -2438,6 +2438,9 @@ nsComputedDOMStyle::GetStaticOffset(PRUint8 aSide, nsIFrame* aFrame,
case eStyleUnit_Percent:
val->SetPercent(coord.GetPercentValue());
break;
case eStyleUnit_Auto:
val->SetString(NS_LITERAL_STRING("auto"));
break;
default:
NS_WARNING("double check the unit");
val->SetTwips(0);

View File

@ -154,10 +154,6 @@ function(aRow, aColId)
// implemented properly, and trying to fetch them results in
// a hailstorm of assertions.
switch (prop) {
case "left":
case "right":
case "top":
case "bottom":
case "-moz-outline-width":
case "marker-offset":
return "";

View File

@ -2438,6 +2438,9 @@ nsComputedDOMStyle::GetStaticOffset(PRUint8 aSide, nsIFrame* aFrame,
case eStyleUnit_Percent:
val->SetPercent(coord.GetPercentValue());
break;
case eStyleUnit_Auto:
val->SetString(NS_LITERAL_STRING("auto"));
break;
default:
NS_WARNING("double check the unit");
val->SetTwips(0);