summaryrefslogtreecommitdiff
path: root/render/html_redraw.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-28 11:15:39 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-28 11:15:39 +0000
commit5c9155e60658b7d253f9d681cbd16b1a5eb1d7ba (patch)
tree681a5537f18f887ef322b5260999bd613b7b3863 /render/html_redraw.c
parente70d4947ea126639b2e963e357e2e1bdd6526869 (diff)
downloadnetsurf-5c9155e60658b7d253f9d681cbd16b1a5eb1d7ba.tar.gz
netsurf-5c9155e60658b7d253f9d681cbd16b1a5eb1d7ba.tar.bz2
Core form select widget now associated with HTML contents. Don't use current_redraw_browser for select widget redraw. Fixes core select widget in iframes.
svn path=/trunk/netsurf/; revision=12522
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r--render/html_redraw.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index c8864314f..4cfa7f3e2 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -134,9 +134,8 @@ bool html_redraw(struct content *c, int x, int y,
select = false;
select_only = false;
if (current_redraw_browser != NULL &&
- current_redraw_browser->visible_select_menu != NULL) {
- struct form_control *control =
- current_redraw_browser->visible_select_menu;
+ html->visible_select_menu != NULL) {
+ struct form_control *control = html->visible_select_menu;
select = true;
/* check if the redraw rectangle is completely inside of the
select menu */
@@ -160,14 +159,13 @@ bool html_redraw(struct content *c, int x, int y,
if (select) {
int menu_x, menu_y;
- box = current_redraw_browser->visible_select_menu->box;
+ box = html->visible_select_menu->box;
box_coords(box, &menu_x, &menu_y);
menu_x -= box->border[LEFT].width;
menu_y += box->height + box->border[BOTTOM].width +
box->padding[BOTTOM] + box->padding[TOP];
- result &= form_redraw_select_menu(
- current_redraw_browser->visible_select_menu,
+ result &= form_redraw_select_menu(html->visible_select_menu,
x + menu_x, y + menu_y,
current_redraw_browser->scale, clip);
}