[BeOS] bug 230267 The caret is stuck or hidden... r=sergei_d@fi.tartu.ee a=dbaron, no sr required (port code)

git-svn-id: svn://10.0.0.236/trunk@153947 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sergei_d%fi.tartu.ee
2004-03-13 19:27:03 +00:00
parent be8f61bb52
commit ec35aa06fb

View File

@@ -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();
}
}