mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-27 08:20:38 +02:00
Revert "Fix filter being used on the use element causing the content to be clipped"
This reverts commit 2a8672d06e.
This commit is contained in:
parent
90aa943555
commit
3cb6377c08
1 changed files with 6 additions and 11 deletions
|
|
@ -1884,16 +1884,15 @@ _cairo_svg_surface_emit_composite_surface_pattern (cairo_output_stream_t *output
|
|||
_cairo_output_stream_printf (output, ">\n");
|
||||
}
|
||||
|
||||
if (pattern->surface->content == CAIRO_CONTENT_ALPHA) {
|
||||
_cairo_output_stream_printf (output,
|
||||
"<g filter=\"url(#filter-%s)\">\n",
|
||||
_cairo_svg_surface_emit_static_filter (surface->document,
|
||||
CAIRO_SVG_FILTER_COLOR_TO_ALPHA));
|
||||
}
|
||||
|
||||
_cairo_output_stream_printf (output,
|
||||
"<use xlink:href=\"#source-%d\"",
|
||||
source_id);
|
||||
if (pattern->surface->content == CAIRO_CONTENT_ALPHA) {
|
||||
_cairo_output_stream_printf (output,
|
||||
" filter=\"url(#filter-%s)\"",
|
||||
_cairo_svg_surface_emit_static_filter (surface->document,
|
||||
CAIRO_SVG_FILTER_COLOR_TO_ALPHA));
|
||||
}
|
||||
if (pattern_id == invalid_pattern_id) {
|
||||
_cairo_svg_surface_emit_transform (output,
|
||||
"transform",
|
||||
|
|
@ -1902,10 +1901,6 @@ _cairo_svg_surface_emit_composite_surface_pattern (cairo_output_stream_t *output
|
|||
}
|
||||
_cairo_output_stream_printf (output, "/>\n");
|
||||
|
||||
if (pattern->surface->content == CAIRO_CONTENT_ALPHA) {
|
||||
_cairo_output_stream_printf (output, "</g>\n");
|
||||
}
|
||||
|
||||
if (pattern_id != invalid_pattern_id) {
|
||||
_cairo_output_stream_printf (output, "</pattern>\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue