diff -r -U5 -p gtk+-3.9.8.old/gtk/gtkstylecontext.c gtk+-3.9.8/gtk/gtkstylecontext.c
--- gtk+-3.9.8.old/gtk/gtkstylecontext.c	2013-07-10 00:30:03.000000000 +0200
+++ gtk+-3.9.8/gtk/gtkstylecontext.c	2013-07-24 11:05:37.968547064 +0200
@@ -3800,10 +3800,11 @@ gtk_render_check (GtkStyleContext *conte
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_check (engine, cr,
                               x, y, width, height);
@@ -3850,10 +3851,11 @@ gtk_render_option (GtkStyleContext *cont
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_option (engine, cr,
                                x, y, width, height);
 
@@ -3897,10 +3899,11 @@ gtk_render_arrow (GtkStyleContext *conte
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_ARROW);
 
   _gtk_theming_engine_set_context (engine, context);
@@ -3951,10 +3954,11 @@ gtk_render_background (GtkStyleContext *
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_background (engine, cr, x, y, width, height);
 
   cairo_restore (cr);
@@ -4002,10 +4006,11 @@ gtk_render_frame (GtkStyleContext *conte
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_frame (engine, cr, x, y, width, height);
 
   cairo_restore (cr);
@@ -4050,10 +4055,11 @@ gtk_render_expander (GtkStyleContext *co
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_expander (engine, cr, x, y, width, height);
 
   cairo_restore (cr);
@@ -4095,10 +4101,11 @@ gtk_render_focus (GtkStyleContext *conte
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_focus (engine, cr, x, y, width, height);
 
   cairo_restore (cr);
@@ -4133,10 +4140,11 @@ gtk_render_layout (GtkStyleContext *cont
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   pango_layout_get_extents (layout, &extents, NULL);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_layout (engine, cr, x, y, layout);
@@ -4173,10 +4181,11 @@ gtk_render_line (GtkStyleContext *contex
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_line (engine, cr, x0, y0, x1, y1);
 
   cairo_restore (cr);
@@ -4223,10 +4232,11 @@ gtk_render_slider (GtkStyleContext *cont
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_slider (engine, cr, x, y, width, height, orientation);
 
   cairo_restore (cr);
@@ -4286,10 +4296,11 @@ gtk_render_frame_gap (GtkStyleContext *c
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_frame_gap (engine, cr,
                                   x, y, width, height, gap_side,
                                   xy0_gap, xy1_gap);
@@ -4338,10 +4349,11 @@ gtk_render_extension (GtkStyleContext *c
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_extension (engine, cr, x, y, width, height, gap_side);
 
   cairo_restore (cr);
@@ -4386,10 +4398,11 @@ gtk_render_handle (GtkStyleContext *cont
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_handle (engine, cr, x, y, width, height);
 
   cairo_restore (cr);
@@ -4429,10 +4442,11 @@ gtk_render_activity (GtkStyleContext *co
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_activity (engine, cr, x, y, width, height);
 
   cairo_restore (cr);
@@ -4500,10 +4514,11 @@ gtk_render_icon (GtkStyleContext *contex
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_icon (engine, cr, pixbuf, x, y);
 
   cairo_restore (cr);
@@ -4536,10 +4551,11 @@ gtk_render_icon_surface (GtkStyleContext
 
   engine = _gtk_css_engine_value_get_engine (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ENGINE));
   engine_class = GTK_THEMING_ENGINE_GET_CLASS (engine);
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_theming_engine_set_context (engine, context);
   engine_class->render_icon_surface (engine, cr, surface, x, y);
 
   cairo_restore (cr);
@@ -4561,10 +4577,11 @@ draw_insertion_cursor (GtkStyleContext *
   gfloat cursor_aspect_ratio;
   gint stem_width;
   gint offset;
 
   cairo_save (cr);
+  cairo_new_path (cr);
 
   _gtk_style_context_get_cursor_color (context, &primary_color, &secondary_color);
   gdk_cairo_set_source_rgba (cr, is_primary ? &primary_color : &secondary_color);
 
   /* When changing the shape or size of the cursor here,

