Gitweb links: ...log http://git.netsurf-browser.org/netsurf.git/shortlog/4d89108072ffc2e79e9112eaed1c73216354d93e ...commit http://git.netsurf-browser.org/netsurf.git/commit/4d89108072ffc2e79e9112eaed1c73216354d93e ...tree http://git.netsurf-browser.org/netsurf.git/tree/4d89108072ffc2e79e9112eaed1c73216354d93e
The branch, master has been updated via 4d89108072ffc2e79e9112eaed1c73216354d93e (commit) from 334b498d5ced611bd7e45a1c6aa951559faac616 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=4d89108072ffc2e79e9112eaed1c73216354d93e commit 4d89108072ffc2e79e9112eaed1c73216354d93e Author: Daniel Silverstone <dsilv...@digital-scurf.org> Commit: Daniel Silverstone <dsilv...@digital-scurf.org> html: Don't both building a bitmap if we're not rendering it Signed-off-by: Daniel Silverstone <dsilv...@digital-scurf.org> diff --git a/content/handlers/html/dom_event.c b/content/handlers/html/dom_event.c index 5470f29..b874d71 100644 --- a/content/handlers/html/dom_event.c +++ b/content/handlers/html/dom_event.c @@ -184,6 +184,13 @@ static nserror html_process_inserted_canvas(html_content *htmlc, dom_node *node) unsigned long width = 300, height = 150; struct bitmap *bitmap, *oldbitmap = NULL; + if (!htmlc->enable_scripting) { + /* No point processing this element, we're not going to + * render it + */ + return NSERROR_OK; + } + exc = dom_element_get_attribute(node, corestring_dom_width, &width_s); ----------------------------------------------------------------------- Summary of changes: content/handlers/html/dom_event.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/handlers/html/dom_event.c b/content/handlers/html/dom_event.c index 5470f29..b874d71 100644 --- a/content/handlers/html/dom_event.c +++ b/content/handlers/html/dom_event.c @@ -184,6 +184,13 @@ static nserror html_process_inserted_canvas(html_content *htmlc, dom_node *node) unsigned long width = 300, height = 150; struct bitmap *bitmap, *oldbitmap = NULL; + if (!htmlc->enable_scripting) { + /* No point processing this element, we're not going to + * render it + */ + return NSERROR_OK; + } + exc = dom_element_get_attribute(node, corestring_dom_width, &width_s); -- NetSurf Browser _______________________________________________ netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org