mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Removed uneeded code; added a reminder comment
This commit is contained in:
parent
46b1b4e39c
commit
c0a8fa1cf2
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user