Removed uneeded code; added a reminder comment

This commit is contained in:
kipp 1998-05-09 03:23:41 +00:00
parent 46b1b4e39c
commit c0a8fa1cf2
2 changed files with 4 additions and 12 deletions

View File

@ -266,6 +266,8 @@ nsCSSLayout::RelativePositionChildren(nsIPresContext* aCX,
}
}
// XXX if this can handle proportional widths then do so
// XXX check against other possible values and update
static PRBool
GetStyleDimension(nsIPresContext* aPresContext,
nsIFrame* aFrame,
@ -274,7 +276,6 @@ GetStyleDimension(nsIPresContext* aPresContext,
nscoord& aResult)
{
nsIFrame* parentFrame;
float p2t;
PRBool rv = PR_FALSE;
switch (aCoord.GetUnit()) {
@ -300,11 +301,6 @@ GetStyleDimension(nsIPresContext* aPresContext,
}
}
break;
case eStyleUnit_Integer:
p2t = aPresContext->GetPixelsToTwips();
aResult = nscoord(aCoord.GetIntValue() * p2t);
break;
}
if (aResult < 0) {
rv = PR_FALSE;

View File

@ -266,6 +266,8 @@ nsCSSLayout::RelativePositionChildren(nsIPresContext* aCX,
}
}
// XXX if this can handle proportional widths then do so
// XXX check against other possible values and update
static PRBool
GetStyleDimension(nsIPresContext* aPresContext,
nsIFrame* aFrame,
@ -274,7 +276,6 @@ GetStyleDimension(nsIPresContext* aPresContext,
nscoord& aResult)
{
nsIFrame* parentFrame;
float p2t;
PRBool rv = PR_FALSE;
switch (aCoord.GetUnit()) {
@ -300,11 +301,6 @@ GetStyleDimension(nsIPresContext* aPresContext,
}
}
break;
case eStyleUnit_Integer:
p2t = aPresContext->GetPixelsToTwips();
aResult = nscoord(aCoord.GetIntValue() * p2t);
break;
}
if (aResult < 0) {
rv = PR_FALSE;