зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
432d8b5f87
Коммит
4be6afc2f7
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче