mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
removed warnings
r=kmcclusk
This commit is contained in:
parent
a42525a78c
commit
dd6bd3d6ca
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user