Commit Graph

3861 Commits

Author SHA1 Message Date
John Tytgat
aa61544828 strlen() on constant string can be replaced by sizeof()-1
svn path=/trunk/netsurf/; revision=6333
2009-02-01 13:59:35 +00:00
John Tytgat
8e4853dd56 Remove unnecessary casting.
svn path=/trunk/netsurf/; revision=6332
2009-02-01 13:54:40 +00:00
John Tytgat
3f0c50e5a0 - C strings have always an implicit NUL character at the end, no need to specify an extra one.
- riscos/configure/con_theme.c: removed spurious code line.

svn path=/trunk/netsurf/; revision=6331
2009-02-01 13:37:32 +00:00
Chris Young
e8399d8a76 Oops, probably shouldn't double-convert text
svn path=/trunk/netsurf/; revision=6330
2009-02-01 13:30:47 +00:00
Chris Young
1c1347a215 Convert UTF-8 titles to local charset for display in tabs
Disable keyboard shortcuts for tabs as an underscore in the title was causing
keypresses to be ignored or tabs to be switched unexpectedly

svn path=/trunk/netsurf/; revision=6329
2009-02-01 13:26:21 +00:00
Chris Young
fb0a2116a3 Change to use names instead of numbers for keypresses
Add missing keypresss

svn path=/trunk/netsurf/; revision=6328
2009-02-01 13:01:46 +00:00
Adrian Lees
f46dd78718 Next batch of menu changes; clarify some key presses
svn path=/trunk/netsurf/; revision=6327
2009-02-01 02:19:01 +00:00
Chris Young
4cf6935761 Added context menu option to download the link target.
Added SAVEAS/K to OPEN ARexx command to download a URL instead of displaying it.

svn path=/trunk/netsurf/; revision=6326
2009-01-31 23:45:25 +00:00
Michael Drake
400ed91129 Hubbub allows FONT tags to span blocks and the way that
the box tree is generated, this makes the BOX_INLINE's
BOX_INLINE_END appears in a different BOX_BLOCK. That
seems wrong, but fix layout not to crash for now.

svn path=/trunk/netsurf/; revision=6325
2009-01-31 22:49:41 +00:00
John Tytgat
89cfc2f51b This change belonged to r6323.
svn path=/trunk/netsurf/; revision=6324
2009-01-31 16:28:29 +00:00
John Tytgat
1ba9a1d529 Avoid having '...' in the RISC OS PDF export menu entry.
svn path=/trunk/netsurf/; revision=6323
2009-01-31 16:07:09 +00:00
John Tytgat
f4800eab4c Fix a couple copyright years.
svn path=/trunk/netsurf/; revision=6322
2009-01-31 13:56:36 +00:00
John Tytgat
35cd7ecbad When UnixLib 5 is used, use its API to do the coredumping. Define UnixEnv$coredump (value needs to be a directory to where the coredump files can be written too) instead of NetSurf$CoreDump to
enable this.

svn path=/trunk/netsurf/; revision=6321
2009-01-31 13:50:17 +00:00
Michael Drake
414f42faac Make inline boxes store the height of their line box and include in box tree dump.
svn path=/trunk/netsurf/; revision=6319
2009-01-31 13:26:28 +00:00
Adrian Lees
bce01f90bc RFix immediate menu-related problems; changes to follow
svn path=/trunk/netsurf/; revision=6318
2009-01-31 03:43:06 +00:00
John Mark Bell
6a0a7c346a Let's try that again. Now actually passes the regression tests.
svn path=/trunk/netsurf/; revision=6317
2009-01-31 03:03:50 +00:00
John Mark Bell
e2ebfb72f7 Fix urldb_match_path().
Fix test code.

svn path=/trunk/netsurf/; revision=6316
2009-01-31 02:49:26 +00:00
John Mark Bell
966b402881 urldb_destroy_path_tree() -> iteration
svn path=/trunk/netsurf/; revision=6315
2009-01-31 02:30:28 +00:00
John Mark Bell
9085c458d3 urldb_save_cookie_paths() -> iteration
svn path=/trunk/netsurf/; revision=6314
2009-01-31 02:16:01 +00:00
John Mark Bell
71e397eb84 Initialising variables helps
svn path=/trunk/netsurf/; revision=6313
2009-01-31 02:13:12 +00:00
John Mark Bell
92b3bdeda0 urldb_delete_cookie_paths() -> iteration
svn path=/trunk/netsurf/; revision=6312
2009-01-31 02:12:06 +00:00
John Mark Bell
45b222ab50 Make urldb_dump_paths iterate
svn path=/trunk/netsurf/; revision=6311
2009-01-31 02:02:01 +00:00
John Mark Bell
a1d409d922 Make urldb_match_path() iterate.
svn path=/trunk/netsurf/; revision=6310
2009-01-31 01:57:15 +00:00
Michael Drake
887d7984cb Fix scale of inline borders.
svn path=/trunk/netsurf/; revision=6309
2009-01-31 00:41:03 +00:00
Sean Fox
b132fba399 Right-clicking a page now removes the browser caret as well, but isn't properly implemented; see todo.
svn path=/trunk/netsurf/; revision=6308
2009-01-30 22:38:39 +00:00
Sean Fox
851111e929 Properly show the context menu separator.
svn path=/trunk/netsurf/; revision=6307
2009-01-30 22:00:10 +00:00
Sean Fox
4789d3c09d Clicking in the draw area now deselects the URL bar.
svn path=/trunk/netsurf/; revision=6306
2009-01-30 21:59:01 +00:00
Sean Fox
0de8393358 Save page support on the context menu.
svn path=/trunk/netsurf/; revision=6305
2009-01-30 21:23:10 +00:00
John Mark Bell
376ef0ca47 Make urldb_iterate_entries_path use iteration
svn path=/trunk/netsurf/; revision=6304
2009-01-30 19:58:46 +00:00
John Mark Bell
e5c07a3a82 Pedantic linewrapping
svn path=/trunk/netsurf/; revision=6303
2009-01-30 19:47:15 +00:00
John Mark Bell
29fac74dcc Make urldb_iterate_partial_path iterate over the tree and not recurse.
svn path=/trunk/netsurf/; revision=6302
2009-01-30 19:43:54 +00:00
John Mark Bell
ffe288e50b This logic looked entirely wrong. Fix it to be more sane. If this breaks things, blame the lack of commentary.
svn path=/trunk/netsurf/; revision=6301
2009-01-30 19:09:26 +00:00
John Mark Bell
a2fbddea60 Minor optimisation
svn path=/trunk/netsurf/; revision=6300
2009-01-30 18:50:55 +00:00
John Mark Bell
a3f46b12ef Iterate when counting/writing out paths.
svn path=/trunk/netsurf/; revision=6299
2009-01-30 18:48:55 +00:00
Adrian Lees
dfa214c525 Not my day :(
svn path=/trunk/netsurf/; revision=6298
2009-01-30 05:08:54 +00:00
Adrian Lees
34fdcf3aec And these files too, please
svn path=/trunk/netsurf/; revision=6297
2009-01-30 05:07:07 +00:00
Adrian Lees
03a1aac36a Selection- and link-related functions now on menu; other menu changes as per t's plan
svn path=/trunk/netsurf/; revision=6296
2009-01-30 05:06:30 +00:00
Michael Drake
daf8c22d1b Only get top margin if box has style.
svn path=/trunk/netsurf/; revision=6295
2009-01-29 22:57:32 +00:00
Michael Drake
56b48410be Include top margin when finding sides for block formatting contexts.
svn path=/trunk/netsurf/; revision=6293
2009-01-29 21:23:48 +00:00
Sean Fox
ab3da70659 Squash some memory leaks.
svn path=/trunk/netsurf/; revision=6290
2009-01-29 08:13:28 +00:00
Michael Drake
619e5b9631 Once a float has been placed below current line,
ensure that subsequent floats are also placed below.
Make place_float_below() consider float height when
searching for available space.

svn path=/trunk/netsurf/; revision=6287
2009-01-27 13:21:50 +00:00
Chris Young
83d696ace7 This is the actual fix for the crashing, although this is temporary as the
implementation needs changing.

svn path=/trunk/netsurf/; revision=6283
2009-01-26 18:38:47 +00:00
Michael Drake
aa787e9730 Fix specified table widths to include border. Tidy block formatting context and table position setup.
svn path=/trunk/netsurf/; revision=6281
2009-01-26 16:32:19 +00:00
Michael Drake
0a175d4020 Fix -ve margins.
svn path=/trunk/netsurf/; revision=6277
2009-01-26 09:11:54 +00:00
Michael Drake
0fefb7a605 More robust float avoidance for blocks set as block formatting contexts.
svn path=/trunk/netsurf/; revision=6275
2009-01-26 00:15:25 +00:00
Chris Young
aa2df8c599 This appears to fix an odd crash
svn path=/trunk/netsurf/; revision=6262
2009-01-25 11:18:42 +00:00
Chris Young
b5ee67b20e Handle key-presses manually for greater control, and to remove some keyboard
copy'n'paste annoyances.  Caps lock still fails to work though.

svn path=/trunk/netsurf/; revision=6261
2009-01-25 00:36:30 +00:00
Chris Young
f4d1f89957 It's probably a good idea to free memory once we've finished with it.
svn path=/trunk/netsurf/; revision=6222
2009-01-24 12:24:15 +00:00
Michael Drake
beff85fa73 Ignore clear:left; when the only floats are on the right and vice versa.
svn path=/trunk/netsurf/; revision=6176
2009-01-22 17:52:22 +00:00
Michael Drake
3594651a6b Handle clear before working out available width for tables and blocks that cause a new block formatting context.
svn path=/trunk/netsurf/; revision=6174
2009-01-22 15:39:06 +00:00