Michael Drake
6291e4e398
Don't need to set current_redraw_browser any more.
...
svn path=/trunk/netsurf/; revision=12656
2011-08-24 13:38:09 +00:00
Michael Drake
c25692c8ae
RISC OS changes for core search update (r12646).
...
svn path=/trunk/netsurf/; revision=12651
2011-08-24 13:14:16 +00:00
Michael Drake
9c91893028
Fix selection for non-gui browser windows (iframes).
...
Selection no longer uses current_redraw_browser.
Fix long-standing selection bugs on platforms that use action on release behaviour.
svn path=/trunk/netsurf/; revision=12598
2011-07-13 13:20:26 +00:00
Michael Drake
1832155b7c
Caret position is already scaled in core.
...
svn path=/trunk/netsurf/; revision=12597
2011-07-11 10:34:30 +00:00
Michael Drake
e9b0a3ffb4
Fix build.
...
svn path=/trunk/netsurf/; revision=12588
2011-07-07 18:35:03 +00:00
Michael Drake
b9ff7f39ae
Remove pointless content_msg_data.
...
svn path=/trunk/netsurf/; revision=12585
2011-07-06 16:01:53 +00:00
Michael Drake
b9544e7e5d
Fix up RISC OS for r12574 API change.
...
svn path=/trunk/netsurf/; revision=12582
2011-07-06 12:59:26 +00:00
Michael Drake
a7d41d3ac2
Pass correct plotter table for Drawfile export.
...
svn path=/trunk/netsurf/; revision=12567
2011-07-03 15:03:13 +00:00
Michael Drake
a6d4f9cb30
Function to find out if browser window has a selection. Front ends should use this API. RISC OS front end updated.
...
svn path=/trunk/netsurf/; revision=12556
2011-07-02 16:43:20 +00:00
Chris Young
4147c185c8
When launching multiple URLs from a treeview, allow to open one window with multiple
...
tabs instead of one window per URL. Make compatible frontends do this by default.
svn path=/trunk/netsurf/; revision=12552
2011-07-02 11:41:06 +00:00
Michael Drake
9c4b9f5c94
Fix up RISC OS front end.
...
svn path=/trunk/netsurf/; revision=12545
2011-06-30 17:51:58 +00:00
Michael Drake
eddae6af06
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
...
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
50bd90c84a
Fix up Artworks content handler.
...
svn path=/trunk/netsurf/; revision=12536
2011-06-28 21:49:46 +00:00
Michael Drake
3128ecf2a5
Unify content_redraw params in content_redraw_data struct. Core and RISC OS content handlers updated.
...
svn path=/trunk/netsurf/; revision=12529
2011-06-28 20:17:39 +00:00
Michael Drake
b57c2e0bee
Move rectangle type to utils/types.h
...
svn path=/trunk/netsurf/; revision=12525
2011-06-28 15:18:48 +00:00
Michael Drake
2bedf4d88f
Frond ends signal end of drag with call to browser_window_mouse_track.
...
svn path=/trunk/netsurf/; revision=12515
2011-06-27 17:45:17 +00:00
Michael Drake
311080ff54
Simplify browser_window_mouse_drag_end calls.
...
svn path=/trunk/netsurf/; revision=12513
2011-06-27 16:16:21 +00:00
Michael Drake
5fb349e4de
Fix crash when scaling pages with iframes on RISC OS.
...
svn path=/trunk/netsurf/; revision=12501
2011-06-24 11:50:06 +00:00
Michael Drake
0bc058df5c
Delete commented out code.
...
svn path=/trunk/netsurf/; revision=12500
2011-06-24 10:50:43 +00:00
Michael Drake
12be95517e
Replace iframe stuff with asserts for now.
...
svn path=/trunk/netsurf/; revision=12499
2011-06-24 10:48:29 +00:00
Michael Drake
5a4c8916ef
If iframes are reformatted due to containing document reflow, don't need to redraw them since they will be redrawn when the containing document is redrawn. Make iframe handling more robust.
...
svn path=/trunk/netsurf/; revision=12497
2011-06-24 09:30:33 +00:00
Vincent Sanders
83f9e707eb
refactor content handler initilisation to use named initialisors
...
svn path=/trunk/netsurf/; revision=12341
2011-05-09 15:32:34 +00:00
Michael Drake
2ec96e508c
Put RISC OS filetype content handlers in their own directory.
...
svn path=/trunk/netsurf/; revision=12336
2011-05-09 09:57:40 +00:00
Michael Drake
044018739b
Fix Drawfile content handler build.
...
svn path=/trunk/netsurf/; revision=12335
2011-05-09 08:48:49 +00:00
Michael Drake
05945ebf1d
Fix Artworks content handler build.
...
svn path=/trunk/netsurf/; revision=12334
2011-05-09 08:46:12 +00:00
Michael Drake
37b389e699
Untested fix and tile implementation for Sprite.
...
svn path=/trunk/netsurf/; revision=12333
2011-05-09 08:42:49 +00:00
Michael Drake
2d6c0e99ec
Fix for new content_redraw API.
...
svn path=/trunk/netsurf/; revision=12332
2011-05-09 08:38:56 +00:00
Michael Drake
e24fa186bb
Fix for new content redraw API.
...
svn path=/trunk/netsurf/; revision=12331
2011-05-09 08:31:45 +00:00
Michael Drake
962fe1849c
Fix for new content redraw API.
...
svn path=/trunk/netsurf/; revision=12330
2011-05-09 08:28:56 +00:00
John Mark Bell
e71691bae8
Merge branches/jmb/content-factory to trunk
...
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
Steve Fryatt
2249dbaf9a
Restore some Adjust-double-click functionality to RO treeviews.
...
svn path=/trunk/netsurf/; revision=12201
2011-04-18 23:03:45 +00:00
Steve Fryatt
229f70fa76
Fix bug #3156695 : apply scrollbar from r12128 to all treeview windows.
...
svn path=/trunk/netsurf/; revision=12142
2011-03-28 21:49:24 +00:00
Steve Fryatt
1c91a23c77
Force SSLCert pane to have a horizontal scroll bar and ensure initial extent calculation.
...
svn path=/trunk/netsurf/; revision=12128
2011-03-24 00:09:49 +00:00
John Mark Bell
8ea109784c
Fix bug #3238151 : reinstate filename sanitisation and extension stripping
...
svn path=/trunk/netsurf/; revision=12127
2011-03-23 20:59:43 +00:00
Michael Drake
a70c32422a
gui_find_resource --> gui_get_resource_url.
...
svn path=/trunk/netsurf/; revision=12089
2011-03-17 11:57:09 +00:00
Michael Drake
e2155ca50b
Help menu options for about:credits and about:licence to replace old about NetSurf entry.
...
svn path=/trunk/netsurf/; revision=12071
2011-03-16 12:24:01 +00:00
Michael Drake
74cd7a9b60
Pedantic wrap.
...
svn path=/trunk/netsurf/; revision=12070
2011-03-16 12:22:02 +00:00
Michael Drake
ffc8d17a0f
Simple language directory handling.
...
svn path=/trunk/netsurf/; revision=12069
2011-03-15 23:23:27 +00:00
Michael Drake
b69816ff79
Fix in case of malloc failure.
...
svn path=/trunk/netsurf/; revision=12067
2011-03-15 21:31:44 +00:00
Michael Drake
89ee13de70
Add simple resource: path handler. Lacks language support for now.
...
svn path=/trunk/netsurf/; revision=12066
2011-03-15 21:26:33 +00:00
John Mark Bell
408f78b737
Move schedule.h to utils/
...
svn path=/trunk/netsurf/; revision=12039
2011-03-13 22:50:54 +00:00
Daniel Silverstone
93e9bfe323
Shunt the schedule function definitions to desktop/schedule.h. Shunt the hlcache/llcache to using schedule to get their cleanups run.
...
svn path=/trunk/netsurf/; revision=12029
2011-03-13 18:26:46 +00:00
John Mark Bell
1edcef6141
Remove redundant parameter from content_open API
...
svn path=/trunk/netsurf/; revision=11964
2011-03-10 23:13:03 +00:00
Michael Drake
55fd1d0133
Front ends don't need to call thumbnail_get_redraw_scale() now.
...
svn path=/trunk/netsurf/; revision=11946
2011-03-09 21:04:15 +00:00
Michael Drake
b46e69fe22
Purge ro_plot_set_scale() and ro_plot_scale global, as front ends nolonger need to maintain scale for plotting.
...
svn path=/trunk/netsurf/; revision=11942
2011-03-09 16:20:55 +00:00
Michael Drake
95916ab99d
nsfont_paint doesn't take scale.
...
svn path=/trunk/netsurf/; revision=11940
2011-03-08 19:02:19 +00:00
Michael Drake
5412d7c1b0
Don't scale text plots in front end (RISC OS).
...
svn path=/trunk/netsurf/; revision=11937
2011-03-08 18:48:23 +00:00
John Mark Bell
de688b59e1
Fix text selection
...
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
Steve Fryatt
47d67cdbcb
Fix bug #3200899 : Don't claim keypresses we don't handle.
...
svn path=/trunk/netsurf/; revision=11925
2011-03-06 14:09:42 +00:00
Chris Young
5ac45472c7
Fix broken CONTENT_PLUGIN API.
...
Add a default content handler for Amiga using the plugin interface, which passes
unknown files (currently images only) through DataTypes.
svn path=/trunk/netsurf/; revision=11924
2011-03-06 13:58:02 +00:00
Steve Fryatt
bfadf01482
Test correct items before preparing selection save dialogue.
...
svn path=/trunk/netsurf/; revision=11923
2011-03-06 12:42:11 +00:00
Vincent Sanders
9660442e92
remove obsolete, unused gui_window_redraw API
...
svn path=/trunk/netsurf/; revision=11870
2011-03-01 14:31:54 +00:00
John Mark Bell
86a2e0076d
Fix bug #3194007 : stop emitting duplicate READY/DONE events.
...
* Make content handlers responsible for setting READY/DONE state & emitting events.
* Stop content_convert doing this when there is a registered convert function for the content type.
svn path=/trunk/netsurf/; revision=11850
2011-02-27 20:11:39 +00:00
Steve Fryatt
a34cd9c8c6
Take CSS System Colours from the RISC OS Desktop palette at start and on mode/palette change.
...
Need to revisit and confirm some of the mappings.
svn path=/trunk/netsurf/; revision=11814
2011-02-25 23:26:36 +00:00
Steve Fryatt
79d9d6abab
Get download filenames from the core.
...
svn path=/trunk/netsurf/; revision=11774
2011-02-23 22:36:47 +00:00
Vincent Sanders
0231675abf
add resource handling
...
move gtk and framebuffer to use generic resource handling
svn path=/trunk/netsurf/; revision=11772
2011-02-23 22:27:55 +00:00
Steve Fryatt
bf77abd2f5
Fix bug #3189352 : ensure vertical extent of toolbars is set correctly.
...
svn path=/trunk/netsurf/; revision=11762
2011-02-22 21:19:23 +00:00
Steve Fryatt
b077f15485
Reduce redraw flicker when changing URL bar extent.
...
svn path=/trunk/netsurf/; revision=11752
2011-02-21 23:50:40 +00:00
Steve Fryatt
cd9c0998e9
Merge branches/stevef/toolbars to trunk.
...
svn path=/trunk/netsurf/; revision=11741
2011-02-20 23:16:33 +00:00
Vincent Sanders
675a07083a
add options display to about: scheme
...
svn path=/trunk/netsurf/; revision=11733
2011-02-20 21:04:53 +00:00
Michael Drake
a66575dfeb
Remove thumbnail_create() from browser.h. Make RO front end use the core thumbnail_redraw function. Make other front ends include the right header for thumbnail_create().
...
svn path=/trunk/netsurf/; revision=11716
2011-02-19 22:17:54 +00:00
Michael Drake
94e7b44ebc
Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct.
...
svn path=/trunk/netsurf/; revision=11683
2011-02-14 22:05:39 +00:00
John Mark Bell
f42ed976e5
Constify
...
svn path=/trunk/netsurf/; revision=11680
2011-02-14 19:17:08 +00:00
Michael Drake
5cefc9584a
Pass clip rect to browser_window_redraw as pointer.
...
svn path=/trunk/netsurf/; revision=11672
2011-02-13 23:04:26 +00:00
Michael Drake
fe7921a387
Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
...
svn path=/trunk/netsurf/; revision=11670
2011-02-13 22:25:11 +00:00
Michael Drake
2d69afeec6
Fix broken plotting on RO with locked contents and buffered rendering.
...
svn path=/trunk/netsurf/; revision=11667
2011-02-13 16:44:32 +00:00
Michael Drake
22d4d640e8
Remove RO white background fill.
...
svn path=/trunk/netsurf/; revision=11666
2011-02-13 15:56:48 +00:00
Michael Drake
fedcbf6656
Pass clip rect to browser_window_redraw as struct.
...
svn path=/trunk/netsurf/; revision=11648
2011-02-11 19:36:33 +00:00
John Mark Bell
18a4d2deec
Unilaterally clear background to white before redraw
...
svn path=/trunk/netsurf/; revision=11644
2011-02-11 08:48:40 +00:00
Vincent Sanders
98095f8f7a
change risc os frontend to use browser_window_redraw (r=jmb)
...
svn path=/trunk/netsurf/; revision=11643
2011-02-11 08:28:15 +00:00
John Mark Bell
86c2948eb4
Fix copying text/plain to clipboard
...
svn path=/trunk/netsurf/; revision=11636
2011-02-09 20:31:34 +00:00
Vincent Sanders
fbb1139214
add default system colour handlers to each frontend
...
svn path=/trunk/netsurf/; revision=11530
2011-01-30 13:40:47 +00:00
Daniel Silverstone
699f0cb344
Make the tree icon dir a non-option
...
svn path=/trunk/netsurf/; revision=11422
2011-01-20 14:05:13 +00:00
John Mark Bell
f929155a40
Require Iconv 0.11
...
svn path=/trunk/netsurf/; revision=11204
2011-01-04 20:04:20 +00:00
Michael Drake
0d04658544
When fetching a local file of type data, examine the extension to determine mime type.
...
svn path=/trunk/netsurf/; revision=11123
2010-12-27 14:03:45 +00:00
Steve Fryatt
333d202068
Remove unnecessary duplicate parameter.
...
svn path=/trunk/netsurf/; revision=11103
2010-12-19 18:22:09 +00:00
Steve Fryatt
ae920bfb34
Track pointer on all treeview windows.
...
svn path=/trunk/netsurf/; revision=11102
2010-12-19 18:16:14 +00:00
Steve Fryatt
2820ff0d6f
Use dashed boxes for treeview drags.
...
svn path=/trunk/netsurf/; revision=11095
2010-12-19 10:45:13 +00:00
Steve Fryatt
6cc0f1b24b
Give macro expansion less potential for ambiguity.
...
svn path=/trunk/netsurf/; revision=11094
2010-12-19 10:33:14 +00:00
Steve Fryatt
cef10de11b
Don\'t pass spurious drag event data to the core treeview.
...
svn path=/trunk/netsurf/; revision=11090
2010-12-17 17:13:34 +00:00
Steve Fryatt
689123822a
Apply simple weighted averaging to download rate calculations.
...
svn path=/trunk/netsurf/; revision=11081
2010-12-16 22:09:10 +00:00
Michael Drake
d2b8d00cd3
Remove redundant code from drag browser_mouse_state setup.
...
svn path=/trunk/netsurf/; revision=11080
2010-12-16 21:38:42 +00:00
Michael Drake
ccdafcc4d7
Document RISC OS front end's setup of browser_mouse_state.
...
svn path=/trunk/netsurf/; revision=11079
2010-12-16 21:33:19 +00:00
Michael Drake
4960449811
Don't require CTRL or ALT for treeview window to claim input focus on click.
...
svn path=/trunk/netsurf/; revision=11078
2010-12-16 21:31:14 +00:00
Michael Drake
c84ab4b21e
Pass adjust double clicks to the core too.
...
svn path=/trunk/netsurf/; revision=11074
2010-12-16 19:26:23 +00:00
Michael Drake
a2a0e25382
Ensure mouse button press events are sent to the core for treeview type windows. Keep track of both select and adjust drags, and inform the core which is being held during a drag.
...
svn path=/trunk/netsurf/; revision=11066
2010-12-15 22:02:27 +00:00
Michael Drake
95870c95dd
Give caret for alt and ctrl since both start an edit.
...
svn path=/trunk/netsurf/; revision=11064
2010-12-15 21:53:38 +00:00
Vincent Sanders
60c840628f
Small refactor to change icon names to being passed in from frontends instead of core treeview globals
...
svn path=/trunk/netsurf/; revision=11053
2010-12-14 00:18:24 +00:00
Michael Drake
5eaeaed909
Remove Hubbub and Wapcaplet initialisation and finalisation.
...
svn path=/trunk/netsurf/; revision=10980
2010-12-04 20:14:33 +00:00
Michael Drake
17542373bd
Remove excess indentation.
...
svn path=/trunk/netsurf/; revision=10942
2010-11-08 11:28:58 +00:00
Vincent Sanders
802f58f10d
Futher simplification of the makefile
...
Use target makefiles to set build sources
svn path=/trunk/netsurf/; revision=10916
2010-10-29 00:54:27 +00:00
Vincent Sanders
72cf3adc78
Beginning of NetSurf build infrastructure cleanup
...
Provide makefile fragment for each target, isolates the target makefile changes into one place simplifying the top level makefile
svn path=/trunk/netsurf/; revision=10910
2010-10-27 18:39:24 +00:00
Steve Fryatt
3529ead319
Restore toolbar menus in RO treeview windows.
...
svn path=/trunk/netsurf/; revision=10908
2010-10-24 23:17:21 +00:00
Steve Fryatt
a1194cd03f
Re-enable toolbar editing and button selection in RO treeview windows.
...
svn path=/trunk/netsurf/; revision=10907
2010-10-24 21:52:16 +00:00
Steve Fryatt
ba197f29c7
Partially re-enable toolbar buttons in RO treeview windows.
...
svn path=/trunk/netsurf/; revision=10906
2010-10-24 20:00:45 +00:00
Steve Fryatt
ed8f37dbef
Assert is more appropriate; tidy up.
...
svn path=/trunk/netsurf/; revision=10877
2010-10-10 09:13:18 +00:00
John Mark Bell
6173bb0e6c
Merge treeview-redux to trunk
...
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
John Mark Bell
91a0ef0622
Fix riscos path_add_part, to cope with the fact that newpart is unix-format
...
svn path=/trunk/netsurf/; revision=10767
2010-09-13 18:20:08 +00:00
James Bursa
cd1afc2063
Fix indirected text size for theme author.
...
svn path=/trunk/netsurf/; revision=10766
2010-09-13 00:02:04 +00:00
Vincent Sanders
8900d3a803
missing declaration
...
svn path=/trunk/netsurf/; revision=10757
2010-09-11 20:51:08 +00:00
Vincent Sanders
faca1687ce
hell with it, heres a version which should result in fewer portability complaints
...
svn path=/trunk/netsurf/; revision=10756
2010-09-11 18:47:36 +00:00
Steve Fryatt
3cca3861ca
Enable sideways print option.
...
svn path=/trunk/netsurf/; revision=10666
2010-07-27 22:50:51 +00:00
Chris Young
004aee8281
Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging
...
selections within NetSurf window to text fields (does not work across windows).
todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is
putting something on the clipboard which causes a crash when pasting it back
svn path=/trunk/netsurf/; revision=10660
2010-07-24 16:39:37 +00:00
Steve Fryatt
9201eac26e
Force browser window redraw after printing to restore screen layout.
...
svn path=/trunk/netsurf/; revision=10643
2010-07-15 21:06:10 +00:00
Steve Fryatt
57ddeea19b
Work around apparent register corruption after printing.
...
svn path=/trunk/netsurf/; revision=10640
2010-07-14 23:03:08 +00:00
Michael Drake
513793a060
Fix inventory file leafname.
...
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young
1510bbd3ad
Check the last character for a path separator, rather than the NULL string termination.
...
svn path=/trunk/netsurf/; revision=10622
2010-07-09 19:55:13 +00:00
Chris Young
d6eb28d5de
Replace unnecessarily complicated path concatenation with something simpler and
...
easily adaptable to different platform path structures.
svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
Michael Drake
b010a25771
+ Refactor input handling from browser window code into content
...
handlers.
+ Disentangle all box tree manipulation from browser window
code and put it where it belongs.
+ Move other content specific and other irrelevant code from
browser window handling to appropriate places.
+ Put mouse state enum in new mouse header, since it's not just
used by browser window code, and it is used by treeview
windows on the treeview branch.
svn path=/trunk/netsurf/; revision=10561
2010-06-04 09:35:08 +00:00
Steve Fryatt
d8b440a426
Lay out to correct paper width for printing.
...
svn path=/trunk/netsurf/; revision=10542
2010-05-02 10:50:46 +00:00
Daniel Silverstone
5e887908b3
Consolidate several 'myrealloc' functions into ns_realloc, rename one which *is* different, thereby eliminating the word 'myrealloc' from the NS codebase
...
svn path=/trunk/netsurf/; revision=10530
2010-04-30 16:06:03 +00:00
John Mark Bell
000e6ad3de
It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by the C standard (whereas realloc(NULL, size) --> malloc(size) is).
...
Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free).
svn path=/trunk/netsurf/; revision=10524
2010-04-30 07:00:58 +00:00
Vincent Sanders
2fd1476f8c
The schedule_run function is only called by the frontends so remove it from the core header and add its definition to the frontend headers.
...
Alter the framebuffer schedule_run to return the time untill the next event.
svn path=/trunk/netsurf/; revision=10512
2010-04-28 22:39:37 +00:00
Michael Drake
c65ca7035c
Bump max memory cache size from 6.4MB to 64MB.
...
svn path=/trunk/netsurf/; revision=10506
2010-04-28 11:58:37 +00:00
John Mark Bell
023167651a
Squash warnings in RISC OS build.
...
Replace use of strnlen with strlen and max.
svn path=/trunk/netsurf/; revision=10479
2010-04-24 21:25:08 +00:00
Vincent Sanders
03bb3e8636
remove _GNU_SOURCE define from everywhere.
...
strndup is not standard so provide an implementation.
svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
Michael Drake
a2d204814a
Fix bracket missmatch.
...
svn path=/trunk/netsurf/; revision=10421
2010-04-17 09:16:42 +00:00
Vincent Sanders
448b0275ae
Fix file: handling on risc os, gtk, windows and framebuffer frontends
...
svn path=/trunk/netsurf/; revision=10419
2010-04-16 23:56:53 +00:00
John Mark Bell
b5b280dc96
Fix RISC OS build
...
svn path=/trunk/netsurf/; revision=10405
2010-04-15 22:49:22 +00:00
John Mark Bell
1a5b039115
Fix double free of title
...
svn path=/trunk/netsurf/; revision=10386
2010-04-12 22:39:21 +00:00
John Mark Bell
6f8a8495c6
I don't understand the full_redraw flag, or the optimisation gained from not using it.
...
No frontend other than RISC OS ever used it, so stop the RO frontend using it, too.
svn path=/trunk/netsurf/; revision=10380
2010-04-11 23:32:38 +00:00
John Mark Bell
952682b906
Implement draw_clone()
...
svn path=/trunk/netsurf/; revision=10379
2010-04-11 23:11:40 +00:00
John Mark Bell
dcd33c3798
Port to hlcache-enabled core
...
svn path=/trunk/netsurf/; revision=10377
2010-04-11 23:04:06 +00:00
John Mark Bell
9e8849c04c
Take the easy way out wrt loading messages files: leave it to the RISC OS frontend to do this.
...
svn path=/trunk/netsurf/; revision=10374
2010-04-11 22:40:41 +00:00
Michael Drake
0613700c5e
Debug window is now black on white.
...
svn path=/trunk/netsurf/; revision=10337
2010-04-09 23:26:27 +00:00
Michael Drake
fee9e16636
Change rendering to use plotter functions. Purge loads of magic numbers. Make the content table look prettier. Separate content table creation and rendering code from RISC OS front end code. The debug window can now trivially be moved to the core. Debug window still currently disabled as it does not work with new cache.
...
svn path=/trunk/netsurf/; revision=10336
2010-04-09 23:22:30 +00:00
Daniel Silverstone
6c9e4bea8e
Purge FETCH_TYPE which is unused throughout NetSurf. Clearing a todo in llcachec.
...
svn path=/trunk/netsurf/; revision=10300
2010-04-08 12:16:52 +00:00
Michael Drake
fb8fdb4db1
More fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10292
2010-04-07 19:52:23 +00:00
Michael Drake
26f75ad18f
More fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10291
2010-04-07 19:40:27 +00:00
Michael Drake
a3977f1521
More fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10290
2010-04-07 19:23:53 +00:00
Michael Drake
6381200226
More fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10289
2010-04-07 19:06:48 +00:00
Michael Drake
d334b18386
More fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10288
2010-04-07 18:54:44 +00:00
Michael Drake
9a28ace52b
Start fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10286
2010-04-07 18:04:55 +00:00
Michael Drake
b9e32a9750
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10285
2010-04-07 18:01:29 +00:00
Michael Drake
61fd8d1240
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10284
2010-04-07 17:46:19 +00:00
Michael Drake
6a55bafba8
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10283
2010-04-07 17:42:21 +00:00
Michael Drake
ec2f35cb6f
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10282
2010-04-07 17:37:54 +00:00
Michael Drake
cffb7ea77b
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10281
2010-04-07 17:33:58 +00:00
Michael Drake
2975e1df84
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10280
2010-04-07 17:29:40 +00:00
Michael Drake
95b859c2eb
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10279
2010-04-07 17:05:50 +00:00
Michael Drake
43094a146d
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10278
2010-04-07 17:01:27 +00:00
Michael Drake
832daf49fa
hlcache_handle is typedeffed.
...
svn path=/trunk/netsurf/; revision=10276
2010-04-07 16:39:24 +00:00
Michael Drake
111920ad95
Fix for new cache.
...
svn path=/trunk/netsurf/; revision=10275
2010-04-07 16:08:24 +00:00
Michael Drake
4119cc50b4
More new cache fixing.
...
svn path=/trunk/netsurf/; revision=10274
2010-04-07 15:34:01 +00:00
Michael Drake
c147001a17
More new cache fixing.
...
svn path=/trunk/netsurf/; revision=10273
2010-04-07 14:14:44 +00:00
Michael Drake
c723c8bc59
More new cache fixing.
...
svn path=/trunk/netsurf/; revision=10272
2010-04-07 14:09:13 +00:00
Michael Drake
14008b11d0
Fix page info for new cache.
...
svn path=/trunk/netsurf/; revision=10270
2010-04-07 13:14:00 +00:00
Michael Drake
4b54cca8b9
Start fixing for new cache.
...
svn path=/trunk/netsurf/; revision=10268
2010-04-07 12:45:18 +00:00
Michael Drake
20cb4a7a48
Fix hotlist for new cache.
...
svn path=/trunk/netsurf/; revision=10267
2010-04-07 12:19:08 +00:00
Michael Drake
65b3dd18e3
Make filename_from_path() compile.
...
svn path=/trunk/netsurf/; revision=10264
2010-04-07 11:05:24 +00:00
Michael Drake
51d619ad4d
Fix box dump for new cache.
...
svn path=/trunk/netsurf/; revision=10263
2010-04-07 10:55:39 +00:00
Michael Drake
cc0e23b540
Don't dump box trees on crash, and fix view source for new cache.
...
svn path=/trunk/netsurf/; revision=10262
2010-04-07 10:33:46 +00:00
Michael Drake
87166fdbc1
hlcache_handle is typedeffed.
...
svn path=/trunk/netsurf/; revision=10261
2010-04-07 09:28:01 +00:00
Michael Drake
088742b3c3
Fix filetype.c.
...
svn path=/trunk/netsurf/; revision=10260
2010-04-07 09:12:46 +00:00
John Mark Bell
b584273c0b
Port to new download API
...
svn path=/trunk/netsurf/; revision=10250
2010-04-05 22:47:09 +00:00
John Mark Bell
6cb8472685
Apply ifdef. The first major casualty of new-cache.
...
svn path=/trunk/netsurf/; revision=10249
2010-04-05 22:17:03 +00:00
John Mark Bell
303401c050
Fix for hlcache
...
svn path=/trunk/netsurf/; revision=10248
2010-04-05 22:12:17 +00:00
John Mark Bell
8fdd91bc93
Port to new content API
...
svn path=/trunk/netsurf/; revision=10246
2010-04-05 22:03:44 +00:00
John Mark Bell
4d031f21cb
Port to new content API
...
svn path=/trunk/netsurf/; revision=10245
2010-04-05 21:58:38 +00:00
John Mark Bell
bf1affe76b
Port to new content API
...
svn path=/trunk/netsurf/; revision=10244
2010-04-05 21:53:31 +00:00
Vincent Sanders
95e4a737de
rationalise the usage of the file scheme
...
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +00:00
Vincent Sanders
e00fb7bd2d
second pass at startup refactor removing the gui_init callback
...
svn path=/trunk/netsurf/; revision=10205
2010-03-29 20:03:44 +00:00
Vincent Sanders
7e67527267
first part of initialisation refactor move gui_init2 into frontends
...
svn path=/trunk/netsurf/; revision=10202
2010-03-29 16:59:30 +00:00
Daniel Silverstone
270ef59a98
Merge jmb/new-cache; r=dsilvers,rs=vince
...
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00
Chris Young
033b5d815a
Move code which extracts the filename from a given path into frontend.
...
svn path=/trunk/netsurf/; revision=10139
2010-03-21 13:32:59 +00:00
John Mark Bell
4a950fcbf7
Only run the scheduler on null poll events.
...
Ensure the status bar widget treats its text as const.
Fix erroneous free of status bar text in status bar widget destructor.
The status bar text is now owned by the core.
Schedule a callback to request a redraw from the Wimp when setting status bar
text. The previous approach could lead to the Wimp having a long queue of
redraw events to issue to us, thus preventing any other application being
scheduled.
The above changes are based on a patch from Rik Griffin.
svn path=/trunk/netsurf/; revision=10126
2010-03-10 22:47:37 +00:00
Vincent Sanders
c1e7429d58
remove RISC OS status bar text caching
...
svn path=/trunk/netsurf/; revision=9966
2010-02-11 00:10:58 +00:00
Adrian Lees
e79df765b0
Fix NULL ptr dereference in status bar rendering; formatting.
...
svn path=/trunk/netsurf/; revision=9883
2010-01-24 12:49:29 +00:00
Vincent Sanders
e01d93f344
Refactor main into the frontends
...
remove unused embedded global
svn path=/trunk/netsurf/; revision=9851
2010-01-20 20:32:30 +00:00
John Mark Bell
1f4bb41301
I've decided that the user probably doesn't care if setting the filetype of saved HTML documents to HTML fails or not.
...
More importantly, this also squashes a memory leak, and stops returning false from a function which is defined as returning -1 on error.
svn path=/trunk/netsurf/; revision=9731
2009-12-18 00:11:37 +00:00
John Mark Bell
355799ce0b
Merge branches/MarkieB/gtkmain to trunk.
...
svn path=/trunk/netsurf/; revision=9729
2009-12-17 23:55:02 +00:00
John Mark Bell
c3f2972d03
Another blatent use-after-free
...
svn path=/trunk/netsurf/; revision=9713
2009-12-03 22:12:43 +00:00
John Mark Bell
f6fbe6ef96
Fix blatent use-after-free bug.
...
svn path=/trunk/netsurf/; revision=9712
2009-12-03 22:10:56 +00:00
John Mark Bell
dea67b984a
Modern OSLib (as of 3 months ago) no longer has colourtrans_CURRENT_MODE.
...
Use os_CURRENT_MODE, instead.
svn path=/trunk/netsurf/; revision=9710
2009-12-02 16:30:44 +00:00
John Tytgat
2261b616f6
- content/urldb.c(auth_data): Removed;
...
(prot_space_data): Added, it lives linked in the leaf host_part
struct and together with its scheme and port (which defins canonical root
url) and realm this defines a protection space.
(path_data): Removed auth_data field and replaced by a prot_space_data
pointer.
(host_part::prot_space): Added linked list of protection space data
structs.
(urldb_get_auth_details): Given an URL fetch fetches its auth.
(urldb_set_auth_details): Creates or updates the contents of a
protection space to which given URL belongs.
(urldb_destroy_host_tree): Delete protection data space structures
using urldb_destroy_prot_space.
(urldb_destroy_prot_space): Added.
- content/urldb.h(urldb_get_auth_details): Added realm parameter.
- content/fetchers/fetch_curl.c(fetch_curl_set_options): Update
urldb_get_auth_details call (we don't know realm at this point).
- content/fetchcache.c(fetchcache_callback, fetchcache_auth): At FETCH_AUTH,
use realm to determine if we really don't know auth data and if so,
refetch content.
- content/content.h(struct content): Add content::tried_with_auth.
- content/content.c(content_create): Initialize content::tried_with_auth.
- riscos/401login.c(ro_gui_401login_open): Show known authentication
data in dialogue so user can see what was wrong with it and correct it.
Solves bug #2830829 .
svn path=/trunk/netsurf/; revision=9045
2009-08-04 23:02:23 +00:00
John Mark Bell
bbdb07fe16
Fix RISC OS and Amiga builds.
...
The sooner this stuff is in the core, the better.
svn path=/trunk/netsurf/; revision=8827
2009-07-27 18:01:54 +00:00
John Mark Bell
ddeadd1c02
Merge LibCSS port to trunk.
...
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell
6e13c2fb0a
Scale font sizes, for better accuracy.
...
svn path=/trunk/netsurf/; revision=8657
2009-07-21 16:55:35 +00:00
John Mark Bell
2565a37a52
Refactor text plotter and other font functions to remove dependency on CSS.
...
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Michael Drake
8365d46eb7
Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.
...
svn path=/trunk/netsurf/; revision=8513
2009-07-14 10:57:07 +00:00
Vincent Sanders
86232d72a6
next round of plotter refactor
...
svn path=/trunk/netsurf/; revision=8512
2009-07-14 10:03:58 +00:00
Vincent Sanders
680298e61c
plotters line refactor
...
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
Vincent Sanders
f9ecd56f62
ploter refactor of rectangle handling
...
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
Vincent Sanders
0ade453958
Refactor fill plotter to take a style
...
svn path=/trunk/netsurf/; revision=8332
2009-07-05 20:10:17 +00:00
Vincent Sanders
1165edf662
remove redundant clg call
...
svn path=/trunk/netsurf/; revision=8240
2009-07-01 13:53:06 +00:00
John Mark Bell
a3e205bbd9
Constify ro_uri_launch()
...
If the URL is too long to fit into a non-indirected ANT URLLoad message, then skip the ANT URLLoad broadcast and jump straight to using URI_Dispatch.
We don't support indirected ANT URLLoad messages as their potential for memory leakage is too great.
svn path=/trunk/netsurf/; revision=8233
2009-07-01 12:05:51 +00:00
Michael Drake
26cee820f1
Simplify RISC OS bitmap plotter.
...
svn path=/trunk/netsurf/; revision=8196
2009-06-30 13:16:29 +00:00
Vincent Sanders
aa26843411
Improve bitmap plotter API
...
svn path=/trunk/netsurf/; revision=8195
2009-06-30 13:02:23 +00:00
John Mark Bell
0404a802a7
Free path once we're finished with it.
...
svn path=/trunk/netsurf/; revision=8169
2009-06-29 22:18:05 +00:00
John Mark Bell
ca96353d9f
Merged revisions 7764-7977,7979-8058 via svnmerge from
...
svn://svn.netsurf-browser.org/branches/paulblokus/textinput
........
r7769 | paulblokus | 2009-06-11 22:26:16 +0100 (Thu, 11 Jun 2009) | 4 lines
replace global history window with an empty window for future tests
add the necessary files
first lines ported
........
r7771 | paulblokus | 2009-06-11 23:51:46 +0100 (Thu, 11 Jun 2009) | 1 line
more functions
........
r7772 | paulblokus | 2009-06-12 02:07:36 +0100 (Fri, 12 Jun 2009) | 1 line
redraw working
........
r7777 | paulblokus | 2009-06-12 11:35:45 +0100 (Fri, 12 Jun 2009) | 3 lines
plotter fix
make use of the provided clipping rectangle
........
r7781 | paulblokus | 2009-06-12 16:26:51 +0100 (Fri, 12 Jun 2009) | 3 lines
callbacks for taxtarea to request a [caret]redraw
basic caret handling drawing
........
r7782 | paulblokus | 2009-06-12 22:36:50 +0100 (Fri, 12 Jun 2009) | 1 line
single character insertion
........
r7783 | paulblokus | 2009-06-12 22:41:37 +0100 (Fri, 12 Jun 2009) | 1 line
single character insertion
........
r7784 | paulblokus | 2009-06-12 23:55:40 +0100 (Fri, 12 Jun 2009) | 3 lines
fixed caret clipping
arrows, delete and backspace
........
r7812 | paulblokus | 2009-06-16 14:55:41 +0100 (Tue, 16 Jun 2009) | 1 line
remove bug causing NS hang on \n in textarea
........
r7816 | paulblokus | 2009-06-16 16:29:48 +0100 (Tue, 16 Jun 2009) | 1 line
Enter, Home, End keys
........
r7817 | paulblokus | 2009-06-16 16:56:16 +0100 (Tue, 16 Jun 2009) | 1 line
Ctrl + Home/End
........
r7818 | paulblokus | 2009-06-16 17:16:51 +0100 (Tue, 16 Jun 2009) | 1 line
redraw caret only on caret moves
........
r7821 | paulblokus | 2009-06-16 20:18:30 +0100 (Tue, 16 Jun 2009) | 1 line
line end/start delete
........
r7822 | paulblokus | 2009-06-16 23:43:42 +0100 (Tue, 16 Jun 2009) | 1 line
selection drawing + select all
........
r7823 | paulblokus | 2009-06-17 02:31:07 +0100 (Wed, 17 Jun 2009) | 3 lines
auto scrolling on caret moves
clear selection
........
r7845 | paulblokus | 2009-06-18 17:35:03 +0100 (Thu, 18 Jun 2009) | 1 line
page up/down
........
r7846 | paulblokus | 2009-06-18 17:38:45 +0100 (Thu, 18 Jun 2009) | 1 line
remove unnecessary fix
........
r7847 | paulblokus | 2009-06-18 18:00:16 +0100 (Thu, 18 Jun 2009) | 1 line
clipping fixes
........
r7849 | paulblokus | 2009-06-18 18:21:02 +0100 (Thu, 18 Jun 2009) | 1 line
scroll fix
........
r7850 | paulblokus | 2009-06-18 18:45:13 +0100 (Thu, 18 Jun 2009) | 1 line
simplified redraw request logic
........
r7855 | paulblokus | 2009-06-18 19:56:24 +0100 (Thu, 18 Jun 2009) | 1 line
front end passing mouse events
........
r7858 | paulblokus | 2009-06-18 22:18:39 +0100 (Thu, 18 Jun 2009) | 3 lines
drag selection
bug fixes
........
r7860 | paulblokus | 2009-06-18 23:32:39 +0100 (Thu, 18 Jun 2009) | 3 lines
take selection into account on keypress of different types
a few bugs fixed
........
r7876 | paulblokus | 2009-06-19 13:43:07 +0100 (Fri, 19 Jun 2009) | 3 lines
pango nsfont_split fix
a few textarea fixes
........
r7879 | paulblokus | 2009-06-19 17:33:10 +0100 (Fri, 19 Jun 2009) | 4 lines
newline handling seems to work this way
clear selection on mouse click
more bug fixes
........
r7880 | paulblokus | 2009-06-19 18:16:27 +0100 (Fri, 19 Jun 2009) | 3 lines
no caret option
selection follows drag
........
r7883 | paulblokus | 2009-06-19 19:08:44 +0100 (Fri, 19 Jun 2009) | 3 lines
o width selection bug fix
caret at correct side of drag selection
........
r7918 | paulblokus | 2009-06-22 21:01:28 +0100 (Mon, 22 Jun 2009) | 3 lines
fix caret positioning at line end
CR removal in input methods
........
r7919 | paulblokus | 2009-06-22 21:34:39 +0100 (Mon, 22 Jun 2009) | 1 line
fix crash on 0 length text
........
r7926 | paulblokus | 2009-06-23 09:53:56 +0100 (Tue, 23 Jun 2009) | 3 lines
change LF into spaces for single line widget
text normalisation at one place
........
r7931 | paulblokus | 2009-06-23 10:51:25 +0100 (Tue, 23 Jun 2009) | 1 line
cleanup
........
r7933 | paulblokus | 2009-06-23 11:17:22 +0100 (Tue, 23 Jun 2009) | 1 line
fix selection draw
........
r7935 | paulblokus | 2009-06-23 11:41:30 +0100 (Tue, 23 Jun 2009) | 1 line
guard readonly
........
r7942 | paulblokus | 2009-06-24 08:19:39 +0100 (Wed, 24 Jun 2009) | 1 line
applied changes suggested by jmb
........
r7943 | paulblokus | 2009-06-24 09:04:49 +0100 (Wed, 24 Jun 2009) | 1 line
little fixes
........
r7945 | paulblokus | 2009-06-24 12:50:14 +0100 (Wed, 24 Jun 2009) | 1 line
correct line length and wrapping
........
r7947 | paulblokus | 2009-06-24 14:32:36 +0100 (Wed, 24 Jun 2009) | 3 lines
fixed page up/down broken in last commit
changed logic for caret positioning on soft breaks
........
r7949 | paulblokus | 2009-06-24 16:31:42 +0100 (Wed, 24 Jun 2009) | 1 line
remove temporary/test code
........
r7975 | paulblokus | 2009-06-25 16:00:46 +0100 (Thu, 25 Jun 2009) | 1 line
changes suggested by jmb
........
r7976 | paulblokus | 2009-06-25 16:33:23 +0100 (Thu, 25 Jun 2009) | 1 line
added ro_ prefix to RISC OS textarea code
........
svn path=/trunk/netsurf/; revision=8060
2009-06-27 13:59:25 +00:00
John Mark Bell
6dd385591d
NETSURF_USE_DRAW should apply to the Draw content handler only.
...
Introduce NETSURF_USE_DRAW_EXPORT to toggle draw export support.
Fix up a bunch of stuff related to this.
Fix warnings caused by disabling the Sprite renderer.
svn path=/trunk/netsurf/; revision=7899
2009-06-20 19:38:56 +00:00
John Mark Bell
dbba3b4d37
Whoops. Lose spurious ')'.
...
svn path=/trunk/netsurf/; revision=7646
2009-05-30 00:29:46 +00:00
John Mark Bell
732d940744
Stop ro_gui_get_icon_string() returning a pointer to a location on the stack.
...
Make explicit the semantics that strings returned from this call are transient
and will be invalidated by subsequent calls.
svn path=/trunk/netsurf/; revision=7645
2009-05-30 00:26:04 +00:00
John Mark Bell
5404e91fcd
Simplify code
...
svn path=/trunk/netsurf/; revision=7644
2009-05-30 00:23:07 +00:00
John Mark Bell
f959f5b679
A bunch of tidying. Also squash NULL-pointer dereferences.
...
svn path=/trunk/netsurf/; revision=7643
2009-05-29 23:43:53 +00:00
John Mark Bell
21c78155b5
Actually catch error and deal with it
...
svn path=/trunk/netsurf/; revision=7642
2009-05-29 23:25:38 +00:00
John Mark Bell
b03d52e6d9
Ensure we don't read beyond the end of the array of available matches. Set any remaining saved pointers to NULL.
...
svn path=/trunk/netsurf/; revision=7641
2009-05-29 23:23:02 +00:00
John Mark Bell
cda586e6dc
Add missing break statement
...
svn path=/trunk/netsurf/; revision=7640
2009-05-29 23:14:16 +00:00
John Mark Bell
0fee18ebdc
Add missing return statement.
...
svn path=/trunk/netsurf/; revision=7639
2009-05-29 23:13:28 +00:00
John Mark Bell
1db6b5d93e
Tidy up somewhat. Lose redundant assignment.
...
svn path=/trunk/netsurf/; revision=7638
2009-05-29 23:12:18 +00:00