From 49ffcb28098e112ac18b1406a2e5d51a98e5f0e6 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 6 Dec 2001 22:29:53 +0000 Subject: [PATCH] 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 --- mozilla/content/html/style/src/nsComputedDOMStyle.cpp | 3 +++ .../resources/content/viewers/computedStyle/computedStyle.js | 4 ---- mozilla/layout/style/nsComputedDOMStyle.cpp | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mozilla/content/html/style/src/nsComputedDOMStyle.cpp b/mozilla/content/html/style/src/nsComputedDOMStyle.cpp index ae9f51813aa..5935e2297be 100644 --- a/mozilla/content/html/style/src/nsComputedDOMStyle.cpp +++ b/mozilla/content/html/style/src/nsComputedDOMStyle.cpp @@ -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); diff --git a/mozilla/extensions/inspector/resources/content/viewers/computedStyle/computedStyle.js b/mozilla/extensions/inspector/resources/content/viewers/computedStyle/computedStyle.js index 30f4f037d10..dddb597227e 100644 --- a/mozilla/extensions/inspector/resources/content/viewers/computedStyle/computedStyle.js +++ b/mozilla/extensions/inspector/resources/content/viewers/computedStyle/computedStyle.js @@ -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 ""; diff --git a/mozilla/layout/style/nsComputedDOMStyle.cpp b/mozilla/layout/style/nsComputedDOMStyle.cpp index ae9f51813aa..5935e2297be 100644 --- a/mozilla/layout/style/nsComputedDOMStyle.cpp +++ b/mozilla/layout/style/nsComputedDOMStyle.cpp @@ -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);