#42029 "Dynamic use of the clip property is causing repaint problems". Make the clip area coordinates conform to the latest spec. r=attinasi.

This commit is contained in:
pierre%netscape.com 2000-06-22 05:28:36 +00:00
parent 06305fcd27
commit 78e4562501
4 changed files with 8 additions and 8 deletions

View File

@ -3444,10 +3444,10 @@ SetClipRect(nsIRenderingContext& aRenderingContext, nsIFrame* aFrame)
clipRect.x = display->mClip.x;
}
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
clipRect.width = clipRect.x + display->mClip.width;
clipRect.width = display->mClip.width;
}
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
clipRect.height = clipRect.y + display->mClip.height;
clipRect.height = display->mClip.height;
}
}

View File

@ -590,10 +590,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
clipRect.x = display->mClip.x;
}
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
clipRect.width = clipRect.x + display->mClip.width;
clipRect.width = display->mClip.width;
}
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
clipRect.height = clipRect.y + display->mClip.height;
clipRect.height = display->mClip.height;
}
}
}

View File

@ -590,10 +590,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
clipRect.x = display->mClip.x;
}
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
clipRect.width = clipRect.x + display->mClip.width;
clipRect.width = display->mClip.width;
}
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
clipRect.height = clipRect.y + display->mClip.height;
clipRect.height = display->mClip.height;
}
}
}

View File

@ -3444,10 +3444,10 @@ SetClipRect(nsIRenderingContext& aRenderingContext, nsIFrame* aFrame)
clipRect.x = display->mClip.x;
}
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
clipRect.width = clipRect.x + display->mClip.width;
clipRect.width = display->mClip.width;
}
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
clipRect.height = clipRect.y + display->mClip.height;
clipRect.height = display->mClip.height;
}
}