Bug 739096 - Cherry-pick https://gitlab.freedesktop.org/cairo/cairo/-/commit/7ac8220c1fd4afb259e53b7a5cd93a23859bdbda draft
authorJonathan Kew <jkew@mozilla.com>
Thu, 28 Jan 2021 16:55:22 +0000
changeset 3667340 ebe8d3c356de730d3bd3190c75bb46791cf2e95b
parent 3667339 15d5a2e21f2d3e386c0e925f495d86aea66464f6
child 3667341 12823849328faab01afee208a5faf1a4159df950
push id683075
push userjkew@mozilla.com
push dateMon, 19 Apr 2021 13:53:47 +0000
treeherdertry@24dbc2b8647b [default view] [failures only]
bugs739096
milestone89.0a1
Bug 739096 - Cherry-pick https://gitlab.freedesktop.org/cairo/cairo/-/commit/7ac8220c1fd4afb259e53b7a5cd93a23859bdbda Fix copying tags in a recording surface Differential Revision: https://phabricator.services.mozilla.com/D112563
gfx/cairo/cairo/src/cairo-recording-surface.c
--- a/gfx/cairo/cairo/src/cairo-recording-surface.c
+++ b/gfx/cairo/cairo/src/cairo-recording-surface.c
@@ -1451,27 +1451,27 @@ static cairo_status_t
 
     command->begin = src->tag.begin;
     command->tag_name = strdup (src->tag.tag_name);
     if (src->tag.begin) {
 	if (src->tag.attributes)
 	    command->attributes = strdup (src->tag.attributes);
 
 	status = _cairo_pattern_init_copy (&command->source.base,
-					   &src->stroke.source.base);
+					   &src->tag.source.base);
 	if (unlikely (status))
 	    goto err_command;
 
 	status = _cairo_stroke_style_init_copy (&command->style,
-						&src->stroke.style);
+						&src->tag.style);
 	if (unlikely (status))
 	    goto err_source;
 
-	command->ctm = src->stroke.ctm;
-	command->ctm_inverse = src->stroke.ctm_inverse;
+	command->ctm = src->tag.ctm;
+	command->ctm_inverse = src->tag.ctm_inverse;
     }
 
     status = _cairo_recording_surface_commit (surface, &command->header);
     if (unlikely (status)) {
 	if (src->tag.begin)
 	    goto err_command;
 	else
 	    goto err_style;