Ensure that text inputs, checkboxes and radios paint over inline element backgrounds that are behind them. Fix a few build warnings. b=107244 r=rods sr=waterson

This commit is contained in:
dbaron@fas.harvard.edu
2001-11-03 06:23:19 +00:00
parent b6be3b19d6
commit 686c80f47c
18 changed files with 167 additions and 165 deletions

View File

@@ -113,7 +113,6 @@ NS_IMETHODIMP nsGfxCheckboxControlFrame::GetAccessible(nsIAccessible** aAccessib
nsCOMPtr<nsIAccessibilityService> accService = do_GetService("@mozilla.org/accessibilityService;1");
if (accService) {
nsIAccessible* acc = nsnull;
return accService->CreateHTMLCheckboxAccessible(NS_STATIC_CAST(nsIFrame*, this), aAccessible);
}
@@ -403,7 +402,7 @@ nsGfxCheckboxControlFrame::Paint(nsIPresContext* aPresContext,
}
// Paint the background
nsFormControlFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
nsresult rv = nsFormControlFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer) {
PRBool doDefaultPainting = PR_TRUE;
// Paint the checkmark
@@ -436,9 +435,7 @@ nsGfxCheckboxControlFrame::Paint(nsIPresContext* aPresContext,
PaintCheckBox(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
}
}
// Call to the base class to draw selection borders when appropriate
return nsFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
return rv;
}
//------------------------------------------------------------