From 1bb727a68b5f47142945b9547e5e6bae6e303bd8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 5 Sep 2011 11:44:11 +0000 Subject: [PATCH] Remove various bits of dead frames handling. svn path=/trunk/netsurf/; revision=12733 --- riscos/window.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/riscos/window.c b/riscos/window.c index 7530fa0f0..251dea155 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -656,10 +656,6 @@ void gui_window_set_title(struct gui_window *g, const char *title) } else { strncpy(g->title, title, sizeof g->title); } - - /* only top-level parents have titlebars */ - if (!g->bw->parent) - ro_gui_set_window_title(g->window, g->title); } @@ -965,8 +961,6 @@ void gui_window_update_extent(struct gui_window *g) } if (flags == (state.flags & (wimp_WINDOW_HSCROLL | wimp_WINDOW_VSCROLL))) g->bw->reformat_pending = update; - if ((scroll != 0) && (g->bw->children)) - browser_window_recalculate_frameset(g->bw); } @@ -1696,7 +1690,6 @@ void ro_gui_window_open(wimp_open *open) if ((h) && (g->old_width != width || g->old_height != height)) { /* Ctrl-resize of a top-level window scales the content size */ if ((g->old_width > 0) && (g->old_width != width) && - (!g->bw->parent) && (ro_gui_ctrl_pressed())) new_scale = (g->bw->scale * width) / g->old_width; g->bw->reformat_pending = true; @@ -4254,9 +4247,7 @@ void ro_gui_window_quit(void) cur = window_list; window_list = window_list->next; - /* framesets and iframes are destroyed by their parents */ - if (!cur->bw->parent) - browser_window_destroy(cur->bw); + browser_window_destroy(cur->bw); } }