From ec35aa06fb59eaffca001989924354ed5d34f11c Mon Sep 17 00:00:00 2001 From: "sergei_d%fi.tartu.ee" Date: Sat, 13 Mar 2004 19:27:03 +0000 Subject: [PATCH] [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 --- mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp b/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp index 0e43008fa5b..e66f841e566 100644 --- a/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp +++ b/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp @@ -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(); } }