summaryrefslogtreecommitdiff
path: root/mozilla-1190935.patch
blob: 242311f61f359ecc1b5fca1aeab6cbf9ad18aeb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# HG changeset patch
# User Lee Salzman <lsalzman@mozilla.com>
# Date 1438873323 14400
#      Thu Aug 06 11:02:03 2015 -0400
# Node ID 9ad90210cc51eb61d21230086b9acf5c8003aea0
# Parent  abc56d57f6e1aebade48949fb557d26eae555df8
fix race condition in gtk window EndRemoteDrawingInRegion

diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6203,19 +6203,19 @@ nsWindow::StartRemoteDrawing()
   }
 }
 
 void
 nsWindow::EndRemoteDrawingInRegion(DrawTarget* aDrawTarget, nsIntRegion& aInvalidRegion)
 {
 #ifdef MOZ_X11
 #  ifdef MOZ_HAVE_SHMIMAGE
-  if (!mGdkWindow || mIsFullyObscured || !mHasMappedToplevel || mIsDestroyed ||
-      !mShmImage)
+  if (!mGdkWindow || !mShmImage) {
     return;
+  }
 
   if (mThebesSurface) {
     aInvalidRegion.AndWith(nsIntRect(nsIntPoint(0, 0), mThebesSurface->GetSize()));
   }
 
   mShmImage->Put(mGdkWindow, aInvalidRegion);
 
 #  endif // MOZ_HAVE_SHMIMAGE
bgstack15