Whacked paint methods to use new constants

This commit is contained in:
kipp@netscape.com
1999-03-26 00:39:35 +00:00
parent 544351a4a6
commit 74c9fdfeaf
48 changed files with 74 additions and 72 deletions

View File

@@ -334,7 +334,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext& aPresContext,
nsRect rect;
if (eFramePaintLayer_Underlay == aWhichLayer)
if (NS_FRAME_PAINT_LAYER_BACKGROUND == aWhichLayer)
{
if (mOuterFocusStyle) {
@@ -360,7 +360,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext& aPresContext,
}
}
if (eFramePaintLayer_Overlay == aWhichLayer)
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer)
{
if /*(mOutlineStyle) */ (PR_FALSE) {
@@ -391,7 +391,7 @@ nsButtonFrameRenderer::PaintBorderAndBackground(nsIPresContext& aPresContext,
{
if (eFramePaintLayer_Underlay != aWhichLayer)
if (NS_FRAME_PAINT_LAYER_BACKGROUND != aWhichLayer)
return;
// get the button rect this is inside the focus and outline rects