зеркало из https://github.com/mozilla/gecko-dev.git
[BeOS] bug 230267 The caret is stuck or hidden... r=sergei_d@fi.tartu.ee a=dbaron, no sr required (port code)
This commit is contained in:
Родитель
55d9209a4a
Коммит
72094132af
|
@ -666,7 +666,11 @@ NS_IMETHODIMP nsRenderingContextBeOS::InvertRect(nscoord aX, nscoord aY, nscoord
|
|||
|
||||
if (w && h) {
|
||||
if (LockAndUpdateView()) {
|
||||
//Mozilla doesn't seem to set clipping for InvertRect, so we do it here - bug 230267
|
||||
BRegion tmpClip = BRegion(BRect(x, y, x + w - 1, y + h - 1));
|
||||
mView->ConstrainClippingRegion(&tmpClip);
|
||||
mView->InvertRect(BRect(x, y, x + w - 1, y + h - 1));
|
||||
mView->Sync();
|
||||
mView->UnlockLooper();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче