diff --git a/src/cairo-default-context.c b/src/cairo-default-context.c index dbd014a..8556a9c 100644 --- a/src/cairo-default-context.c +++ b/src/cairo-default-context.c @@ -159,20 +159,6 @@ _cairo_default_context_push_group (void *abstract_cr, cairo_content_t content) status = group_surface->status; if (unlikely (status)) goto bail; - - /* Set device offsets on the new surface so that logically it appears at - * the same location on the parent surface -- when we pop_group this, - * the source pattern will get fixed up for the appropriate target surface - * device offsets, so we want to set our own surface offsets from /that/, - * and not from the device origin. */ - cairo_surface_set_device_offset (group_surface, - parent_surface->device_transform.x0 - extents.x, - parent_surface->device_transform.y0 - extents.y); - - /* If we have a current path, we need to adjust it to compensate for - * the device offset just applied. */ - cairo_matrix_init_translate (&matrix, -extents.x, -extents.y); - _cairo_path_fixed_transform (cr->path, &matrix); } /* create a new gstate for the redirect */