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