removed warnings

r=kmcclusk
This commit is contained in:
rods%netscape.com 2000-01-18 23:23:52 +00:00
parent a42525a78c
commit dd6bd3d6ca
4 changed files with 6 additions and 8 deletions

View File

@ -336,7 +336,6 @@ nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
// if it is (or part of it is already) in view.
PRBool nsComboboxControlFrame::ShouldScrollFrameIntoView(nsIPresShell * aShell, nsIPresContext * aPresContext, nsIFrame *aFrame)
{
nsresult rv = NS_OK;
if (!aFrame) {
return NS_ERROR_NULL_POINTER;
}
@ -381,8 +380,8 @@ PRBool nsComboboxControlFrame::ShouldScrollFrameIntoView(nsIPresShell * aShell,
clipView->GetDimensions(&visibleRect.width, &visibleRect.height);
// The actual scroll offsets
nscoord scrollOffsetX = visibleRect.x;
nscoord scrollOffsetY = visibleRect.y;
//nscoord scrollOffsetX = visibleRect.x;
//nscoord scrollOffsetY = visibleRect.y;
// The frame's bounds in the coordinate space of the scrolled frame
nsRect frameBounds;

View File

@ -301,7 +301,7 @@ nsGfxButtonControlFrame::DoNavQuirksReflow(nsIPresContext* aPresContext
// Now do the reverse calculation of the
// NavQuirks button to get the size of the text
nscoord textWidth = (2 * aDesiredSize.width) / 3;
//nscoord textWidth = (2 * aDesiredSize.width) / 3;
nscoord textHeight = (2 * aDesiredSize.height) / 3;
// Center the child and add back in the border and badding

View File

@ -336,7 +336,6 @@ nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
// if it is (or part of it is already) in view.
PRBool nsComboboxControlFrame::ShouldScrollFrameIntoView(nsIPresShell * aShell, nsIPresContext * aPresContext, nsIFrame *aFrame)
{
nsresult rv = NS_OK;
if (!aFrame) {
return NS_ERROR_NULL_POINTER;
}
@ -381,8 +380,8 @@ PRBool nsComboboxControlFrame::ShouldScrollFrameIntoView(nsIPresShell * aShell,
clipView->GetDimensions(&visibleRect.width, &visibleRect.height);
// The actual scroll offsets
nscoord scrollOffsetX = visibleRect.x;
nscoord scrollOffsetY = visibleRect.y;
//nscoord scrollOffsetX = visibleRect.x;
//nscoord scrollOffsetY = visibleRect.y;
// The frame's bounds in the coordinate space of the scrolled frame
nsRect frameBounds;

View File

@ -301,7 +301,7 @@ nsGfxButtonControlFrame::DoNavQuirksReflow(nsIPresContext* aPresContext
// Now do the reverse calculation of the
// NavQuirks button to get the size of the text
nscoord textWidth = (2 * aDesiredSize.width) / 3;
//nscoord textWidth = (2 * aDesiredSize.width) / 3;
nscoord textHeight = (2 * aDesiredSize.height) / 3;
// Center the child and add back in the border and badding