mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-22 02:12:10 +03:00
Can't clone a content that gets reflowed for a viewport size.
This commit is contained in:
parent
c040fbc4cc
commit
8c60d38769
@ -138,6 +138,9 @@ static void svg_reformat(struct content *c, int width, int height)
|
|||||||
svgtiny_parse(svg->diagram, source_data, source_size,
|
svgtiny_parse(svg->diagram, source_data, source_size,
|
||||||
nsurl_access(content_get_url(c)),
|
nsurl_access(content_get_url(c)),
|
||||||
width, height);
|
width, height);
|
||||||
|
|
||||||
|
svg->current_width = width;
|
||||||
|
svg->current_height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
c->width = svg->diagram->width;
|
c->width = svg->diagram->width;
|
||||||
@ -335,7 +338,7 @@ static const content_handler svg_content_handler = {
|
|||||||
.redraw = svg_redraw,
|
.redraw = svg_redraw,
|
||||||
.clone = svg_clone,
|
.clone = svg_clone,
|
||||||
.type = svg_content_type,
|
.type = svg_content_type,
|
||||||
.no_share = false,
|
.no_share = true
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *svg_types[] = {
|
static const char *svg_types[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user