Don't need to attach children to scaffolding, because there aren't any.

svn path=/trunk/netsurf/; revision=12728
This commit is contained in:
Michael Drake 2011-09-05 10:35:59 +00:00
parent 0ffcfb91b5
commit 65886b3539
1 changed files with 4 additions and 9 deletions

View File

@ -395,15 +395,10 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
g->prev = NULL;
window_list = g;
if (bw->parent != NULL) {
/* Find our parent's scaffolding */
g->scaffold = bw->parent->window->scaffold;
} else {
/* Now construct and attach a scaffold */
g->scaffold = nsbeos_new_scaffolding(g);
if (!g->scaffold)
return NULL;
}
/* Now construct and attach a scaffold */
g->scaffold = nsbeos_new_scaffolding(g);
if (!g->scaffold)
return NULL;
/* Construct our primary elements */
BRect frame(0,0,-1,-1); // will be resized later