163483 backing out poor change that didnt take into account the translation of coordinates by the container frame. this is just a backout.

This commit is contained in:
mjudge%netscape.com 2002-08-20 22:08:44 +00:00
Родитель d74f0cd0bc
Коммит 93ea3f2d0f
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -740,8 +740,8 @@ nsFrame::Paint(nsIPresContext* aPresContext,
GetRect(rect);
rect.width-=2;
rect.height-=2;
rect.x++;
rect.y++;
rect.x=1; //we are in the coordinate system of the frame now with regards to the rendering context.
rect.y=1;
aRenderingContext.SetColor(NS_RGB(0,0,255));
nsRect drawrect(rect.x, rect.y, rect.width, rect.height);
aRenderingContext.DrawRect(drawrect);

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

@ -740,8 +740,8 @@ nsFrame::Paint(nsIPresContext* aPresContext,
GetRect(rect);
rect.width-=2;
rect.height-=2;
rect.x++;
rect.y++;
rect.x=1; //we are in the coordinate system of the frame now with regards to the rendering context.
rect.y=1;
aRenderingContext.SetColor(NS_RGB(0,0,255));
nsRect drawrect(rect.x, rect.y, rect.width, rect.height);
aRenderingContext.DrawRect(drawrect);