Author: tlsa
Date: Wed Jan 11 08:29:44 2012
New Revision: 13396
URL:
http://source.netsurf-browser.org?rev=13396&view=rev
Log:
Don't need root bw here any more.
Modified:
trunk/netsurf/render/form.c
trunk/netsurf/render/html_interaction.c
Modified: trunk/netsurf/render/form.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/form.c?rev=13396&a...
==============================================================================
--- trunk/netsurf/render/form.c (original)
+++ trunk/netsurf/render/form.c Wed Jan 11 08:29:44 2012
@@ -1269,7 +1269,6 @@
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 @@
DRAGGING_CONTENT_SCROLLBAR, &rect);
menu->scroll_capture = true;
-
- root_bw = browser_window_get_root(html->bw);
}
break;
case SCROLLBAR_MSG_SCROLL_FINISHED:
Modified: trunk/netsurf/render/html_interaction.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/html_interaction.c...
==============================================================================
--- trunk/netsurf/render/html_interaction.c (original)
+++ trunk/netsurf/render/html_interaction.c Wed Jan 11 08:29:44 2012
@@ -817,8 +817,6 @@
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 @@
DRAGGING_CONTENT_SCROLLBAR, &rect);
html->scrollbar = scrollbar_data->scrollbar;
-
- root_bw = browser_window_get_root(html->bw);
}
break;
case SCROLLBAR_MSG_SCROLL_FINISHED: