Commit Graph

11917 Commits

Author SHA1 Message Date
Vincent Sanders
c2bd86ca96 Fix atari mint duktape build 2016-01-22 13:47:02 +00:00
Chris Young
f51b7780e3 Don't clear memory twice under OS3 2016-01-21 22:39:21 +00:00
Michael Drake
b29bd85274 Disable JavaScript force-on for forthcoming release. 2016-01-21 22:15:14 +00:00
Chris Young
5a58e844e4 Don't clear bitmap structure on allocation 2016-01-21 22:02:39 +00:00
Chris Young
b41685208f Revert "alloc bitmap structures using itempools"
This reverts commit 0cc19b10fc.

This caused memory leakage, as the memory pool is removed before the core has destroyed all the bitmaps.
2016-01-21 20:42:49 +00:00
Chris Young
0cc19b10fc alloc bitmap structures using itempools 2016-01-21 20:30:02 +00:00
Chris Young
7efd9a2c67 Remove unused Amiga async scheduler 2016-01-21 20:13:49 +00:00
Chris Young
7da516067d Use itempools for the scheduler 2016-01-21 19:23:10 +00:00
Michael Drake
d9e92d2032 Add comment on on-demand JS context creation safety
Checking for enable_scripting isn't needed here.
2016-01-21 14:58:38 +00:00
Michael Drake
82b298ac2c 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.
2016-01-21 14:51:17 +00:00
Michael Drake
669448d7b6 Fix place where we're calling a js_* fn without checking for context. 2016-01-21 14:49:57 +00:00
Michael Drake
594012ef52 Ensure constant javascript_enabled for HTML contents.
Now we take the value of the javascript_enabled option when the
content is created.  We then use the content's script_enabled
boolean everywhere else.

This prevents us getting inconsistent values for javascript_enabled
if a user toggles the setting while a page is loading.

It was read frequently during box construction, and also the
parser's script enabled setting could change where we handled
a change of encoding.

Now we only care about the setting of the javascript_enabled
option at time of html_content creation.
2016-01-21 14:11:36 +00:00
Michael Drake
3dcf7d80a1 Pass html_content to box_extract_link. 2016-01-21 14:09:57 +00:00
Michael Drake
ad273a41e8 Simplify place_float_below loop condition. 2016-01-21 09:44:05 +00:00
Michael Drake
4055ecf796 Tiny simplification of curl debug logging. 2016-01-21 09:27:27 +00:00
Chris Young
6d2a787380 Allocate deferred rectangles using itempools
On OS3 we use a normal memory pool instead
2016-01-21 00:08:49 +00:00
Chris Young
239f999936 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2016-01-20 23:32:34 +00:00
Chris Young
1724e28350 Use a memory pool for deferred rects 2016-01-20 23:32:19 +00:00
Chris Young
750677795b Alloc font name on the stack 2016-01-20 22:51:05 +00:00
Michael Drake
a774e9473d Make use of cached place float below value earlier. 2016-01-20 22:37:22 +00:00
Michael Drake
0bbc03c577 Cache place below level, to avoid pointless calls to find_sides. 2016-01-20 20:09:40 +00:00
Michael Drake
c13080d96c Optimise white hot find_sides to take advantage of sorted float_children.
Now we have an early exit when we get to the floats above the area we're
interested in.
2016-01-20 20:02:56 +00:00
Michael Drake
948a93041d Sort float_children of containers by their bottom edge. 2016-01-20 20:02:56 +00:00
Michael Drake
38e6fd1b74 Split adding float to a container out into separate function. 2016-01-20 20:02:55 +00:00
Michael Drake
018adc2f5e Remove redundant condition in white hot path. 2016-01-20 18:27:15 +00:00
Vincent Sanders
54c153246c fix call to cookie manager initialisation for haiku 2016-01-19 15:31:56 +00:00
Vincent Sanders
7caaa86d75 fix haiku web search bar initalisation 2016-01-19 15:16:32 +00:00
Vincent Sanders
65bdef55ab move the container code to gtk directory as its only ever used there. 2016-01-19 15:10:29 +00:00
Adrián Arroyo Calle
0a5f63abf1 Add cookie management for Haiku frontend 2016-01-19 14:07:57 +00:00
Adrián Arroyo Calle
9a64e9302e Add web search bar to haiku frontend 2016-01-19 14:03:18 +00:00
Vincent Sanders
f266eb1c5d make search engines resource common between gtk and beos 2016-01-19 13:51:54 +00:00
Chris Young
59ea187b74 Ensure the textattr flags field is clear
This fixes problems with inconsistent layouting on OS3
2016-01-18 00:20:45 +00:00
Chris Young
9c62993efd Don't expose the DPI-related variables 2016-01-18 00:02:52 +00:00
Chris Young
b3aa313e84 misc amiga fixes re font plotting 2016-01-17 23:40:50 +00:00
Chris Young
132be1eed2 OS3 build fixes 2016-01-16 19:37:39 +00:00
Chris Young
06b50d9bbd missing files 2016-01-16 11:44:03 +00:00
Chris Young
8c31752f3a Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2016-01-16 00:08:54 +00:00
Chris Young
46f181b348 More font-related tidy-up 2016-01-16 00:00:57 +00:00
Chris Young
f275267d6b fix incorrect type usage 2016-01-15 20:51:37 +00:00
Chris Young
6eac0b83ea Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2016-01-15 20:50:55 +00:00
Chris Young
20c176b578 git probs 2016-01-15 20:50:16 +00:00
Chris Young
652c02ef08 git probs 2016-01-15 20:48:55 +00:00
Chris Young
3ac1d78f41 Fix some incorrect type usage 2016-01-15 20:43:12 +00:00
Chris Young
673f3e6887 Fix some old and new GCC errors/warnings 2016-01-15 19:58:24 +00:00
Chris Young
6ad939b5a6 Make font engine selection bit more logical 2016-01-15 19:37:21 +00:00
Michael Drake
f831d81ab1 Restore prevention of clang static analysis from 336326af3a 2016-01-15 11:43:24 +00:00
Michael Drake
2937b2f871 Update to Duktape 1.4.0 release. 2016-01-15 11:43:24 +00:00
Chris Young
6122517bf4 Only show context menu text selection options if there is text selected 2016-01-14 19:15:30 +00:00
Chris Young
30f992730e Re-instate the ability to do a web search for selected text 2016-01-14 19:09:16 +00:00
Chris Young
f5dc180105 Use layers.library for bitmap tiling on OS3
This solves the worst of the rendering problems on that platform.
2016-01-14 00:11:48 +00:00