Make dropdowns paint over the background beneath them (bug 95826). r=jkeiser@netscape.com, sr=attinasi@netscape.com, a=asa

git-svn-id: svn://10.0.0.236/trunk@118206 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jkeiser%netscape.com 2002-04-05 04:29:05 +00:00
parent 512a6e3255
commit 7ec2a482fd
2 changed files with 18 additions and 12 deletions

View File

@ -2526,13 +2526,16 @@ nsComboboxControlFrame::Paint(nsIPresContext* aPresContext,
printf("%p paint layer %d at (%d, %d, %d, %d)\n", this, aWhichLayer,
aDirtyRect.x, aDirtyRect.y, aDirtyRect.width, aDirtyRect.height);
#endif
nsAreaFrame::Paint(aPresContext,aRenderingContext,aDirtyRect,aWhichLayer);
//if (mGoodToGo) {
// return NS_OK;
//}
// We paint everything in the foreground so that the form control's
// parents cannot paint over it in other passes (bug 95826).
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer) {
nsAreaFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
NS_FRAME_PAINT_LAYER_BACKGROUND);
nsAreaFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
NS_FRAME_PAINT_LAYER_FLOATERS);
nsAreaFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
NS_FRAME_PAINT_LAYER_FOREGROUND);
if (mDisplayFrame) {
aRenderingContext.PushState();
PRBool clipEmpty;

View File

@ -2526,13 +2526,16 @@ nsComboboxControlFrame::Paint(nsIPresContext* aPresContext,
printf("%p paint layer %d at (%d, %d, %d, %d)\n", this, aWhichLayer,
aDirtyRect.x, aDirtyRect.y, aDirtyRect.width, aDirtyRect.height);
#endif
nsAreaFrame::Paint(aPresContext,aRenderingContext,aDirtyRect,aWhichLayer);
//if (mGoodToGo) {
// return NS_OK;
//}
// We paint everything in the foreground so that the form control's
// parents cannot paint over it in other passes (bug 95826).
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer) {
nsAreaFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
NS_FRAME_PAINT_LAYER_BACKGROUND);
nsAreaFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
NS_FRAME_PAINT_LAYER_FLOATERS);
nsAreaFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
NS_FRAME_PAINT_LAYER_FOREGROUND);
if (mDisplayFrame) {
aRenderingContext.PushState();
PRBool clipEmpty;