From 12be95517eecf0554d635ad97aa87c384c95f4e2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 24 Jun 2011 10:48:29 +0000 Subject: Replace iframe stuff with asserts for now. svn path=/trunk/netsurf/; revision=12499 --- riscos/window.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index 389cfce1a..9cf422f7b 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -498,7 +498,8 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, window.title_fg = 0xff; break; case BROWSER_WINDOW_IFRAME: - window.flags |= wimp_WINDOW_NO_BOUNDS; + assert(0); + break; case BROWSER_WINDOW_FRAME: if (bw->scrolling == SCROLLING_NO) window.flags &= ~(wimp_WINDOW_VSCROLL | @@ -982,10 +983,7 @@ void gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int /* store position for children */ if (parent->browser_window_type == BROWSER_WINDOW_IFRAME) { - bw->x0 = x0; - bw->y0 = y0; - bw->x1 = x1; - bw->y1 = y1; + assert(0); } else { bw->x0 = x0 = parent->x0 + x0; bw->y0 = y0 = parent->y0 + y0; @@ -994,8 +992,9 @@ void gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int } /* only scale iframe locations */ - if (bw->browser_window_type == BROWSER_WINDOW_IFRAME) - scale = g->bw->scale; + if (bw->browser_window_type == BROWSER_WINDOW_IFRAME) { + assert(0); + } /* get the position of the top level window */ state.w = top->window->window; -- cgit v1.2.3