1
0
mirror of https://github.com/netsurf-browser/netsurf synced 2024-12-28 06:49:41 +03:00
Commit Graph

12000 Commits

Author SHA1 Message Date
Michael Drake
df2d62a872 Use readonly get_line, since it is supposed to be faster. 2016-02-08 15:59:24 +00:00
Michael Drake
9cb522ce38 Don't haemorrhage Pango layouts out of nsfont_paint.
Before:
  LEAK SUMMARY:
     definitely lost: 143,462 bytes in 811 blocks
     indirectly lost: 835,174 bytes in 16,656 blocks
       possibly lost: 104,465 bytes in 1,631 blocks
     still reachable: 3,634,180 bytes in 30,844 blocks
          suppressed: 0 bytes in 0 blocks

After:
  LEAK SUMMARY:
     definitely lost: 57,990 bytes in 258 blocks
     indirectly lost: 218,013 bytes in 5,995 blocks
       possibly lost: 110,118 bytes in 1,837 blocks
     still reachable: 3,637,842 bytes in 30,881 blocks
          suppressed: 0 bytes in 0 blocks
2016-02-08 14:59:35 +00:00
Michael Drake
255361a885 Log the cache limit along side size, after clean. 2016-02-08 11:48:33 +00:00
Michael Drake
fc2d766bff Style: Wrap some long lines. 2016-02-08 11:38:41 +00:00
Michael Drake
63fb2cbdc1 Add URL to llcache object destruction logging. 2016-02-08 11:27:04 +00:00
Vincent Sanders
67bdf81ca9 fix cocoa SDK awk invocation 2016-02-07 23:35:37 +00:00
Vincent Sanders
75dd6fe6ac extract cocoa SDK path rather than use pre-defined path 2016-02-07 23:29:01 +00:00
Vincent Sanders
bbd3302de5 ensure limits is included for PATH_MAX 2016-02-07 22:19:47 +00:00
Vincent Sanders
1de182a349 ensure mac os x path is correct 2016-02-07 22:10:35 +00:00
Dave Higton
8c05425a20 Fix RISC OS pointer shape issue
This is a patch for Mantis issue 2170.

The bug is that, if you hover over a link in a window and then close
the window with Control-F2, the pointer remains as the link pointer
shape.  The fix restores the pointer to the default shape before
destroying the window.
2016-02-07 22:06:35 +00:00
Vincent Sanders
bfbd838395 update jenkins build script for yosemite 2016-02-07 21:59:28 +00:00
Vincent Sanders
a1bc4c6a22 remove need for glib in monkey frontend main 2016-02-07 21:08:35 +00:00
Michael Drake
86ad729085 Fix body text hint. 2016-02-07 20:10:31 +00:00
Michael Drake
356615573a Test: Remove duplicate noscript element. 2016-02-06 12:51:44 +00:00
Michael Drake
0a3519fdac Remove torrent of logging during browser window resize. 2016-02-06 12:41:51 +00:00
Michael Drake
eb67607e3b Merge branch 'tlsa/upfront-hints' 2016-02-05 10:51:19 +00:00
Michael Drake
278451463f Rewrite hints handling to be more efficient.
Now we only look for hints that are actually possible for the
given element.  This new way of doing things is made possible
by the new LibCSS API for hints.

This also makes use of the LibDOM HTMLElement tag type to avoid
lots of massive if-else-if ladders of dom_string_caseless_isequal
calls.
2016-02-05 10:49:58 +00:00
Michael Drake
e42afd9b32 Change hints handling to use new libcss API.
Collect hints and provide them up front.

Note this implementation is minimal effort, and quite inefficient.
We can be faster about it by walking the element's attributes, and
caching things set on ancestor elements which apply to the current
element.  (Mostly table, and body stuff.)
2016-02-05 10:49:58 +00:00
Michael Drake
ae485432c5 Remove duplicate branch. 2016-02-05 10:49:58 +00:00
Michael Drake
e6c8188229 Tidy cellpadding hint handling. 2016-02-05 10:49:58 +00:00
Michael Drake
8e580ccd19 Split out presentational hints handling. 2016-02-05 10:49:58 +00:00
Vincent Sanders
f06ec6390a add noscript warning to all tests so it is obvious when js is disabled 2016-02-04 15:11:19 +00:00
Michael Drake
3cc80b6a7d Add test for document.write() adding a STYLE element. 2016-02-02 12:19:00 +00:00
Adrien Destugues
18c8cb0f85 UI fixes for search bar and cookie manager
- Make the "Utilities" menu enabled again, since the cookie manager is
  there,
- Bigger default size for the cookie manager window, and activate it
  when shown,
- Fix the layout of the top bar so the search field is visible, and
  make it send the search request to the right place.
2016-02-01 23:21:24 +00:00
John-Mark Bell
25b88e42e6 Test for [TreatNullAs=EmptyString] 2016-02-01 20:50:42 +00:00
Michael Drake
9fb755b754 Handle known HTML elements without specialisations. 2016-02-01 18:48:42 +00:00
Vincent Sanders
94b913e5b3 update for aarch64 2016-02-01 16:27:58 +00:00
Michael Drake
b1dbc046f1 Add paragraph proto test. 2016-02-01 15:36:12 +00:00
Michael Drake
2443cc432d Attempt to squash warning that happens on CI. 2016-02-01 15:27:26 +00:00
Michael Drake
6904622d9f JavaScript: Fix & optimise HTMLElement specialisation proto str generation.
We now map from tag name to appropriate specialisation of HTMLElement.

We also build the prototype strings at build time, rather than
using duktape to concatinate them together at run time.
2016-02-01 15:17:39 +00:00
Chris Young
cd0bcc421a Add an option to close inactive tabs to the tab bar context menu 2016-01-31 17:58:27 +00:00
Chris Young
cc0abb66b0 Implement warn_multi for OS3 (needed for the multiple tab close warning) 2016-01-31 17:21:51 +00:00
Chris Young
e98c220813 Fix some enable/disable gadget logic 2016-01-31 17:18:49 +00:00
Chris Young
1acc32b3a9 Force always show tabs when clicktab.gadget is older than v53 2016-01-31 17:10:47 +00:00
Chris Young
7729d93696 Enable tabbed browsing on OS3 2016-01-31 17:02:24 +00:00
John-Mark Bell
bf4382e3ec HTMLElement: stub .style getter. For . 2016-01-31 12:19:58 +00:00
John-Mark Bell
720a8fec0e Javascript: introduce script execution timeout. For . 2016-01-31 01:39:13 +00:00
Chris Young
f5ab570320 Disable "native scaled bitmaps" option if we're in palette mapped mode 2016-01-30 16:35:10 +00:00
Chris Young
e6b827979b Allocate bitmap structures using an itempool 2016-01-29 19:39:37 +00:00
Michael Drake
b002ba7357 Simplify special element handling in node inserted callback. 2016-01-29 16:04:47 +00:00
Michael Drake
b58176c65e Spaces to tabs. 2016-01-29 16:04:47 +00:00
Chris Young
b3c524cea1 Move some things around to try and prevent invalid pointer accesses on exit 2016-01-29 00:24:15 +00:00
Chris Young
0ce170c18e Disable the DPI gadget if in bitmap/diskfont fonts mode
Diskfont renders all font sizes at 72dpi.
2016-01-28 00:11:09 +00:00
Chris Young
ee640b80bc Add a GUI prefs option on OS3 only, to toggle between bitmap and outline fonts
"Allow bitmap fonts" causes NetSurf to use diskfont and graphics library routines for opening and displaying fonts.  This allows bitmap fonts to be used which are much faster on 68k hardware than outline fonts, but loses the ability to render pages in UTF-8.
Conversely, toggling this option off makes NetSurf use bullet.library directly and render glyphs itself, which precludes the usage of bitmap fonts but allows the full range of UTF-8 characters to be displayed.
This option is ON by default on OS3 for speed reasons, and OFF by default on OS4.  Additionally, this option is not shown on the prefs GUI on OS4 as the speed difference between bitmap and outline fonts is negligible on that hardware and I don't want to encourage the use of an option which provides inferior rendering.
2016-01-27 23:53:27 +00:00
Chris Young
5afd42aa5a Add the remaining missing OS3 prefs GUI elements
Might need to add/remove some things for the OS3 build
2016-01-27 00:33:37 +00:00
Chris Young
414e94452b Add dither and nativebitmap options to OS3 prefs gui 2016-01-27 00:11:49 +00:00
Chris Young
ca376741c6 Enable proxy options in prefs GUI for OS3 2016-01-27 00:07:14 +00:00
Chris Young
2c380f818f Fix some memory leakage 2016-01-27 00:01:42 +00:00
Chris Young
780752d276 fix the incorrect copy'n'pasted parameters 2016-01-26 23:55:14 +00:00
Chris Young
49bd536c6e Move OS3 array to list into separate function 2016-01-26 23:49:24 +00:00