changed clipping in Paint to be intersect instead of replace

r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@56397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1999-12-22 19:50:47 +00:00
parent 20b8c791fe
commit 3fcb63ffc0
2 changed files with 4 additions and 4 deletions

View File

@@ -424,7 +424,7 @@ nsHTMLButtonControlFrame::Paint(nsIPresContext* aPresContext,
{
const nsStyleDisplay* disp = (const nsStyleDisplay*)
mStyleContext->GetStyleData(eStyleStruct_Display);
if (disp->mVisible)
if (disp->mVisible == NS_STYLE_VISIBILITY_VISIBLE)
{
nsRect rect(0, 0, mRect.width, mRect.height);
mRenderer.PaintButton(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer, rect);
@@ -453,7 +453,7 @@ nsHTMLButtonControlFrame::Paint(nsIPresContext* aPresContext,
aRenderingContext.PushState();
PRBool clipEmpty;
aRenderingContext.SetClipRect(rect, nsClipCombine_kReplace, clipEmpty);
aRenderingContext.SetClipRect(rect, nsClipCombine_kIntersect, clipEmpty);
PaintChildren(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);

View File

@@ -424,7 +424,7 @@ nsHTMLButtonControlFrame::Paint(nsIPresContext* aPresContext,
{
const nsStyleDisplay* disp = (const nsStyleDisplay*)
mStyleContext->GetStyleData(eStyleStruct_Display);
if (disp->mVisible)
if (disp->mVisible == NS_STYLE_VISIBILITY_VISIBLE)
{
nsRect rect(0, 0, mRect.width, mRect.height);
mRenderer.PaintButton(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer, rect);
@@ -453,7 +453,7 @@ nsHTMLButtonControlFrame::Paint(nsIPresContext* aPresContext,
aRenderingContext.PushState();
PRBool clipEmpty;
aRenderingContext.SetClipRect(rect, nsClipCombine_kReplace, clipEmpty);
aRenderingContext.SetClipRect(rect, nsClipCombine_kIntersect, clipEmpty);
PaintChildren(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);