Changed Paint() to leave the clip rect relative to the view's origin (and

not translate by the view's x and y-offset), because the view manager has already
translated into the view's local coodinate space before calling Paint()
This commit is contained in:
troy%netscape.com 1999-08-10 23:52:36 +00:00
Родитель 432d8b5f87
Коммит 4be6afc2f7
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -274,12 +274,10 @@ NS_IMETHODIMP nsView :: Paint(nsIRenderingContext& rc, const nsRect& rect,
{
if ((mClip.mLeft != mClip.mRight) && (mClip.mTop != mClip.mBottom))
{
nsRect crect, brect;
nsRect crect;
GetBounds(brect);
crect.x = mClip.mLeft + brect.x;
crect.y = mClip.mTop + brect.y;
crect.x = mClip.mLeft;
crect.y = mClip.mTop;
crect.width = mClip.mRight - mClip.mLeft;
crect.height = mClip.mBottom - mClip.mTop;