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:
parent
ad9f77e996
commit
49ffcb2809
@ -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);
|
||||
|
||||
@ -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 "";
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user