1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[iframe] Just to commit today.

This commit is contained in:
Witold Filipczyk 2021-07-23 21:09:22 +02:00
parent ae02be3b6e
commit cef822653d
2 changed files with 4 additions and 1 deletions

View File

@ -502,6 +502,7 @@ html_iframe_do(char *a, char *object_src,
} }
if (height > 0) { if (height > 0) {
int y = html_context->part->cy;
char *url2; char *url2;
ln_break(html_context, height); ln_break(html_context, height);
@ -511,7 +512,7 @@ html_iframe_do(char *a, char *object_src,
struct uri *uri = get_uri(url2, URI_BASE); struct uri *uri = get_uri(url2, URI_BASE);
if (uri) { if (uri) {
html_context->special_f(html_context, SP_IFRAME, uri); html_context->special_f(html_context, SP_IFRAME, uri, y, height);
done_uri(uri); done_uri(uri);
} }
mem_free(url2); mem_free(url2);

View File

@ -2360,6 +2360,8 @@ html_special(struct html_context *html_context, enum html_special_type c, ...)
{ {
if (document) { if (document) {
struct uri *uri = va_arg(l, struct uri *); struct uri *uri = va_arg(l, struct uri *);
int y = va_arg(l, int);
int height = va_arg(l, int);
add_to_uri_list(&document->iframes, uri); add_to_uri_list(&document->iframes, uri);
} }