diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-16 13:13:25 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-16 13:13:25 +0100 |
commit | 4872bc30b8e20a8da9e822725066cc6a5f7955e1 (patch) | |
tree | f00297f84ff4ebbf3e02398dd9af7f7b584a8bfd /render/html_interaction.c | |
parent | e5928ebd5f842dc5ae66543f628af0cede4397bd (diff) | |
download | netsurf-4872bc30b8e20a8da9e822725066cc6a5f7955e1.tar.gz netsurf-4872bc30b8e20a8da9e822725066cc6a5f7955e1.tar.bz2 |
Remove redundant scrollbar widget message.
Diffstat (limited to 'render/html_interaction.c')
-rw-r--r-- | render/html_interaction.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/render/html_interaction.c b/render/html_interaction.c index 6b5cef29a..3836ac062 100644 --- a/render/html_interaction.c +++ b/render/html_interaction.c @@ -833,32 +833,8 @@ void html_overflow_scroll_callback(void *client_data, struct html_scrollbar_data *data = 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; switch(scrollbar_data->msg) { - case SCROLLBAR_MSG_REDRAW: - diff_x = box->padding[LEFT] + box->width + - box->padding[RIGHT] - SCROLLBAR_WIDTH; - diff_y = box->padding[TOP] + box->height + - box->padding[BOTTOM] - SCROLLBAR_WIDTH; - - box_coords(box, &box_x, &box_y); - if (scrollbar_is_horizontal( - scrollbar_data->scrollbar)) { - x = box_x + scrollbar_get_offset(box->scroll_x); - y = box_y + scrollbar_get_offset(box->scroll_y) + - diff_y; - } else { - x = box_x + scrollbar_get_offset(box->scroll_x) + - diff_x; - y = box_y + scrollbar_get_offset(box->scroll_y); - } - content__request_redraw((struct content *)html, - x + scrollbar_data->x0, - y + scrollbar_data->y0, - scrollbar_data->x1 - scrollbar_data->x0, - scrollbar_data->y1 - scrollbar_data->y0); - break; case SCROLLBAR_MSG_MOVED: html_redraw_a_box(html->bw->current_content, box); break; |