~moblin/xulrunner/xulrunner-headless-1.9.2

« back to all changes in this revision

Viewing changes to debian/patches/idle-redraw-crash.patch

  • Committer: Michael Terry
  • Date: 2009-09-29 18:25:37 UTC
  • Revision ID: michael.terry@canonical.com-20090929182537-pkj6hf8qsotya3vi
   * New upstream snapshot
   * debian/patches/remove-global-local-storage.patch: remove globalStorage
     and localStorage properties from the DOM so clients correctly detect that
     we don't support DOM storage.  From Fedora Moblin packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: mozilla/widget/src/headless/moz-drawing-area.c
 
2
===================================================================
 
3
--- mozilla.orig/widget/src/headless/moz-drawing-area.c 2009-09-03 09:12:14.000000000 -0400
 
4
+++ mozilla/widget/src/headless/moz-drawing-area.c      2009-09-03 13:10:35.000000000 -0400
 
5
@@ -118,24 +118,6 @@
 
6
   GList *c;
 
7
   MozDrawingAreaPrivate *priv = area->priv;
 
8
 
 
9
-  /* Delay drawing when updates are frozen */
 
10
-  if (!priv->parent)
 
11
-    {
 
12
-      priv->idle_redraw = 0;
 
13
-
 
14
-      if (priv->frozen)
 
15
-        {
 
16
-          priv->needs_redraw = TRUE;
 
17
-          return;
 
18
-        }
 
19
-      else
 
20
-        priv->needs_redraw = FALSE;
 
21
-
 
22
-      /*printf ("Beginning redraw\n");*/
 
23
-    }
 
24
-
 
25
-  g_object_ref (area);
 
26
-
 
27
   if (priv->popup == popup)
 
28
     {
 
29
       priv->damaged = FALSE;
 
30
@@ -198,8 +180,6 @@
 
31
         }
 
32
     }
 
33
 
 
34
-  g_object_unref (area);
 
35
-
 
36
   return;
 
37
 }
 
38
 
 
39
@@ -225,6 +205,20 @@
 
40
 
 
41
   /*printf ("Pre-redraw\n");*/
 
42
 
 
43
+  /* Delay drawing when updates are frozen */
 
44
+  priv->idle_redraw = 0;
 
45
+
 
46
+  if (priv->frozen)
 
47
+    {
 
48
+      priv->needs_redraw = TRUE;
 
49
+      return;
 
50
+    }
 
51
+  else
 
52
+    priv->needs_redraw = FALSE;
 
53
+
 
54
+  /* Add a ref in case any of the signal handlers unref us */
 
55
+  g_object_ref (area);
 
56
+
 
57
   /* Fire off pre-expose signals to invalidate sibling windows */
 
58
   priv->ignore_redraw = TRUE;
 
59
   moz_drawing_area_send_pre_expose (area);
 
60
@@ -265,6 +259,8 @@
 
61
       moz_drawing_area_reset_damage (area);
 
62
     }
 
63
 
 
64
+  g_object_unref (area);
 
65
+
 
66
   return FALSE;
 
67
 }
 
68