summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-06 22:51:46 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-06 22:51:46 +0000
commit8c2cfecfb5e83d023609914dd101c23777fd2906 (patch)
treedf076fe2b22f0ecc6ec97d32a6b59f8ffa278d9b /windows
parent46f369ca9ee79af5e7a121551fe9715101d27395 (diff)
downloadnetsurf-8c2cfecfb5e83d023609914dd101c23777fd2906.tar.gz
netsurf-8c2cfecfb5e83d023609914dd101c23777fd2906.tar.bz2
Allow content handlers to have debug values set through API
Previously content handler debugging features were accessed by global variables. This allows the setting of debugging parameters via a content API giving per content control over debugging features. Currently only used by the html content handler to toggle global redraw debugging.
Diffstat (limited to 'windows')
-rw-r--r--windows/gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/windows/gui.c b/windows/gui.c
index 653bf44e1..3c1d201e5 100644
--- a/windows/gui.c
+++ b/windows/gui.c
@@ -42,7 +42,6 @@
#include "utils/nsoption.h"
#include "desktop/plotters.h"
#include "desktop/textinput.h"
-#include "render/html.h"
#include "desktop/gui_window.h"
#include "desktop/gui_clipboard.h"
#include "desktop/gui_misc.h"
@@ -1013,8 +1012,8 @@ nsws_window_command(HWND hwnd,
break;
case IDM_VIEW_TOGGLE_DEBUG_RENDERING:
- html_redraw_debug = !html_redraw_debug;
if (gw->bw != NULL) {
+ browser_window_debug(gw->bw, CONTENT_DEBUG_REDRAW);
/* TODO: This should only redraw, not reformat.
* (Layout doesn't change, so reformat is a waste of time) */
browser_window_reformat(gw->bw, false, gw->width, gw->height);