From d6f7cc1d257f849bdd074b0b7c9e1de593927fd4 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Mon, 7 Dec 1998 19:00:45 +0000 Subject: [PATCH] No change --- layout/forms/nsHTMLButtonControlFrame.cpp | 17 +++++++++-------- .../html/forms/src/nsHTMLButtonControlFrame.cpp | 17 +++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/layout/forms/nsHTMLButtonControlFrame.cpp b/layout/forms/nsHTMLButtonControlFrame.cpp index 5dd42ddca40..bcf275c1dd6 100644 --- a/layout/forms/nsHTMLButtonControlFrame.cpp +++ b/layout/forms/nsHTMLButtonControlFrame.cpp @@ -402,7 +402,8 @@ nsHTMLButtonControlFrame::ShiftContents(nsIPresContext& aPresContext, PRBool aDo // XXX change the border, border-left, border-right, etc are not working. Instead change inset to outset, vice versa for (PRInt32 i = 0; i < 4; i++) { - spacing->mBorderStyle[i] = (spacing->mBorderStyle[i] == NS_STYLE_BORDER_STYLE_INSET) ? NS_STYLE_BORDER_STYLE_OUTSET : NS_STYLE_BORDER_STYLE_INSET; + spacing->SetBorderStyle(i,(spacing->GetBorderStyle(i) == NS_STYLE_BORDER_STYLE_INSET) ? + NS_STYLE_BORDER_STYLE_OUTSET : NS_STYLE_BORDER_STYLE_INSET); } mStyleContext->RecalcAutomaticData(&aPresContext); @@ -546,16 +547,16 @@ nsHTMLButtonControlFrame::Paint(nsIPresContext& aPresContext, nsRect inside(outside); inside.Deflate(onePixel, onePixel); - PRUint8 borderStyles[4]; - nscolor borderColors[4]; - nscolor black = NS_RGB(0,0,0); + PRUint8 borderStyles[4]; + nscolor borderColors[4]; + nscolor black = NS_RGB(0,0,0); for (PRInt32 i = 0; i < 4; i++) { - borderStyles[i] = NS_STYLE_BORDER_STYLE_DOTTED; + borderStyles[i] = NS_STYLE_BORDER_STYLE_DOTTED; borderColors[i] = black; } - nsCSSRendering::DrawDashedSides(0, aRenderingContext, borderStyles, borderColors, outside, - inside, PR_FALSE, nsnull); - } + nsCSSRendering::DrawDashedSides(0, aRenderingContext, borderStyles, borderColors, outside, + inside, PR_FALSE, nsnull); + } } return result; } diff --git a/layout/html/forms/src/nsHTMLButtonControlFrame.cpp b/layout/html/forms/src/nsHTMLButtonControlFrame.cpp index 5dd42ddca40..bcf275c1dd6 100644 --- a/layout/html/forms/src/nsHTMLButtonControlFrame.cpp +++ b/layout/html/forms/src/nsHTMLButtonControlFrame.cpp @@ -402,7 +402,8 @@ nsHTMLButtonControlFrame::ShiftContents(nsIPresContext& aPresContext, PRBool aDo // XXX change the border, border-left, border-right, etc are not working. Instead change inset to outset, vice versa for (PRInt32 i = 0; i < 4; i++) { - spacing->mBorderStyle[i] = (spacing->mBorderStyle[i] == NS_STYLE_BORDER_STYLE_INSET) ? NS_STYLE_BORDER_STYLE_OUTSET : NS_STYLE_BORDER_STYLE_INSET; + spacing->SetBorderStyle(i,(spacing->GetBorderStyle(i) == NS_STYLE_BORDER_STYLE_INSET) ? + NS_STYLE_BORDER_STYLE_OUTSET : NS_STYLE_BORDER_STYLE_INSET); } mStyleContext->RecalcAutomaticData(&aPresContext); @@ -546,16 +547,16 @@ nsHTMLButtonControlFrame::Paint(nsIPresContext& aPresContext, nsRect inside(outside); inside.Deflate(onePixel, onePixel); - PRUint8 borderStyles[4]; - nscolor borderColors[4]; - nscolor black = NS_RGB(0,0,0); + PRUint8 borderStyles[4]; + nscolor borderColors[4]; + nscolor black = NS_RGB(0,0,0); for (PRInt32 i = 0; i < 4; i++) { - borderStyles[i] = NS_STYLE_BORDER_STYLE_DOTTED; + borderStyles[i] = NS_STYLE_BORDER_STYLE_DOTTED; borderColors[i] = black; } - nsCSSRendering::DrawDashedSides(0, aRenderingContext, borderStyles, borderColors, outside, - inside, PR_FALSE, nsnull); - } + nsCSSRendering::DrawDashedSides(0, aRenderingContext, borderStyles, borderColors, outside, + inside, PR_FALSE, nsnull); + } } return result; }