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 3667289 fd0af96a0fcb443e12e54f61401a3ab2ae6f69ee
parent 3667288 6f37a133d6ab64092dafb86c30532143de36c98f
child 3667290 8fb945f62c525cf3e96c58b9d4ee04a817f1fe4f
push id683063
push userjkew@mozilla.com
push dateMon, 19 Apr 2021 13:15:26 +0000
treeherdertry@919daaf50d14 [default view] [failures only]
milestone89.0a1
Cherry-pick https://gitlab.freedesktop.org/cairo/cairo/-/commit/7ac8220c1fd4afb259e53b7a5cd93a23859bdbda Fix copying tags in a recording surface
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;