mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
html__redraw_a_box takes html_content instead of struct content.
This commit is contained in:
parent
4872bc30b8
commit
699173331b
@ -2359,13 +2359,13 @@ void html_redraw_a_box(hlcache_handle *h, struct box *box)
|
||||
* \param box box to redraw
|
||||
*/
|
||||
|
||||
void html__redraw_a_box(struct content *c, struct box *box)
|
||||
void html__redraw_a_box(struct html_content *html, struct box *box)
|
||||
{
|
||||
int x, y;
|
||||
|
||||
box_coords(box, &x, &y);
|
||||
|
||||
content__request_redraw(c, x, y,
|
||||
content__request_redraw((struct content *)html, x, y,
|
||||
box->padding[LEFT] + box->width + box->padding[RIGHT],
|
||||
box->padding[TOP] + box->height + box->padding[BOTTOM]);
|
||||
}
|
||||
@ -2786,7 +2786,7 @@ static bool html_drop_file_at_point(struct content *c, int x, int y, char *file)
|
||||
|
||||
/* Redraw box. */
|
||||
if (containing_content == NULL)
|
||||
html__redraw_a_box(c, file_box);
|
||||
html__redraw_a_box(html, file_box);
|
||||
else
|
||||
html_redraw_a_box(containing_content, file_box);
|
||||
|
||||
|
@ -122,7 +122,7 @@ bool html_fetch_object(html_content *c, nsurl *url, struct box *box,
|
||||
|
||||
void html_set_status(html_content *c, const char *extra);
|
||||
|
||||
void html__redraw_a_box(struct content *c, struct box *box);
|
||||
void html__redraw_a_box(html_content *html, struct box *box);
|
||||
|
||||
struct browser_window *html_get_browser_window(struct content *c);
|
||||
struct search_context *html_get_search(struct content *c);
|
||||
|
@ -967,7 +967,7 @@ bool textinput_textarea_paste_text(struct browser_window *bw,
|
||||
textinput_textarea_move_caret,
|
||||
textarea, c);
|
||||
|
||||
html__redraw_a_box(c, textarea);
|
||||
html__redraw_a_box((html_content *)c, textarea);
|
||||
}
|
||||
|
||||
return success;
|
||||
@ -1085,7 +1085,7 @@ static void textinput_input_update_display(struct content *c, struct box *input,
|
||||
input, c);
|
||||
|
||||
if (dx || redraw)
|
||||
html__redraw_a_box(c, input);
|
||||
html__redraw_a_box(html, input);
|
||||
}
|
||||
|
||||
|
||||
@ -1599,7 +1599,7 @@ bool textinput_textarea_callback(struct browser_window *bw, uint32_t key,
|
||||
textarea, c);
|
||||
|
||||
if (scrolled || reflow)
|
||||
html__redraw_a_box(c, textarea);
|
||||
html__redraw_a_box(html, textarea);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1657,7 +1657,7 @@ void textinput_textarea_click(struct content *c, browser_mouse_state mouse,
|
||||
textarea, c);
|
||||
|
||||
if (scrolled)
|
||||
html__redraw_a_box(c, textarea);
|
||||
html__redraw_a_box(html, textarea);
|
||||
}
|
||||
|
||||
|
||||
@ -2122,7 +2122,7 @@ void textinput_input_click(struct content *c, struct box *input,
|
||||
input, c);
|
||||
|
||||
if (dx)
|
||||
html__redraw_a_box(c, input);
|
||||
html__redraw_a_box(html, input);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user