mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
Don't need root bw here any more.
svn path=/trunk/netsurf/; revision=13396
This commit is contained in:
parent
04ece30fa9
commit
d2253eee8f
@ -1269,7 +1269,6 @@ void form_select_menu_scroll_callback(void *client_data,
|
||||
struct form_control *control = client_data;
|
||||
struct form_select_menu *menu = control->data.select.menu;
|
||||
html_content *html = (html_content *)menu->c;
|
||||
struct browser_window *root_bw;
|
||||
|
||||
switch (scrollbar_data->msg) {
|
||||
case SCROLLBAR_MSG_REDRAW:
|
||||
@ -1299,8 +1298,6 @@ void form_select_menu_scroll_callback(void *client_data,
|
||||
DRAGGING_CONTENT_SCROLLBAR, &rect);
|
||||
|
||||
menu->scroll_capture = true;
|
||||
|
||||
root_bw = browser_window_get_root(html->bw);
|
||||
}
|
||||
break;
|
||||
case SCROLLBAR_MSG_SCROLL_FINISHED:
|
||||
|
@ -817,8 +817,6 @@ void html_overflow_scroll_callback(void *client_data,
|
||||
html_content *html = (html_content *)data->c;
|
||||
struct box *box = data->box;
|
||||
int x, y, box_x, box_y, diff_x, diff_y;
|
||||
struct browser_window *root_bw;
|
||||
|
||||
|
||||
switch(scrollbar_data->msg) {
|
||||
case SCROLLBAR_MSG_REDRAW:
|
||||
@ -859,8 +857,6 @@ void html_overflow_scroll_callback(void *client_data,
|
||||
DRAGGING_CONTENT_SCROLLBAR, &rect);
|
||||
|
||||
html->scrollbar = scrollbar_data->scrollbar;
|
||||
|
||||
root_bw = browser_window_get_root(html->bw);
|
||||
}
|
||||
break;
|
||||
case SCROLLBAR_MSG_SCROLL_FINISHED:
|
||||
|
Loading…
Reference in New Issue
Block a user