summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-21 00:25:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-21 00:25:09 +0000
commitf27d5a3e15b5931f36b96bc5fb3d2572d339715d (patch)
treecb003adc645f8efccf31b1d0971f5e1ff842c814 /render/layout.c
parent0cf35ff7302525cffda2c9064b4077e80db9f663 (diff)
downloadnetsurf-f27d5a3e15b5931f36b96bc5fb3d2572d339715d.tar.gz
netsurf-f27d5a3e15b5931f36b96bc5fb3d2572d339715d.tar.bz2
Remove gui_multitask
svn path=/trunk/netsurf/; revision=12828
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/render/layout.c b/render/layout.c
index 0506c60d5..a55793e89 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -43,7 +43,6 @@
#include "css/css.h"
#include "css/utils.h"
#include "content/content_protected.h"
-#include "desktop/gui.h"
#include "desktop/options.h"
#include "desktop/scrollbar.h"
#include "render/box.h"
@@ -220,45 +219,6 @@ bool layout_block_context(struct box *block, int viewport_height,
assert(block->width != UNKNOWN_WIDTH);
assert(block->width != AUTO);
-#ifdef riscos
- /* Why the ifdef? You don't really want to know. If you do, read on.
- *
- * So, the only way into this function is through the rest of the
- * layout code. The only external entry points into the layout code
- * are layout_document and layout_inline_container. The latter is only
- * ever called when editing text in form textareas, so we can ignore it
- * for the purposes of this discussion.
- *
- * layout_document is only ever called from html_reformat, which itself
- * is only ever called from content_reformat. content_reformat locks
- * the content structure while reformatting is taking place.
- *
- * If we call gui_multitask here, then any pending UI events will get
- * processed. This includes window expose/redraw events. Upon receipt
- * of these events, the UI code will call content_redraw for the
- * window's content. content_redraw will return immediately if the
- * content is currently locked (which it will be if we're still doing
- * layout).
- *
- * On RISC OS, this isn't a problem as the UI code's window redraw
- * handler explicitly checks for locked contents and does nothing
- * in that case. This effectively means that the window contents
- * aren't updated, so whatever's already in the window will remain
- * on-screen. On GTK, however, redraw is not direct-to-screen, but
- * to a pixmap which is then blitted to screen. If we perform no
- * redraw, then the pixmap will be flat white. When this is
- * subsequently blitted, the user gets greeted with an unsightly
- * flicker to white (and then back to the document when the content
- * is redrawn when unlocked).
- *
- * In the long term, this upcall into the GUI event dispatch code needs
- * to disappear. It needs to remain for the timebeing, however, as
- * document reflow can be fairly time consuming and we need to remain
- * responsive to user input.
- */
- gui_multitask();
-#endif
-
block->float_children = NULL;
block->clear_level = 0;