diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2016-01-21 14:51:17 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-01-21 14:51:17 +0000 |
commit | 82b298ac2c28dcaf7510e97b8a1379b34c8ab15c (patch) | |
tree | 12eec3c767a2e3cdbf66b797a0cb770525579812 /render/table.h | |
parent | 669448d7b6ae420dfce6e8b25eda143ca2b31109 (diff) | |
download | netsurf-82b298ac2c28dcaf7510e97b8a1379b34c8ab15c.tar.gz netsurf-82b298ac2c28dcaf7510e97b8a1379b34c8ab15c.tar.bz2 |
Ensure we do on-demand JS context creation only when JS is enabled.
An alternative approach which may be better would be to create the
JavaScript context when the html_content is created, rather than
on demand.
This code checks for the JS context and creates one every time we
add a node to the DOM. So when JS is on, every doc with a single
node in it has a JS context. This seems to make on-demand creation
a redundant overhead.
Diffstat (limited to 'render/table.h')
0 files changed, 0 insertions, 0 deletions