Michael Drake
fe7b71edbf
Selection autoscroll of scrollbarless textareas (single line).
2013-02-11 17:55:36 +00:00
Michael Drake
99cab8389a
Early detection of regions outside the visible.
2013-02-11 17:05:42 +00:00
Michael Drake
fc430dba75
Clip native caret render so it can't overwrite border. Slight simplification.
2013-02-11 16:47:11 +00:00
Michael Drake
e6bf51c3ba
Single line textareas don't have scrollbars, so they don't get the scroll redraw request from the scrollbar callback.
2013-02-11 16:31:06 +00:00
Michael Drake
3bcc79ccf0
Don't need to redraw for caret removal if using a native caret.
2013-02-11 16:10:19 +00:00
Michael Drake
fa2d5cf62c
Fix internal caret redraw bounds.
2013-02-11 14:30:26 +00:00
Michael Drake
18444f261a
Fix delete-to-line-end.
2013-02-11 13:39:56 +00:00
Michael Drake
7af0614202
Make delete line key enum value name less missleading. (Doesn't cut to clipboard.)
2013-02-11 10:34:06 +00:00
Michael Drake
99fc8d3f0d
Move html textarea's selection colour chooser to plot_style.h, as it could be used elsewhere.
2013-02-11 00:41:22 +00:00
Michael Drake
b38520da99
Implement delete line. (Ctrl+U on RISC OS.)
2013-02-10 23:22:46 +00:00
Michael Drake
10edbc45bd
If a character is replaced by a character of different width, the caret needs to move. Checking change in character index isn't enough, so move caret if redraw was required too.
2013-02-09 18:41:23 +00:00
Michael Drake
32e9602126
When updating textarea layout settings, remember scrollbar status.
2013-02-09 18:21:10 +00:00
Michael Drake
1be54d7b10
If restarting reflow for scrollbar change, need to start at line 0.
2013-02-09 16:50:30 +00:00
Michael Drake
56cfa93531
Empty textarea has one line.
2013-02-09 16:28:00 +00:00
Michael Drake
25b036418e
Stop it from using past the end of lines data allocation. (It could add up to 2 lines per pass, but assumed 1 for allocation.)
2013-02-09 15:26:20 +00:00
Michael Drake
8c3e0cf81a
[Return] will replace selection.
2013-02-09 14:43:21 +00:00
Michael Drake
b4609f41bc
Support front ends that pass CR for [return], as well as those that pass NL.
2013-02-09 14:19:38 +00:00
Michael Drake
eb1113e4c3
Fix handling of empty textarea.
2013-02-09 14:18:17 +00:00
Michael Drake
048b344a43
Take account of scrollbar-occupied regions.
2013-02-09 13:34:28 +00:00
Michael Drake
f848de3dd0
Fix use of x values when y is required.
2013-02-09 13:18:16 +00:00
Michael Drake
2bd0d13817
Take account of caret height when scrolling to show caret.
2013-02-09 11:54:13 +00:00
Michael Drake
688e1b0e4f
Slight selection auto-scroll optimisation.
2013-02-09 11:24:44 +00:00
Michael Drake
363d02b8ad
Pedantic wrap.
2013-02-08 23:39:41 +00:00
Michael Drake
50c52408f5
Fix seg fault when moving cursor up onto empty top line.
2013-02-08 23:38:05 +00:00
Michael Drake
6fee220c52
Adjust code to reduce indentation.
2013-02-08 23:35:42 +00:00
Michael Drake
0d831c4ab6
Scaled textarea rendering support. Ugly.
2013-02-08 23:25:40 +00:00
Michael Drake
586e02e915
Implement text selection auto-scroll.
2013-02-08 20:03:44 +00:00
Michael Drake
7a397d29c6
Improve scroll-to-caret behaviour.
2013-02-08 19:46:35 +00:00
Michael Drake
59d24187f7
Support dropping text file on textarea widget.
2013-02-08 16:05:44 +00:00
Michael Drake
698f391289
Add scrollwheel support to textareas.
2013-02-08 15:26:24 +00:00
Michael Drake
f57e89cc25
Add ta to documentation.
2013-02-08 15:15:27 +00:00
Michael Drake
9c20ff9592
Drag fixup. Add some documentation.
2013-02-08 15:05:07 +00:00
Michael Drake
4747bbbfb2
HTML drags now go via content msg.
2013-02-08 13:22:53 +00:00
Michael Drake
9ec663f3a9
Tweak selection rendering. Adjusting layout doesn't emit redraw request. Client must redraw when it wants it.
2013-02-08 13:16:24 +00:00
Michael Drake
76b0e59b18
Don't lose fractional part of text pt size to rounding.
2013-02-07 15:03:35 +00:00
Michael Drake
2979a19786
Remove input subtree special numberspacing.
2013-02-07 14:21:48 +00:00
Michael Drake
94be5edbfa
Native caret not now set in redraw. Prevents endless redraw when textarea has caret.
2013-02-07 13:58:43 +00:00
Michael Drake
762e1aad73
First pass at getting html forms to use textarea widget.
...
(Input element types text & password, and textarea element.)
Can edit and submit forms, but there are loads of issues.
2013-02-06 22:39:45 +00:00
Michael Drake
008cdb42d7
Fix empty textarea reflow. Fix empty line (just \n) redraw. Add set layout function to set size and padding.
2013-02-06 22:30:32 +00:00
Michael Drake
442218cb80
Pull flags out of textarea_setup.
2013-02-02 22:58:35 +00:00
Michael Drake
97bc1d0189
Add support for password text inputs.
...
+ Text display obscured.
+ Cut/Copy put the obscured version on the clipboard.
2013-02-01 18:29:27 +00:00
Michael Drake
663191791e
Add move caret msg. Add flag to choose internal caret or caret move msgs.
2013-01-30 18:01:01 +00:00
Michael Drake
5eb417fff4
Create textarea_msg struct on stack, rather than using global.
2013-01-29 22:52:21 +00:00
Michael Drake
af7a5d2d67
Don't redraw if selection is unchanged.
2013-01-29 20:28:10 +00:00
Michael Drake
93cc123200
Update textarea to inform client what it's doing with drags.
...
Now single callback for both redraw requests and drag reports.
Update treeview to use new textarea API.
Update Atari URL bar to use new textarea API. (Ignores drag reports, currently.)
Minor textarea fixes.
2013-01-29 17:34:08 +00:00
Michael Drake
75a24f7838
Add enum value for when no button is pressed (hover).
2013-01-29 14:07:24 +00:00
François Revol
2f94b0a949
textarea: C89
2013-01-20 17:59:55 +01:00
Michael Drake
9995ef583f
Early scrollbar mouse handling.
2013-01-18 23:32:53 +00:00
Michael Drake
d252896953
Ensure we know for sure if scrollbar widget will want to scroll us. Avoid double xy to offset conversion.
2013-01-15 21:05:54 +00:00
Michael Drake
7a0b347563
Add parentheses.
2013-01-15 19:50:36 +00:00
Michael Drake
348e9789a4
Add scrollbars to textarea, and improve scrolling to try to keep caret in centre. Currently the scrollbars are mostly decoration, although they show accuratly where you are scrolled to in the area. TODO: Pass mouse input to scrollbars.
2013-01-15 19:40:32 +00:00
Michael Drake
96264ca71e
Use right padding. Thanks jmb.
2013-01-14 12:01:23 +00:00
Michael Drake
700aea8b08
Fix caret removal redraw to take account of border width. Fix scroll_visible to take account of border width in vertical scroll.
2013-01-14 11:46:56 +00:00
Michael Drake
2b7bc02961
Implement most of the styling needed for HTML. Allow caret to be hidden.
2013-01-13 23:01:29 +00:00
Michael Drake
740559ab52
Rewrite redraw to handle selection properly. (Now text can change colour inside selection, rather than just rendering a rectangle under the normal line of text. This removes colour restrictions, allowing e.g. inversion for selected text.)
2013-01-13 14:51:26 +00:00
Michael Drake
c7a37392e4
Add background colour to textarea_redraw API. Add source comments.
2013-01-12 20:59:32 +00:00
Michael Drake
5124b8a02a
Add textarea_setup struct to textarea_create API.
2013-01-12 20:46:01 +00:00
Michael Drake
ac03806a50
Fix redraw of caret when scroll offsets are non-zero, only caret has moved, and we're not getting a full textarea redraw.
2013-01-10 23:21:47 +00:00
Michael Drake
ac89e52109
Simplify routine to scroll ta so that caret is visible.
2013-01-10 23:20:42 +00:00
Michael Drake
ab5d165659
More wrap behaviour improvement.
2013-01-10 19:43:22 +00:00
Michael Drake
694c1e7eea
Fix silly.
2013-01-10 18:42:56 +00:00
Michael Drake
d3973b2991
Fix previous caret position redraw.
2013-01-10 18:36:25 +00:00
Michael Drake
2158ef60a8
Improve reflow in multiline textareas.
2013-01-10 17:42:43 +00:00
Michael Drake
eddb0f17d1
Simplfy caret placement and redraw.
2013-01-10 15:06:05 +00:00
Michael Drake
4cad82db9f
Fix caret placement in multi-line textareas.
2013-01-10 12:46:33 +00:00
Michael Drake
ec8e6ac91d
Add support for clipboard. Improve text selection behaviour. Various fixes.
2013-01-09 18:10:20 +00:00
Michael Drake
31e7b6d983
Make get_xy_offset return both char and byte offset. (Byte being needed for selection replacement.)
2013-01-09 14:26:11 +00:00
Michael Drake
964a736a53
Rename selection index markers.
2013-01-08 19:51:59 +00:00
Michael Drake
8af3dd9a43
Redo html textinput for new front end clipboard API. This doesn't affect the textinput code's brokenness.
2013-01-08 16:59:26 +00:00
Michael Drake
de63a64b50
Update to use new front end clipboard functions. Now we build the buffer from each individual text box in the core, instead of in each front end. Styles for text runs are generated in the HTML case.
2013-01-08 16:54:46 +00:00
Michael Drake
147f2bd08a
Remove content_msg for PASTE, since it doesn't need a gui_window to get the buffer from the front end now.
2013-01-08 16:53:00 +00:00
Michael Drake
e93fae7f2d
Change clipboard api, so it does not assume either browser_window/gui_window, or html/text-plain content selection objects. This allows desktop/textarea to use clipboard.
2013-01-08 16:44:45 +00:00
Michael Drake
f43f84f5ad
Fix redraw of selection hightlight during selection drags.
2013-01-07 14:15:35 +00:00
Michael Drake
0c0f1e4b7a
Remove wrong comments.
2013-01-07 12:59:06 +00:00
Michael Drake
e414d545af
Make comment concise.
2013-01-07 12:22:51 +00:00
Michael Drake
1ac2e00134
Remove forward declaration.
2013-01-05 15:27:53 +00:00
Michael Drake
912d3f7690
Put exported function comments in header.
2013-01-05 15:15:23 +00:00
Michael Drake
46b7691522
Start rationalising textarea widget.
2013-01-05 14:52:02 +00:00
Michael Drake
131b4cdda1
For now selection clear and selection copy are handled by the bw. Select all is only handled by the bw if nothing has claimed input. This stops the crash when select all is used in textarea.
...
TODO: The special keys should not be handled by the bw, they should be handled by the content with focus.
2013-01-03 15:25:59 +00:00
Michael Drake
4aadb5237a
Ensure selection related keypresses go to whatever has claimed input.
2013-01-03 12:48:09 +00:00
Vincent Sanders
33934e1271
implement the GTK preferances dialog with signals
2013-01-01 00:59:47 +00:00
John-Mark Bell
ea3f09a724
Correctly emit entities when serialising to HTML.
2012-12-30 23:37:06 +00:00
Vincent Sanders
ce309aa5a9
add message retrival of error codes ensuring there are messages for all codes
2012-11-26 17:32:57 +00:00
François Revol
8a12a8d545
C89
2012-11-25 19:19:58 +01:00
John-Mark Bell
ce640e59fd
Report (and ignore) failure to load non-existent document. (Credit: Chris Young)
2012-11-11 11:31:34 +00:00
John-Mark Bell
bb3a6bbb3b
Permit hotlist entries to have no title.
2012-11-11 11:23:43 +00:00
Chris Young
f2ab822a83
Prevent NULL pointer access with plain text contents
2012-11-10 22:26:43 +00:00
Vincent Sanders
a79e098817
remove redundant domutils and put functionality in existing utils/libdom
2012-11-10 11:44:38 +00:00
John-Mark Bell
4d58ed6562
Port hotlist load/save to libdom.
2012-11-09 23:23:04 +00:00
Michael Drake
2385f8269a
Fix to escape comments in save complete output.
2012-11-06 10:02:17 +00:00
Michael Drake
af1572be92
Height is already scaled. Make OBJ char bigger.
2012-11-05 19:08:44 +00:00
Michael Drake
d0cb1d4e66
Don't abort redraw on bad image.
2012-11-05 18:19:14 +00:00
John-Mark Bell
f824ab8af4
Port save complete to libdom.
2012-11-03 23:19:45 +00:00
Vincent Sanders
a1d052399a
fix warnings
2012-10-18 10:40:53 +01:00
Vincent Sanders
f18bbd48c7
Improve error handling in html content
2012-10-17 21:52:43 +01:00
Michael Drake
35eb251244
Fix "error setting certificate verify locations" problem when the Choices file doesn't exist. Now there's a single place for front ends to set options overrides. Fix nsoption_setnull_charp leak.
2012-10-17 14:20:18 +01:00
Michael Drake
0c0b263b29
Add some startup logging.
2012-10-17 11:41:25 +01:00
Michael Drake
dbed8312c8
Disable thumbnail persistence.
2012-10-14 19:13:07 +01:00
Michael Drake
8dd8330eee
Remove unused #ifdef riscos.
2012-10-14 19:10:39 +01:00
Michael Drake
c8263d299e
Tree can't be NULL.
2012-10-11 14:06:48 +01:00
Michael Drake
211e3ac414
Fix leak.
2012-10-11 13:16:07 +01:00
Michael Drake
167336cce2
Iframes have to have a parent content.
2012-10-11 13:06:51 +01:00
Michael Drake
d9e7d58106
Fix up ripples from urldb change.
2012-10-11 11:20:02 +01:00
Michael Drake
7411356b3b
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2012-10-09 15:38:01 +01:00
Michael Drake
38a9c374a4
Remove unused functions.
2012-10-09 15:26:32 +01:00
Daniel Silverstone
4945eeac2f
Revert previous two commits now that we've diagnosed the CI hiccough
2012-10-08 21:59:47 +01:00
Daniel Silverstone
b8af038726
Throw a #warning when the CI build is detected. Sorry for the noise
2012-10-08 21:50:12 +01:00
Michael Drake
9d29c8b48a
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2012-10-08 20:34:34 +01:00
Michael Drake
ce577f4dc4
Port to new urldb API.
2012-10-08 20:34:04 +01:00
Vincent Sanders
5800789df2
trivial docuemntation cleanups to address some of the huge number of docuemntation warnings
2012-10-08 14:52:24 +01:00
Daniel Silverstone
9cb4d00ea9
If you pass CI_BUILD=xxx to make, it will build a CI #xxx into the version string and also mention it in the testament
2012-10-06 18:12:57 +01:00
Vincent Sanders
2bde4a3baa
verify path parameter to options loading
2012-10-05 14:26:25 +01:00
Michael Drake
5646528898
Fix cases of returning pointers as bool for GCC 2.95.2.
2012-09-29 23:09:32 +01:00
Michael Drake
153c444454
Move browser_window struct to private header. Places that shouldn't include it do, such as front end code.
...
Frontends that have been updated to build:
framebuffer
gtk
monkey
riscos
TODO:
amiga
atari
beos
cocoa
windows
2012-08-22 12:22:58 +01:00
Michael Drake
d489908af8
Move scrollbar msg data declaration.
2012-08-22 10:43:50 +01:00
Michael Drake
d307a854fc
Clean up includes.
2012-08-22 10:37:22 +01:00
Michael Drake
b134279644
Allow the presence of form inputs to be obtained without knowledge of html content internals.
2012-08-20 22:02:37 +01:00
Michael Drake
014fb9db8d
Function for front ends to get debug dump from bw.
2012-08-20 16:05:30 +01:00
Michael Drake
9a82677312
Remove declaration of nonexistent function.
2012-08-20 14:26:43 +01:00
Michael Drake
edef40bbc4
Don't pass struct box to content open.
2012-08-20 14:22:28 +01:00
Michael Drake
a4f796e217
Let *_drop_file_at_point determine if a drop is possible.
2012-08-20 12:12:10 +01:00
Michael Drake
57d2e31e59
Avoid using hlcache_handle for drag saves in html_interaction. Drag save msg with NULL content now means save the content which sends the message.
2012-08-19 12:46:42 +01:00
Michael Drake
65e825c0c5
Handle choice of whether to show status for loading content or request content.
2012-08-19 11:33:37 +01:00
Michael Drake
a2906b3994
Add paste request content message.
2012-08-18 22:19:15 +01:00
Michael Drake
142a0bf859
Add content message for setting mouse pointer.
2012-08-17 10:01:15 +01:00
Michael Drake
e177fa49c2
Move mouse pointer enums to mouse header.
2012-08-17 09:45:15 +01:00
Michael Drake
402de7572d
Use new content message for saving of hyperlink target URL.
2012-08-16 23:26:05 +01:00
Michael Drake
d9bd357802
Move browser window related control over mouse pointer out of html content handler.
2012-08-16 22:44:25 +01:00
Michael Drake
35fd2ad7f2
Don't use GUI_POINTERs in content handlers.
2012-08-16 22:21:08 +01:00
Michael Drake
cb9781e057
Move bw time recording to bw layer.
2012-08-16 21:35:42 +01:00
Michael Drake
1919c8e071
Add message for content wanting wanting drag save to start.
2012-08-16 20:20:49 +01:00
Michael Drake
049d5097b8
Don't need to include content.h
2012-08-16 19:36:25 +01:00
Michael Drake
d8872b6bab
Remove redundant legacy checking for bw->window.
2012-08-16 16:26:43 +01:00
Michael Drake
6daf6c178d
Frame drag start function can take child bw. Don't need to get root bw in html handler. Avoids bw dereferences.
2012-08-16 16:14:15 +01:00
Michael Drake
195a77a4cd
Make new function for starting a frames resize and use it.
2012-08-16 15:55:20 +01:00
Michael Drake
c1be4c9e77
Formatting changes.
2012-08-16 15:47:14 +01:00
Michael Drake
7277ce5dfc
Remove redundant "action" param.
2012-08-16 15:43:14 +01:00
Michael Drake
83c8e940f8
Don't pass status to frames handler.
2012-08-16 15:38:06 +01:00
Michael Drake
4872bc30b8
Remove redundant scrollbar widget message.
2012-08-16 13:13:25 +01:00
Michael Drake
e5374cc042
Let contents broadcast explicit status messages as well as announce that their internal status has been updated.
2012-08-15 19:00:50 +01:00
Michael Drake
5526d7e6f2
Stop render/search.c from dereferencing bw and remove dependency on html & text contents' bw pointer.
2012-08-14 14:03:54 +01:00
Michael Drake
b51816c222
Clean up search gui callbacks.
2012-08-14 13:41:30 +01:00
Michael Drake
8c12ecd5cd
Let browser window handle content scroll request message.
2012-08-13 23:32:58 +01:00
Michael Drake
3f9565753f
Make selection_traverse internal to desktop/selection.c.
2012-08-13 17:48:03 +01:00
Michael Drake
86f3e70f1a
Tolerate NULL selection context in selection_get_copy.
2012-08-13 17:38:09 +01:00
Michael Drake
e9b036a794
Fix selection string struct init.
2012-08-13 17:21:04 +01:00
Michael Drake
4c945bd16f
Function to get copy of selection as string.
2012-08-13 17:09:42 +01:00
Michael Drake
d106091d6e
Pass font plot style out to front end clipboard append function.
2012-08-13 14:43:04 +01:00
Michael Drake
68947c377e
Obtain font style in copy handler.
2012-08-13 13:55:57 +01:00
Vincent Sanders
d3b4a286f9
check return from lwc operation
2012-08-09 18:00:55 +01:00
Michael Drake
efaca1c1fa
Add core function for copy to clipboard, so we don't need to expose render/box.h internals to front ends.
2012-08-02 14:23:42 +01:00
Vincent Sanders
25cdea3351
doxygen serious warning cleanup
2012-07-24 16:19:49 +01:00
Daniel Silverstone
2363301c94
Show refcnt in lwc iterator at netsurf exit.
2012-07-22 20:24:33 +01:00
Michael Drake
2ad24f39da
Interned string cleanup, phase 2: Create utils/corestrings and use it in css handler.
2012-07-22 15:48:55 +01:00
John-Mark Bell
1ecc94b187
Use case insensitive string comparisions for nodes
2012-07-15 01:39:25 +01:00
Vincent Sanders
1fc96acf47
hlcache handle is not a content, do not treat it as one - oops
2012-07-07 00:14:50 +01:00
John Mark Bell
05ee98d1d6
Add support for selecting text fragments (based on a patch from Ole Loots)
...
svn path=/trunk/netsurf/; revision=14016
2012-06-30 10:24:15 +00:00
Daniel Silverstone
8551b9dff0
Move js_finalise(). Fix provided by Ole Loots (mono)
...
svn path=/trunk/netsurf/; revision=14014
2012-06-29 20:37:32 +00:00
Vincent Sanders
638e135c60
correctly setup window object as global
...
svn path=/trunk/netsurf/; revision=13987
2012-06-26 18:55:57 +00:00
Chris Young
08f18009c8
Fix typo
...
svn path=/trunk/netsurf/; revision=13970
2012-06-19 20:00:53 +00:00
Vincent Sanders
49effe103a
restructure javascript binding layout to be more explicit
...
fix html content so it correctly loads all the script tags
svn path=/trunk/netsurf/; revision=13968
2012-06-19 09:35:51 +00:00
Vincent Sanders
4c89c9d5df
improve javascript support
...
svn path=/trunk/netsurf/; revision=13962
2012-06-10 22:17:30 +00:00
Chris Young
9458ed77ab
Add support for sending DoNotTrack header.
...
svn path=/trunk/netsurf/; revision=13928
2012-05-20 16:29:57 +00:00
Michael Drake
387c85ae0b
Pass correct width/height values to textarea redraw callback when setting caret position. Reduces flicker.
...
svn path=/trunk/netsurf/; revision=13851
2012-04-12 10:30:20 +00:00
Michael Drake
87dbbe1260
Fix caret redraw height. Thanks to m0n0.
...
svn path=/trunk/netsurf/; revision=13850
2012-04-12 09:05:37 +00:00
Michael Drake
ca7ef937ff
Clean up blend_colour macro.
...
svn path=/trunk/netsurf/; revision=13753
2012-03-27 21:34:55 +00:00
Michael Drake
fc8cf634d5
Fix lighten_colour and double_lighten_colour to prevent alpha bleeding into red channel. Make macros clearer.
...
svn path=/trunk/netsurf/; revision=13742
2012-03-27 11:55:57 +00:00
Michael Drake
fba2ebeee6
Use gui_system_colours.
...
svn path=/trunk/netsurf/; revision=13741
2012-03-27 11:53:53 +00:00
Michael Drake
57793aae89
Remove gui_colour_* options.
...
svn path=/trunk/netsurf/; revision=13740
2012-03-27 11:51:18 +00:00
Michael Drake
eb189092c7
Constify param to gui_system_colour_char function.
...
svn path=/trunk/netsurf/; revision=13737
2012-03-27 10:47:29 +00:00
Michael Drake
8fabc6119c
Use gui_ interface to get system colours, rather than nosoption_.
...
svn path=/trunk/netsurf/; revision=13736
2012-03-27 10:34:38 +00:00
Chris Young
103c8703ec
Expose tree_setup_colours so it can be called from frontends if the system
...
colour scheme changes.
svn path=/trunk/netsurf/; revision=13730
2012-03-26 21:13:00 +00:00
Michael Drake
3434883de7
Use system colours for scrollbar widget. Front ends must be updated to set them.
...
svn path=/trunk/netsurf/; revision=13706
2012-03-25 18:53:34 +00:00
Michael Drake
7831fda94d
Use system colours for treeview. Front ends must be updated to set them.
...
svn path=/trunk/netsurf/; revision=13705
2012-03-25 18:52:58 +00:00
Daniel Silverstone
ef238c17fe
For now, build a shonky libxml tree. Later, rewrite save_complete for libdom
...
svn path=/trunk/netsurf/; revision=13664
2012-03-25 10:13:53 +00:00
Daniel Silverstone
a195282bfb
Include render/box.h
...
svn path=/trunk/netsurf/; revision=13639
2012-03-24 22:29:31 +00:00
Daniel Silverstone
cb99af0b01
Include render/box.h
...
svn path=/trunk/netsurf/; revision=13638
2012-03-24 22:28:49 +00:00
Daniel Silverstone
24894214bc
Include dom/dom.h where it might be needed
...
svn path=/trunk/netsurf/; revision=13625
2012-03-24 20:55:22 +00:00
John Mark Bell
72baec3aec
Remove bogus dependencies on box.h
...
svn path=/trunk/netsurf/; revision=13607
2012-03-24 17:42:29 +00:00
Daniel Silverstone
d1194be49f
Migrate frame types so that desktop/browser.h does not include render/html.h
...
svn path=/trunk/netsurf/; revision=13605
2012-03-24 17:09:21 +00:00
Michael Drake
aaf874980e
Remove include that's pulled in from browser.h anyway.
...
svn path=/trunk/netsurf/; revision=13591
2012-03-24 11:02:10 +00:00
Vincent Sanders
67b6f8d4a3
remove unecessary includes
...
svn path=/trunk/netsurf/; revision=13556
2012-03-23 16:56:43 +00:00
Vincent Sanders
1490b52a6b
NetSurf options rework (a=vince r=daniels,jmb)
...
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
Michael Drake
9c0c9ecdfe
Add browser_window drag type accessor.
...
svn path=/trunk/netsurf/; revision=13494
2012-02-28 12:20:49 +00:00
Michael Drake
ed9fb931cd
Add browser window scale acceser.
...
svn path=/trunk/netsurf/; revision=13491
2012-02-27 22:43:25 +00:00
Michael Drake
2c7a54013d
Constify rect param to browser_window_set_drag_type.
...
svn path=/trunk/netsurf/; revision=13398
2012-01-11 16:48:59 +00:00
Michael Drake
6794af012e
Constify rect param to gui_window_drag_start.
...
svn path=/trunk/netsurf/; revision=13397
2012-01-11 16:45:17 +00:00
Michael Drake
04ece30fa9
Pass pointer constraints for drag out to front ends. Ensure content scrollbar drag termination always informs the browser window layer that the drag is over.
...
svn path=/trunk/netsurf/; revision=13395
2012-01-11 14:20:26 +00:00
Michael Drake
c08ee82076
Allow drag handlers to inform browser window layer of any pointer range constraints.
...
svn path=/trunk/netsurf/; revision=13394
2012-01-10 22:02:19 +00:00
Michael Drake
24b7ae1bf4
Browser window destruction destroys search context.
...
svn path=/trunk/netsurf/; revision=13390
2012-01-06 23:32:38 +00:00
Michael Drake
767f40dc72
Simplify frameset distribution calcs.
...
svn path=/trunk/netsurf/; revision=13376
2012-01-06 14:44:01 +00:00
Michael Drake
b4bf069099
Set drag type correctly for page drag.
...
svn path=/trunk/netsurf/; revision=13375
2012-01-06 12:41:24 +00:00
Vincent Sanders
6ebaecccaf
Totaly prefunctry binding to spidermonkey
...
svn path=/trunk/netsurf/; revision=13360
2012-01-01 21:42:38 +00:00
Vincent Sanders
df18a97143
Change GTK plotting to use cairo surfaces throughout
...
svn path=/trunk/netsurf/; revision=13354
2011-12-30 00:58:35 +00:00
Michael Drake
075c18b27d
Redraw old width after deletion too.
...
svn path=/trunk/netsurf/; revision=13340
2011-12-24 09:54:51 +00:00
Michael Drake
246ee6dc6f
Set background image requirement in core print redraw_context.
...
svn path=/trunk/netsurf/; revision=13338
2011-12-23 23:17:48 +00:00
Michael Drake
081217a321
Add core options to disable fetch of foreground & background images.
...
Remove broken background image option from RISC OS front end.
svn path=/trunk/netsurf/; revision=13332
2011-12-23 19:48:09 +00:00
Michael Drake
9a44d4b535
Delete comment that seems incorrect.
...
svn path=/trunk/netsurf/; revision=13307
2011-12-20 14:51:47 +00:00
Michael Drake
8fc3baa48d
When deleting multiple treeview nodes, don't redraw after every node is deleted, only after the whole lot has gone. (Much faster.) Fix redraw to clear bottom of treeview after deleting nodes.
...
svn path=/trunk/netsurf/; revision=13306
2011-12-20 14:46:29 +00:00
Michael Drake
877988a7ef
Add named scroll offset values for page up, page down, top and bottom.
...
svn path=/trunk/netsurf/; revision=13293
2011-12-18 15:36:38 +00:00
Michael Drake
41ef599293
Fix frame dimension calculations when required sizes don't fit the available space.
...
svn path=/trunk/netsurf/; revision=13271
2011-12-14 18:31:57 +00:00
Michael Drake
a0bbd87b1e
Fix frameset resizing.
...
svn path=/trunk/netsurf/; revision=13246
2011-12-05 13:49:34 +00:00
John Mark Bell
d2ce167021
Revert r13235 as we can now log URLs for hlcache_handles without an underlying content
...
svn path=/trunk/netsurf/; revision=13237
2011-12-04 14:56:54 +00:00
John Mark Bell
f2993e6ed0
content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
...
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
Michael Drake
890bb67993
Can't log an erroring content's URL.
...
svn path=/trunk/netsurf/; revision=13235
2011-12-04 14:40:47 +00:00
Michael Drake
e2a7600e9a
Big wodge of internal browser window scroll fixes, or "rationalisation of browser window scrollbar handling".
...
svn path=/trunk/netsurf/; revision=13221
2011-12-02 16:10:13 +00:00
Michael Drake
71a8a8118c
Currently untested (and unused) "drop file on browser window" handling.
...
svn path=/trunk/netsurf/; revision=13215
2011-12-01 21:51:04 +00:00
Michael Drake
70c8d94858
Squash use of uninitialised variable warning.
...
svn path=/trunk/netsurf/; revision=13213
2011-12-01 17:04:35 +00:00
Michael Drake
4856a4c1fb
Pass scroll wheel action into contents. Handle scrolling of box scrollbars and iframes.
...
svn path=/trunk/netsurf/; revision=13200
2011-11-29 17:47:29 +00:00
Michael Drake
64c405c541
New function for sending a scroll request into a core browser window at a given coordinate. Currently handles frames only. TODO: iframes and css overflow scrollable boxes. Front ends should call this to pass scroll wheel actions to the core.
...
svn path=/trunk/netsurf/; revision=13197
2011-11-29 14:20:25 +00:00
Michael Drake
449e41e306
New function for applying a change in offset to a scrollbar.
...
svn path=/trunk/netsurf/; revision=13196
2011-11-29 14:16:26 +00:00
Michael Drake
d54e5719d8
Remove redundant break.
...
svn path=/trunk/netsurf/; revision=13194
2011-11-29 10:43:15 +00:00
Michael Drake
e79c7d2ce8
Fix caret position after deleting selection. Thanks to Ole Loots.
...
svn path=/trunk/netsurf/; revision=13193
2011-11-29 10:40:30 +00:00
Chris Young
a7ba1b7ccd
Fix function usage
...
svn path=/trunk/netsurf/; revision=13190
2011-11-28 21:10:58 +00:00
Chris Young
d169eefe59
Allow new (blank) hotlist entries to be created in the currently-selected folder
...
(if there is one) as this gives the user more control where their additions are
being created.
Functionality can be enabled/disabled by passing true/false to
hotlist_add_folder/hotlist_add_entry.
svn path=/trunk/netsurf/; revision=13185
2011-11-27 20:07:26 +00:00
Michael Drake
714f07c48b
Rename nsurl_enquire to nsurl_has_component.
...
svn path=/trunk/netsurf/; revision=13183
2011-11-27 18:32:06 +00:00
John Mark Bell
5970157fc7
Fix bug #3441539 : downloads may be created from within frames
...
svn path=/trunk/netsurf/; revision=13178
2011-11-24 00:13:19 +00:00
John Mark Bell
3f395ec3bf
Committing textarea_set_dimensions patch from Ole Loots.
...
svn path=/trunk/netsurf/; revision=13160
2011-11-21 09:09:28 +00:00
Michael Drake
87fdebb534
Squash warnings.
...
svn path=/trunk/netsurf/; revision=13148
2011-11-15 11:40:40 +00:00
Chris Young
dd267bd90a
Trap RMB and select the node under the pointer if no other node selected
...
svn path=/trunk/netsurf/; revision=13146
2011-11-11 13:09:12 +00:00
Chris Young
ee58cd0ea0
fix redraw
...
svn path=/trunk/netsurf/; revision=13143
2011-11-10 14:02:37 +00:00
Chris Young
a8471a9343
Make default folder appear different (redraw seems to be broken at present)
...
svn path=/trunk/netsurf/; revision=13142
2011-11-10 13:47:24 +00:00
Chris Young
dd6d1ce527
Make default hotlist folder persistent across sessions
...
svn path=/trunk/netsurf/; revision=13141
2011-11-10 13:07:47 +00:00
Chris Young
0b6e5da662
Allow setting a default folder in the tree for hotlist entries to go into. Frontends
...
will need to be updated to use hotlist_set_default_folder() if they want to use this
functionality.
svn path=/trunk/netsurf/; revision=13139
2011-11-10 12:22:48 +00:00
Michael Drake
ab45ecd228
Use lwc_string for box->id.
...
svn path=/trunk/netsurf/; revision=13093
2011-10-29 11:37:05 +00:00
Michael Drake
4abaf2f085
Intern bw->frag_id.
...
svn path=/trunk/netsurf/; revision=13090
2011-10-28 22:27:50 +00:00
Michael Drake
240fdc5187
Constify frag_id param.
...
svn path=/trunk/netsurf/; revision=13089
2011-10-28 22:25:00 +00:00
Michael Drake
dcc5a532bc
Use nsurl to add fragment for URL bar display.
...
svn path=/trunk/netsurf/; revision=13088
2011-10-28 19:19:08 +00:00
Michael Drake
67b1dccf55
Increase default mem cache size.
...
svn path=/trunk/netsurf/; revision=13027
2011-10-10 11:40:26 +00:00
John Mark Bell
50f9420286
Only permit root windows to convert fetch requests to downloads
...
svn path=/trunk/netsurf/; revision=13026
2011-10-10 08:56:34 +00:00
Michael Drake
265bfdd323
Avoid a strlen.
...
svn path=/trunk/netsurf/; revision=13004
2011-10-08 12:22:29 +00:00
Michael Drake
f14184ee1d
Pedantic style changes.
...
svn path=/trunk/netsurf/; revision=13001
2011-10-08 10:22:34 +00:00
John Mark Bell
4cd69b8aa9
Improve error handling
...
svn path=/trunk/netsurf/; revision=12997
2011-10-08 00:06:43 +00:00
John Mark Bell
59fdc29e66
Lose unnecessary logging
...
svn path=/trunk/netsurf/; revision=12993
2011-10-07 22:31:52 +00:00
Vincent Sanders
2f60ecea61
use the default resource:favicon.ico when a site has no icon of its own
...
svn path=/trunk/netsurf/; revision=12992
2011-10-07 22:22:15 +00:00
Michael Drake
62111d36be
nsurl_ref returns the referenced nsurl.
...
svn path=/trunk/netsurf/; revision=12991
2011-10-07 22:18:27 +00:00
Michael Drake
2c636bc0a4
Don't fetch favicons for (i)frames.
...
svn path=/trunk/netsurf/; revision=12986
2011-10-07 21:49:29 +00:00
Vincent Sanders
4c829ae481
use resource:favicon.ico instead of resource:favicon.png
...
svn path=/trunk/netsurf/; revision=12982
2011-10-07 21:03:45 +00:00
Vincent Sanders
8a293636fb
fix favicon default selection for non http(s) urls
...
svn path=/trunk/netsurf/; revision=12981
2011-10-07 20:47:34 +00:00
Vincent Sanders
33af42360f
fix ico handler to actually decode to bitmap when called via get_internal
...
svn path=/trunk/netsurf/; revision=12980
2011-10-07 19:39:52 +00:00
John Mark Bell
c22373e000
Attempting to download favicons is silly
...
svn path=/trunk/netsurf/; revision=12979
2011-10-07 19:09:52 +00:00
Vincent Sanders
8f3d6d3649
consolidate code so a single codepath starts the retrival of the favicon
...
svn path=/trunk/netsurf/; revision=12978
2011-10-07 18:49:16 +00:00
Vincent Sanders
230779848e
metadata links stored in contents
...
browser uses metadata links for favicons
svn path=/trunk/netsurf/; revision=12977
2011-10-07 18:12:47 +00:00
Vincent Sanders
52ad2c1e25
initial favicon support
...
svn path=/trunk/netsurf/; revision=12975
2011-10-06 23:31:55 +00:00
Michael Drake
9493cec576
Optimise hotlist loading by using nsurl instead of url_normalise. Also convert tree url post-edit normalisation to use nsurl. The treeviews still store urls as strings for now.
...
svn path=/trunk/netsurf/; revision=12970
2011-10-06 12:31:22 +00:00
John Mark Bell
d5bb9d98e7
Build resource: map at start time
...
Remove stylesheet url globals -- the core will always use resource:{default,quirks,adblock}.css as appropriate
svn path=/trunk/netsurf/; revision=12949
2011-10-05 08:32:52 +00:00
Michael Drake
898b01e721
More conversion to nsurl. (box->href, object params, imagemaps, (i)frames)
...
svn path=/trunk/netsurf/; revision=12933
2011-10-03 20:28:29 +00:00
Michael Drake
36eff6da2b
Port more internals to nsurl. Front ends may need updating.
...
svn path=/trunk/netsurf/; revision=12926
2011-10-03 15:56:47 +00:00
Michael Drake
57547f7b1e
Make llcache_handle_get_url return a nsurl.
...
svn path=/trunk/netsurf/; revision=12905
2011-09-28 14:21:35 +00:00
Michael Drake
861f88aa43
Port llcache to nsurl.
...
svn path=/trunk/netsurf/; revision=12904
2011-09-28 11:26:30 +00:00
John Mark Bell
e7dffc15b1
Fix bug #3413611 : results page should be added to history
...
svn path=/trunk/netsurf/; revision=12878
2011-09-26 08:46:00 +00:00
Michael Drake
c98e37be1f
Better caret positioning in scrolled frames.
...
svn path=/trunk/netsurf/; revision=12851
2011-09-21 21:11:16 +00:00
John Mark Bell
f27d5a3e15
Remove gui_multitask
...
svn path=/trunk/netsurf/; revision=12828
2011-09-21 00:25:09 +00:00
John Mark Bell
339bed7272
Virtualise content handler finalisation calls. Remove pointless implementations.
...
svn path=/trunk/netsurf/; revision=12797
2011-09-15 22:47:50 +00:00
Michael Drake
50508a6e75
Ensure root bw and gui window before asking front end to remove caret.
...
svn path=/trunk/netsurf/; revision=12795
2011-09-15 15:06:20 +00:00
Chris Young
b3bf57ed79
Stop Esc/Ctrl-[ crashing when browser_window selection is NULL
...
svn path=/trunk/netsurf/; revision=12786
2011-09-11 09:39:44 +00:00
Vincent Sanders
2d33a8f85a
Make high level cache, low level cache and image cache all be initialised from passed parameters
...
Calculate all cache sizes from single memory cache size option and sanity check
have a single global struct to hold all parameters instead of several individual variables
svn path=/trunk/netsurf/; revision=12784
2011-09-10 00:55:39 +00:00
Vincent Sanders
dec633ca8e
make high level cache take a parameter structure
...
make hlcache have a single global container
svn path=/trunk/netsurf/; revision=12779
2011-09-08 12:04:57 +00:00
Michael Drake
7bf7d2d745
Improve resizing frames.
...
svn path=/trunk/netsurf/; revision=12771
2011-09-07 12:27:37 +00:00
Vincent Sanders
69bee6fb71
move bitmap cache initialisation up a level
...
improve stats reporting
svn path=/trunk/netsurf/; revision=12770
2011-09-07 09:15:33 +00:00
Michael Drake
a8a28345dd
Handle scrolled (i)frames.
...
svn path=/trunk/netsurf/; revision=12757
2011-09-06 18:39:28 +00:00
Michael Drake
57da2b3af1
Expose contextual content request API to front ends, via browser window layer.
...
svn path=/trunk/netsurf/; revision=12755
2011-09-06 18:11:10 +00:00
Michael Drake
f9478a4349
Remove old frame dimensions from browser_window struct.
...
svn path=/trunk/netsurf/; revision=12750
2011-09-06 10:44:47 +00:00
Michael Drake
33ebea90d5
Finish moving frame resizing over to new frame dimensions.
...
svn path=/trunk/netsurf/; revision=12749
2011-09-06 10:44:00 +00:00
Michael Drake
cd45ca469e
Move to new bw dimensions.
...
svn path=/trunk/netsurf/; revision=12747
2011-09-06 10:24:28 +00:00
Michael Drake
dca97bc8d4
Remove unused browser_window_owner function.
...
svn path=/trunk/netsurf/; revision=12739
2011-09-05 15:41:35 +00:00
Michael Drake
0401d52f51
Remove gui_window_frame_resize_start() functions.
...
svn path=/trunk/netsurf/; revision=12738
2011-09-05 15:35:34 +00:00
Michael Drake
34fe2531f2
Remove gui_window_get_browser_window from core. Remove unused implementations from front ends. Rename the GTK front end implementation to nsgtk_get_browser_window and change the GTK front end to use that.
...
svn path=/trunk/netsurf/; revision=12737
2011-09-05 13:28:17 +00:00
Michael Drake
5be6bd452d
Remove gui_window_position_frame() definition from core and remove all implementations from front ends.
...
svn path=/trunk/netsurf/; revision=12711
2011-09-04 18:20:24 +00:00
Michael Drake
19317c76ba
Implement frames in the core.
...
svn path=/trunk/netsurf/; revision=12709
2011-09-04 17:24:45 +00:00
John Mark Bell
6807fa854d
Sniff content types where appropriate.
...
We never sniff for CSS, nor for non-page artefacts (e.g. treeview icons)
svn path=/trunk/netsurf/; revision=12707
2011-09-04 06:28:09 +00:00
Michael Drake
f878fefeed
Optimise out scrollbar action induced redraws with no effect.
...
svn path=/trunk/netsurf/; revision=12688
2011-08-31 13:04:50 +00:00
Michael Drake
525bf15f73
More robustification.
...
svn path=/trunk/netsurf/; revision=12678
2011-08-30 18:13:23 +00:00
Michael Drake
401072e305
Make more robust. E.g. zero length scrollbars.
...
svn path=/trunk/netsurf/; revision=12672
2011-08-27 09:13:23 +00:00
John Mark Bell
5f311d08ef
Fix bug #3398114 : only unref filename_value if we successfully obtained it
...
svn path=/trunk/netsurf/; revision=12670
2011-08-25 19:21:09 +00:00
Michael Drake
0794f8c4dd
Fix step size for clicks on scrollbar arrow icons.
...
svn path=/trunk/netsurf/; revision=12669
2011-08-25 18:29:21 +00:00
Michael Drake
bbf77c54b9
Fix scrollbar click coords.
...
svn path=/trunk/netsurf/; revision=12668
2011-08-25 13:34:48 +00:00
Michael Drake
bbc06d6449
When scrollbar extents are updated, scale current offset appropriately.
...
svn path=/trunk/netsurf/; revision=12667
2011-08-25 09:21:41 +00:00
Michael Drake
65398660e5
When passing drag on to it's bw, we don't need to do anything if the drag is for the current bw.
...
svn path=/trunk/netsurf/; revision=12666
2011-08-24 21:53:58 +00:00
Michael Drake
ecff5eaf83
During drags, prevent mouse interaction with other widgets.
...
svn path=/trunk/netsurf/; revision=12665
2011-08-24 20:44:47 +00:00
Michael Drake
aa0b7ed5d7
Set up page drag start in iframes.
...
svn path=/trunk/netsurf/; revision=12664
2011-08-24 19:26:45 +00:00
Michael Drake
a47dff15dd
Improve browser window drag tracking, so that drags in internal browser windows (iframes) carry on if pointer goes outside the bw that owns the drag.
...
svn path=/trunk/netsurf/; revision=12663
2011-08-24 18:22:22 +00:00
Michael Drake
24110be310
Fix treeview deselection redraw issue.
...
svn path=/trunk/netsurf/; revision=12662
2011-08-24 15:03:02 +00:00
Michael Drake
d579559f4d
Remove current_redraw_browser global.
...
svn path=/trunk/netsurf/; revision=12661
2011-08-24 13:48:12 +00:00
Michael Drake
8103377519
Don't need to set current_redraw_browser any more.
...
svn path=/trunk/netsurf/; revision=12660
2011-08-24 13:45:46 +00:00
Michael Drake
63c07ee28d
Core part of search improvement:
...
+ Split up browser window and content related elements of html & text search.
+ Associate search contexts with contents, rather than browser windows.
+ Remove highlighting of search terms dependency on current_redraw_browser.
+ Fixes issues with search contexts being applied to the wrong content.
svn path=/trunk/netsurf/; revision=12646
2011-08-24 12:29:30 +00:00
Chris Young
4364b280e7
Revert accidental change
...
svn path=/trunk/netsurf/; revision=12631
2011-07-28 19:29:43 +00:00
Chris Young
0979992f83
Fix memory leak
...
svn path=/trunk/netsurf/; revision=12630
2011-07-28 19:29:03 +00:00
John Mark Bell
63cc03a5dc
Fix GCC 4.6 warnings in core
...
svn path=/trunk/netsurf/; revision=12629
2011-07-26 21:30:38 +00:00
Michael Drake
16b92d1613
Selection is now subordinate to html and text content types, and disassociated from browser windows. Note: search currently uses hlcache_handle_get_content() to go from bw to h to get at c for search highlighting via selection.
...
svn path=/trunk/netsurf/; revision=12626
2011-07-26 13:53:42 +00:00
Michael Drake
d97e99b02b
Remove unused hlcache_handle from search context.
...
svn path=/trunk/netsurf/; revision=12625
2011-07-26 10:52:26 +00:00
John Mark Bell
cefcce0197
Shared URL nodes in the treeview actually want to be readonly. They certainly have no business not copying transient data.
...
svn path=/trunk/netsurf/; revision=12623
2011-07-24 11:40:08 +00:00
John Mark Bell
b0aeeb1e78
Fix double frees on download failure
...
svn path=/trunk/netsurf/; revision=12621
2011-07-23 18:10:19 +00:00
John Mark Bell
35cf89594d
Abort loading content when closing window
...
svn path=/trunk/netsurf/; revision=12620
2011-07-23 17:53:57 +00:00
Michael Drake
430b63e242
Remove assumption of gui window from search.
...
svn path=/trunk/netsurf/; revision=12603
2011-07-14 10:27:24 +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
637f726a13
Scale caret height in core
...
svn path=/trunk/netsurf/; revision=12596
2011-07-11 10:33:43 +00:00
John Mark Bell
b34502af82
Refactor http utilities
...
svn path=/trunk/netsurf/; revision=12595
2011-07-08 08:38:17 +00:00
Michael Drake
bc91b72c56
Clean up text input code. Now desktop/textinput.{c|h} is concerend with browser windows only. HTML content specific stuff moved to render/textinput.{c|h} and disassociated from browser windows.
...
svn path=/trunk/netsurf/; revision=12587
2011-07-07 17:50:04 +00:00
Michael Drake
e2681caf9c
Reduce forward declaration of functions.
...
svn path=/trunk/netsurf/; revision=12586
2011-07-07 11:50:45 +00:00
Michael Drake
e4a0bebd27
Pass struct rect to browser_window_update_box(), rather than union content_msg_data.
...
svn path=/trunk/netsurf/; revision=12584
2011-07-06 15:34:49 +00:00
Michael Drake
727aa61bb6
Pass struct rect to gui_window_update_box(), rather than union content_msg_data.
...
svn path=/trunk/netsurf/; revision=12574
2011-07-06 12:39:26 +00:00
Michael Drake
865af5f235
Fix update_box coords when issued from scaled iframe.
...
svn path=/trunk/netsurf/; revision=12573
2011-07-06 11:58:09 +00:00
Michael Drake
5412ae7251
Use prescribed method for discovering browser window position.
...
svn path=/trunk/netsurf/; revision=12572
2011-07-06 10:30:58 +00:00
Michael Drake
9f2ea3be4c
Iframe scrollbars.
...
svn path=/trunk/netsurf/; revision=12571
2011-07-05 20:13:28 +00:00
Michael Drake
1f9b970f57
Set focus browser_window in place_caret.
...
svn path=/trunk/netsurf/; revision=12570
2011-07-04 12:15:21 +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
Michael Drake
3f485e083d
Minor selection changes.
...
svn path=/trunk/netsurf/; revision=12555
2011-07-02 16:12:00 +00:00
Michael Drake
dde300ea7d
Set selection browser window as before, for now.
...
svn path=/trunk/netsurf/; revision=12553
2011-07-02 12:18:04 +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
f9566b6405
Set/unset selection context's browser window on content_open/content_close.
...
svn path=/trunk/netsurf/; revision=12551
2011-07-01 11:16:43 +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
416a6452d5
Function to get root browser window.
...
svn path=/trunk/netsurf/; revision=12531
2011-06-28 21:09:57 +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
25e7c86fb7
Make search_term_highlighted a core function.
...
svn path=/trunk/netsurf/; revision=12524
2011-06-28 12:30:56 +00:00
Michael Drake
5c9155e606
Core form select widget now associated with HTML contents. Don't use current_redraw_browser for select widget redraw. Fixes core select widget in iframes.
...
svn path=/trunk/netsurf/; revision=12522
2011-06-28 11:15:39 +00:00
Michael Drake
c9fe1b604e
HTML contents manage box scrollbars, rather than browser_windows.
...
svn path=/trunk/netsurf/; revision=12519
2011-06-27 22:21:15 +00:00
Michael Drake
a06bde0232
Remove obsolete comment.
...
svn path=/trunk/netsurf/; revision=12517
2011-06-27 18:35:39 +00:00
Michael Drake
625c685f41
browser_window_mouse_drag_end is private now, and can be removed once contents handle all their own interaction.
...
svn path=/trunk/netsurf/; revision=12516
2011-06-27 18:19:47 +00:00
Michael Drake
23eea5de9f
Fix bw->drag_type to be aware of remaining drag types.
...
svn path=/trunk/netsurf/; revision=12514
2011-06-27 17:29:49 +00:00
Michael Drake
c587cfe9de
Iframes inherit parent browser window's scale.
...
svn path=/trunk/netsurf/; revision=12505
2011-06-24 13:05:57 +00:00
Michael Drake
dea7683985
Remove gui_window_set_scale().
...
svn path=/trunk/netsurf/; revision=12502
2011-06-24 12:01:24 +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
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
Michael Drake
dd653479b2
Ensure top level browser window has focus by default.
...
svn path=/trunk/netsurf/; revision=12495
2011-06-22 13:52:56 +00:00
Michael Drake
3c74989841
Purge more favicon remnants.
...
svn path=/trunk/netsurf/; revision=12494
2011-06-22 10:27:20 +00:00
Michael Drake
db45778fb1
Give the selection context the current bw when it's created.
...
svn path=/trunk/netsurf/; revision=12485
2011-06-16 09:07:13 +00:00
Michael Drake
543a08ca22
Delete redundant function declaration.
...
svn path=/trunk/netsurf/; revision=12480
2011-06-15 13:46:41 +00:00
Michael Drake
142cee6f55
Fix paste in form inputs in iframes.
...
svn path=/trunk/netsurf/; revision=12479
2011-06-15 12:30:13 +00:00
Michael Drake
5192bf85fa
Remove logging.
...
svn path=/trunk/netsurf/; revision=12478
2011-06-15 12:21:01 +00:00
Michael Drake
f368c3c849
Improve scale with iframes.
...
svn path=/trunk/netsurf/; revision=12477
2011-06-15 11:46:07 +00:00
Michael Drake
319a90bff7
Only call gui_window_new_content for browser windows with gui windows.
...
svn path=/trunk/netsurf/; revision=12475
2011-06-14 20:48:58 +00:00
Michael Drake
53f4da3420
First pass at core iframes. Currently lacking scrollbars.
...
svn path=/trunk/netsurf/; revision=12474
2011-06-14 20:00:18 +00:00
Chris Young
861137d3b2
Disable extra logging. Here treeview init is down to ~5 seconds from ~20.
...
Still more room for improvement, as adding nodes appears to recalculate the widths of
all the parent nodes even though (the text and icon of) those haven't changed.
svn path=/trunk/netsurf/; revision=12463
2011-06-04 21:33:33 +00:00
Chris Young
89937f8b71
Don't expand cookies tree by default
...
svn path=/trunk/netsurf/; revision=12462
2011-06-04 21:26:31 +00:00
Chris Young
522ddf0416
Rudimentary text width caching to speed up many duplicate "Today", "Yesterday" calcs
...
svn path=/trunk/netsurf/; revision=12461
2011-06-04 21:10:39 +00:00
Chris Young
48a0663999
Remove at least one instance of unnecessary recalculation
...
svn path=/trunk/netsurf/; revision=12460
2011-06-04 20:46:08 +00:00
Chris Young
24d0a07f8f
Extra logging to track the source of node size calculations
...
A couple of minor changes to prevent unnecessary recalculation
svn path=/trunk/netsurf/; revision=12459
2011-06-04 20:22:24 +00:00
Michael Drake
a79ef8cffb
Remove redundant code.
...
svn path=/trunk/netsurf/; revision=12458
2011-06-04 14:38:50 +00:00
Michael Drake
4db9dbe744
Purge unused variable.
...
svn path=/trunk/netsurf/; revision=12425
2011-05-17 09:05:49 +00:00
Vincent Sanders
c7e943c7d2
check for dereference of teh right value
...
svn path=/trunk/netsurf/; revision=12424
2011-05-17 07:28:15 +00:00
John Mark Bell
21f01af35a
Avoid dereferencing NULL
...
svn path=/trunk/netsurf/; revision=12421
2011-05-16 22:09:26 +00:00
John Mark Bell
b92ca9cd30
Clean up after content factory
...
svn path=/trunk/netsurf/; revision=12415
2011-05-16 21:16:44 +00:00
John Mark Bell
6dfcd35580
Fix url node icons
...
svn path=/trunk/netsurf/; revision=12383
2011-05-11 19:29:48 +00:00
Michael Drake
df081a0888
Increase pointer drag range. Setting the clamps correctly seems to cause us not to get the movement event when we hit the clamp (at least on RISC OS).
...
svn path=/trunk/netsurf/; revision=12380
2011-05-11 10:36:15 +00:00
Michael Drake
d41dcfa780
Fix content drags within scrollable areas. Various tidyups.
...
svn path=/trunk/netsurf/; revision=12378
2011-05-11 08:34:33 +00:00
Michael Drake
4f8995ae8d
Rename scroll offset in scrollbar message data, although nothing seems to use that callback message.
...
svn path=/trunk/netsurf/; revision=12374
2011-05-10 17:39:23 +00:00
Michael Drake
f78252fc75
Move scrollbar widget API documentation to header.
...
svn path=/trunk/netsurf/; revision=12373
2011-05-10 17:30:46 +00:00
Michael Drake
dc9e685cde
Scrollbar widget changes: Update functon parameters to have names that aren't wrong. Remove confusion and wrongness from API documentation. General source tidy.
...
svn path=/trunk/netsurf/; revision=12372
2011-05-10 17:17:03 +00:00
Michael Drake
4d8201b8ca
Continue improving comments. Fix bugs in scrollbar_set_extents. Rename things so their name matches what they are.
...
svn path=/trunk/netsurf/; revision=12368
2011-05-10 14:29:10 +00:00
Michael Drake
ac447fc293
s/scroll/scrollbar/ and improve scrollbar widget comments.
...
svn path=/trunk/netsurf/; revision=12363
2011-05-09 22:49:17 +00:00
Michael Drake
3e62014f2f
Pedantic whitespace changes.
...
svn path=/trunk/netsurf/; revision=12352
2011-05-09 18:22:10 +00:00
Michael Drake
b1e09e9b99
Remove forward declaration.
...
svn path=/trunk/netsurf/; revision=12351
2011-05-09 18:15:51 +00:00
Vincent Sanders
8be1e85e91
consolidate content redraw
...
more cleanups ready for image content refactor
svn path=/trunk/netsurf/; revision=12317
2011-05-08 19:54:35 +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
John Mark Bell
ff60007458
Fix build with NDEBUG defined
...
svn path=/trunk/netsurf/; revision=12154
2011-04-03 22:23:14 +00:00
Vincent Sanders
74ffc40e92
move logging initialisation
...
svn path=/trunk/netsurf/; revision=12152
2011-04-02 13:05:55 +00:00
John Mark Bell
c3b7669ad4
Fix bug #3253090 : don't schedule updates of the cookie tree
...
svn path=/trunk/netsurf/; revision=12141
2011-03-28 21:33:16 +00:00
Vincent Sanders
fff2520409
commandline option setting
...
svn path=/trunk/netsurf/; revision=12106
2011-03-18 21:58:29 +00:00
Vincent Sanders
d90ca6181b
Improve options output
...
improve options:config styling
svn path=/trunk/netsurf/; revision=12084
2011-03-17 09:21:02 +00:00
Chris Young
5e9bdb16c6
Temporary hack to stop crashing in Amiga frontend. Roll on frames re-implementation!
...
svn path=/trunk/netsurf/; revision=12079
2011-03-16 20:11:10 +00:00
Vincent Sanders
1da7b161f8
Stop gtk printing from exploding if its unable to initialise the job
...
add interface to clone a high level cache handle
make generic printing core call new hlcache interface
svn path=/trunk/netsurf/; revision=12068
2011-03-15 22:02:06 +00:00
Michael Drake
88cf21939c
Like HTML, text-plain contents have no intrinsic dimensions.
...
svn path=/trunk/netsurf/; revision=12057
2011-03-15 15:08:10 +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
e083b503a0
Ensure we stop the hlcache schedule before we quit the gui
...
svn path=/trunk/netsurf/; revision=12036
2011-03-13 20:20:31 +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
Daniel Silverstone
1ba5d85c1a
Make schedule/schedule_remove use a typedef for their callback argument
...
svn path=/trunk/netsurf/; revision=11985
2011-03-12 19:23:40 +00:00
John Mark Bell
56413fd61c
Lose nasty code
...
svn path=/trunk/netsurf/; revision=11984
2011-03-12 19:14:23 +00:00
John Mark Bell
b175b0ddf8
Fix stupid
...
svn path=/trunk/netsurf/; revision=11976
2011-03-12 17:47:46 +00:00
Vincent Sanders
74f108ee4d
Saturated maths in css fixed point
...
svn path=/trunk/netsurf/; revision=11975
2011-03-12 17:46:11 +00:00
Daniel Silverstone
d72f9d2862
Ensure we don't free an unallocated handle
...
svn path=/trunk/netsurf/; revision=11973
2011-03-12 17:26:46 +00:00
Daniel Silverstone
7e85d15cb6
Add a deaf monkey frontend. TODO: Make it listen
...
svn path=/trunk/netsurf/; revision=11968
2011-03-12 15:08:07 +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
b355c48f97
Make thumbnail_get_redraw_scale() static.
...
svn path=/trunk/netsurf/; revision=11949
2011-03-09 21:10:30 +00:00
John Mark Bell
de688b59e1
Fix text selection
...
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +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
Michael Drake
3e7ea29e4b
Move clone to box flags.
...
svn path=/trunk/netsurf/; revision=11890
2011-03-02 19:30:08 +00:00
Michael Drake
e3f00b8546
Cache space widths.
...
svn path=/trunk/netsurf/; revision=11877
2011-03-01 20:00:41 +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
Sven Weidauer
4b10485de1
Publishing 'history_go' function and creating API to enumerate all history items reachable by the forward or back buttons.
...
svn path=/trunk/netsurf/; revision=11856
2011-02-28 15:24:30 +00:00
Sven Weidauer
f470261141
Added API to enumerate entries in history tree.
...
svn path=/trunk/netsurf/; revision=11854
2011-02-28 15:24:02 +00:00
John Mark Bell
ceadbafcbc
Clean up blank_import on exit
...
svn path=/trunk/netsurf/; revision=11818
2011-02-26 01:19:11 +00:00
John Mark Bell
6878eba295
Consider filename in Content-Disposition header when downloading, or generate reasonably sane default if there isn't one.
...
svn path=/trunk/netsurf/; revision=11767
2011-02-23 00:54:29 +00:00
Michael Drake
4a80554406
Zero-pad colours in plain text output.
...
svn path=/trunk/netsurf/; revision=11757
2011-02-22 15:53:12 +00:00
John Mark Bell
593b35997b
Slightly more useful behaviour if we can't handle an URL when downloading
...
svn path=/trunk/netsurf/; revision=11750
2011-02-21 21:47:55 +00:00
John Mark Bell
63f902e995
Fix bug #3188385 : ensure that options_snoptionf terminates its output
...
svn path=/trunk/netsurf/; revision=11749
2011-02-21 21:25:47 +00:00
John Mark Bell
66247f5b37
Fix bug #3188376 : there may be no window for a download if there were no headers or data.
...
Additionally, ensure we clean up on error.
svn path=/trunk/netsurf/; revision=11748
2011-02-21 20:56:58 +00:00
Michael Drake
cd40c260b9
Remove knockout from html_redraw, and use it in browser_window_redraw and thumbnail_redraw.
...
svn path=/trunk/netsurf/; revision=11746
2011-02-21 14:48:55 +00:00
John Mark Bell
c70ed3d5ad
Ensure returned length is initialised
...
svn path=/trunk/netsurf/; revision=11744
2011-02-20 23:40:42 +00:00
Michael Drake
c16b6ba8fa
Fix comment typo and update formatting.
...
svn path=/trunk/netsurf/; revision=11743
2011-02-20 23:22:31 +00:00
Michael Drake
c422f860e5
Fix wrap.
...
svn path=/trunk/netsurf/; revision=11742
2011-02-20 23:19:18 +00:00
Michael Drake
f54fc080c2
Add module namespace to options_snoptionf()
...
svn path=/trunk/netsurf/; revision=11739
2011-02-20 22:38:43 +00:00
Michael Drake
c95460da05
Fix colour component combination for plain text output too.
...
svn path=/trunk/netsurf/; revision=11738
2011-02-20 22:30:53 +00:00
Michael Drake
f8c5eeb70a
Fix colour component combination. Render text as valid #xxxxxx too.
...
svn path=/trunk/netsurf/; revision=11737
2011-02-20 22:18:35 +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
bd48a052a3
Add core thumbnail redraw functions.
...
svn path=/trunk/netsurf/; revision=11715
2011-02-19 22:15:43 +00:00
Michael Drake
4cc4f6dffc
Update comments.
...
svn path=/trunk/netsurf/; revision=11714
2011-02-19 20:05:16 +00:00
John Mark Bell
0707969f65
Neuter utterly broken search web from url bar hackery
...
svn path=/trunk/netsurf/; revision=11690
2011-02-15 22:58:56 +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
Michael Drake
3ce0613193
Constify.
...
svn path=/trunk/netsurf/; revision=11682
2011-02-14 19:38:59 +00:00
Michael Drake
a089ad0e1d
Pass clip rect to textarea redraw as struct rect.
...
svn path=/trunk/netsurf/; revision=11681
2011-02-14 19:26:45 +00:00
John Mark Bell
f42ed976e5
Constify
...
svn path=/trunk/netsurf/; revision=11680
2011-02-14 19:17:08 +00:00
Michael Drake
c05333fa62
Pass clip rect to scroll_redraw as struct. Simplify test to see if scrollbar is within clip rect.
...
svn path=/trunk/netsurf/; revision=11679
2011-02-14 17:57: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
62bc7706d9
Update browser_window_redraw comment.
...
svn path=/trunk/netsurf/; revision=11668
2011-02-13 17:06:40 +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
c753ed2236
White background fill to extents for non-HTML contents.
...
svn path=/trunk/netsurf/; revision=11665
2011-02-13 15:55:53 +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
Michael Drake
27b6096dcd
Move stuct rect out of box.h and tree.c.
...
svn path=/trunk/netsurf/; revision=11647
2011-02-11 19:35:16 +00:00
Vincent Sanders
9a183018ea
improve browser_window_redraw width and height handling
...
svn path=/trunk/netsurf/; revision=11642
2011-02-11 00:14:22 +00:00
Vincent Sanders
2a8e8a5cf1
add browser_window_redraw() method to make content_redraw calls from frontends common RISC OS, atari, amiga and beos have not been updated
...
svn path=/trunk/netsurf/; revision=11640
2011-02-10 22:35:41 +00:00
John Mark Bell
ad69ae0923
Avoid unsafe cast of int* to size_t*
...
svn path=/trunk/netsurf/; revision=11597
2011-02-01 21:57:25 +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
Sven Weidauer
840fb0b9aa
History colours as constants r=jmb,vince
...
svn path=/trunk/netsurf/; revision=11478
2011-01-24 13:32:35 +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
Daniel Silverstone
3e7bf7cfb5
Ensure we correctly release all icon resources associated with trees, SSL certs, search providers, etc.
...
svn path=/trunk/netsurf/; revision=11421
2011-01-20 13:51:41 +00:00
John Mark Bell
76f2b2af98
Remove erroneous commentary, and move associated code to a more sensible place
...
svn path=/trunk/netsurf/; revision=11346
2011-01-17 08:35:20 +00:00
John Mark Bell
1034f16f0b
Fix bug #3159040 : make destruction order of browser_window objects sane
...
svn path=/trunk/netsurf/; revision=11345
2011-01-17 08:28:22 +00:00
John Mark Bell
3368407d9e
Document font APIs -- specifically, string lengths are specified in bytes, not characters
...
svn path=/trunk/netsurf/; revision=11261
2011-01-09 00:02:47 +00:00
Daniel Silverstone
aec29351a6
Ensure we poke the favicon as soon as an HTML content reaches the browser window. This is the earliest we can safely do this, otherwise STOP etc. can cause problems.
...
svn path=/trunk/netsurf/; revision=11248
2011-01-07 14:23:14 +00:00
Daniel Silverstone
d00c5b0cd5
Add CONTENT_MSG_FAVICON_REFRESH and emit and handle it appropriately. Animated favicons now work
...
svn path=/trunk/netsurf/; revision=11242
2011-01-07 13:10:20 +00:00
John Mark Bell
124e4cd788
Atari frontend (credit: Ole Loots)
...
svn path=/trunk/netsurf/; revision=11218
2011-01-05 21:02:22 +00:00
Michael Drake
08ed4c207f
Update to new libcss API for simultanious selection for base element and its pseudo elements.
...
svn path=/trunk/netsurf/; revision=11215
2011-01-05 19:36:05 +00:00
John Mark Bell
43ce8206b7
Whee. Another runtime that doesn't support stdout = stderr.
...
We really should stop doing this.
svn path=/trunk/netsurf/; revision=11148
2010-12-29 21:25:47 +00:00
Michael Drake
c154e7242d
Fix empty tree rendering.
...
svn path=/trunk/netsurf/; revision=11135
2010-12-29 16:39:23 +00:00
Michael Drake
873fa857a7
Use colour options for treeview rendering.
...
svn path=/trunk/netsurf/; revision=11118
2010-12-21 17:01:30 +00:00
Michael Drake
710f0ce844
Add COLOUR option type. Add some colour options for rendering core interfaces.
...
svn path=/trunk/netsurf/; revision=11117
2010-12-21 17:00:44 +00:00
Michael Drake
1aad3b71c0
Enable knockout for tree redraw.
...
svn path=/trunk/netsurf/; revision=11099
2010-12-19 16:14:06 +00:00
Steve Fryatt
0bd39eed21
Allow tree drag status to reflect drags within textareas.
...
svn path=/trunk/netsurf/; revision=11097
2010-12-19 12:27:33 +00:00
Michael Drake
75c82c33e6
Draw tree background when there are no nodes.
...
svn path=/trunk/netsurf/; revision=11092
2010-12-18 16:35:52 +00:00
Michael Drake
d5b18c69fd
Take some calculations out of line redraw loop and fix rounding error.
...
svn path=/trunk/netsurf/; revision=11089
2010-12-17 14:11:06 +00:00
Michael Drake
74ecfe0036
Simplify text plot position calc.
...
svn path=/trunk/netsurf/; revision=11088
2010-12-17 14:07:33 +00:00
Michael Drake
a01f9508b0
Base treeview line height on text height, unless that's too small for the icon to fit.
...
svn path=/trunk/netsurf/; revision=11087
2010-12-17 13:32:43 +00:00
Michael Drake
bb4bda0b3a
When a hotlist entry edit ends by cancelling, rather than confirming the change, end the whole edit and don't pass onto next element for edit.
...
svn path=/trunk/netsurf/; revision=11085
2010-12-17 11:10:22 +00:00
John Mark Bell
c96f682d9d
Fix bug #3138151 : shut down caches before killing off fetch layer
...
svn path=/trunk/netsurf/; revision=11069
2010-12-16 00:03:57 +00:00
Michael Drake
064c8e50d2
Improve double click handling.
...
svn path=/trunk/netsurf/; revision=11068
2010-12-15 23:55:39 +00:00
Michael Drake
cbe24279f8
Don't give up on a mouse action because BROWSER_MOUSE_PRESS_{1|2} is set. The RISC OS front end sets them for action-on-button-press (rather than release) behaviour.
...
svn path=/trunk/netsurf/; revision=11065
2010-12-15 21:58:01 +00:00
Michael Drake
0e56e9c21b
Possible fix for issue reported by Chris Young.
...
svn path=/trunk/netsurf/; revision=11062
2010-12-15 19:48:59 +00:00
Michael Drake
20aedef6d8
Debug function for dumping browser_mouse_state.
...
svn path=/trunk/netsurf/; revision=11061
2010-12-15 18:05:25 +00:00
Michael Drake
4b64e92194
Only draw caret if there is no selection.
...
svn path=/trunk/netsurf/; revision=11060
2010-12-15 15:10:15 +00:00
Michael Drake
b037763e6e
Position text and caret correctly in single line text area. Make caret red so it stands out for now. It should be an OS caret anyway.
...
svn path=/trunk/netsurf/; revision=11059
2010-12-15 14:15:43 +00:00
Michael Drake
bf4968f334
Much faster redraw of treeviews.
...
svn path=/trunk/netsurf/; revision=11058
2010-12-15 10:38:41 +00:00
Michael Drake
f474bc06bf
Further tidy up of node redraw.
...
svn path=/trunk/netsurf/; revision=11057
2010-12-15 01:05:10 +00:00
Michael Drake
771b0e3b8b
Pass clip rectangle around tree redraw. Update clipping area with respect to what's being plotted. Simplify tree redraw and add more comments.
...
svn path=/trunk/netsurf/; revision=11056
2010-12-15 00:32:37 +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
2e249ac9e6
Set text position with respect to TREE_LINE_HEIGHT.
...
svn path=/trunk/netsurf/; revision=11043
2010-12-12 22:37:51 +00:00
Michael Drake
f777a58ec5
Set expansion toggle position with respect to TREE_LINE_HEIGHT.
...
svn path=/trunk/netsurf/; revision=11042
2010-12-12 21:24:35 +00:00
Michael Drake
d1d3a65b06
Set icon position with respect to TREE_LINE_HEIGHT.
...
svn path=/trunk/netsurf/; revision=11041
2010-12-12 21:13:55 +00:00
Michael Drake
eabf7e8afd
Remove redundant line plots, from tree_draw_node() and add comments.
...
svn path=/trunk/netsurf/; revision=11040
2010-12-12 20:39:46 +00:00
Michael Drake
cff0709528
More "NetSurfy" colours. Note treeview restyling is still in progress; this will change.
...
svn path=/trunk/netsurf/; revision=11039
2010-12-12 16:48:26 +00:00
Michael Drake
55d9191bb5
Create some tree plot styles and use them.
...
svn path=/trunk/netsurf/; revision=11038
2010-12-12 16:45:41 +00:00
Michael Drake
86b8057c60
Remove pointless rectangle fill under text.
...
svn path=/trunk/netsurf/; revision=11037
2010-12-12 16:32:39 +00:00
Michael Drake
18b2824d6c
Rename usages of "furniture" which applied to expansion toggle boxes to "expansion_toggle". Now "furniture" refers exclusively to all tree furniture. Start commenting things.
...
svn path=/trunk/netsurf/; revision=11036
2010-12-12 14:30:33 +00:00
Michael Drake
79b87832a4
Rename tree_draw_node_expansion() to tree_draw_node_expansion_toggle(). Pedantic wrap/indentation changes in tree_draw_node.
...
svn path=/trunk/netsurf/; revision=11035
2010-12-12 13:55:25 +00:00
Michael Drake
a7240fd6a9
Fix TREE_ICON_SIZE to match size of actual icons. Fix clip rectangle for icon redraw.
...
svn path=/trunk/netsurf/; revision=11034
2010-12-12 13:01:27 +00:00
Michael Drake
4c5a0d845c
Use TREE_LINE_HEIGHT define instead of magic 20 everywhere.
...
svn path=/trunk/netsurf/; revision=11033
2010-12-12 12:45:12 +00:00
Michael Drake
ff9bd6540c
Clearer font styles.
...
svn path=/trunk/netsurf/; revision=11032
2010-12-12 12:14:03 +00:00
Rob Kendrick
35daa32e80
Change styles used for plotting local history to make it more obvious what the current page is, along with other minor improvements.
...
svn path=/trunk/netsurf/; revision=11008
2010-12-05 17:03:37 +00:00
Michael Drake
bd39b8f0d7
Retain edits to hotlist entry titles.
...
svn path=/trunk/netsurf/; revision=11006
2010-12-05 16:09:52 +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
8e07f9388c
More useful comment about what bw->scroll is for.
...
svn path=/trunk/netsurf/; revision=10936
2010-11-03 16:07:30 +00:00
Chris Young
835d033e7b
Amiga icon loader. Treeviews will now use the user's icons for content types.
...
svn path=/trunk/netsurf/; revision=10925
2010-10-30 14:23:38 +00:00
Chris Young
755e45028d
If a drag is in progress that the tree can't handle, it is a TREE_UNKNOWN_DRAG not a
...
TREE_NO_DRAG, as the platform code might be able to deal with it.
svn path=/trunk/netsurf/; revision=10920
2010-10-30 10:43:14 +00:00
Chris Young
f2c834ac51
Only set TREE_MOVE_DRAG is the tree is TREE_MOVABLE
...
svn path=/trunk/netsurf/; revision=10919
2010-10-30 09:23:03 +00:00
Chris Young
25e9b79f5c
Allow getting the tree's drag property. This ensures we can see whether the current
...
drag is something we might need to display an icon for.
svn path=/trunk/netsurf/; revision=10917
2010-10-29 17:40:36 +00:00
John Mark Bell
f309236fa8
Fix bug 3095552: don't escape URLs after editing. (credit: Martin Bazley)
...
svn path=/trunk/netsurf/; revision=10911
2010-10-27 20:15:01 +00:00
John Mark Bell
43e5a16b34
Squash warning
...
svn path=/trunk/netsurf/; revision=10903
2010-10-24 16:39:16 +00:00
Chris Young
c4ebfa24d8
Don't expand the oldest global history entries by default.
...
svn path=/trunk/netsurf/; revision=10902
2010-10-24 16:24:37 +00:00
Chris Young
c5b9e45960
Make CR also stop and save tree edits
...
svn path=/trunk/netsurf/; revision=10892
2010-10-17 13:00:51 +00:00
Chris Young
c052d534e7
Add some missing CONTENT_WEBPs. WebP images in HTML docs now display correctly.
...
svn path=/trunk/netsurf/; revision=10890
2010-10-16 15:26:28 +00:00
Vincent Sanders
1dbbbaf64a
ensure iframe stuff does not de-reference null pointers
...
svn path=/trunk/netsurf/; revision=10884
2010-10-14 00:59:39 +00:00
Steve Fryatt
73cf86e437
- Request correct redraw area when changing a node's size in tree_handle_node_changed().
...
- Update parameter documentation to match function definitions.
svn path=/trunk/netsurf/; revision=10876
2010-10-10 09:10:44 +00:00
Vincent Sanders
45b2ab2d88
If the cookies tree has not been initialised do not allow operations to be scheduled upon it.
...
svn path=/trunk/netsurf/; revision=10868
2010-10-06 21:46:06 +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
James Bursa
76a8c043a6
Simplify a browser_window_go_post() to browser_window_go().
...
svn path=/trunk/netsurf/; revision=10762
2010-09-12 18:27:59 +00:00
Vincent Sanders
bda534e12a
Clean up how GTK frontend finds resources
...
svn path=/trunk/netsurf/; revision=10668
2010-07-28 15:22:44 +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
Michael Drake
513793a060
Fix inventory file leafname.
...
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +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
John Mark Bell
5bebf2f2fc
Merge branches/vince/netsurf-fbtk-rework to trunk.
...
svn path=/trunk/netsurf/; revision=10605
2010-07-07 18:08:17 +00:00
Michael Drake
f6faa20a37
In switch statements add default branch for unknown enum values, with assert.
...
svn path=/trunk/netsurf/; revision=10603
2010-07-06 21:09:20 +00:00
Vincent Sanders
bd6c884020
Fix up confusing formatting
...
svn path=/trunk/netsurf/; revision=10586
2010-06-28 11:31:51 +00:00
Michael Drake
0642cdafc2
Fix mouse.h file description. Add iframe comment.
...
svn path=/trunk/netsurf/; revision=10571
2010-06-09 09:53:07 +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
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
John Mark Bell
2276afb9f6
Log any remaining interned strings (there should be none)
...
svn path=/trunk/netsurf/; revision=10502
2010-04-27 22:14:52 +00:00
Daniel Silverstone
30e0cfe7a9
First step to fixing memory leaks -- Box model no longer leaks computed styles
...
svn path=/trunk/netsurf/; revision=10500
2010-04-27 21:38:41 +00:00
John Mark Bell
0de2013f25
Clean up caches on exit
...
svn path=/trunk/netsurf/; revision=10494
2010-04-27 06:48:09 +00:00
Michael Drake
4c4c2c5f97
Fix typo.
...
svn path=/trunk/netsurf/; revision=10478
2010-04-24 21:16:12 +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
Daniel Silverstone
3f7c601078
Ensure we can search textplain again
...
svn path=/trunk/netsurf/; revision=10454
2010-04-22 14:37:32 +00:00
John Mark Bell
27064b4107
Remove redundant code
...
svn path=/trunk/netsurf/; revision=10430
2010-04-18 16:08:06 +00:00
John Mark Bell
031e301c53
Squash leak
...
svn path=/trunk/netsurf/; revision=10429
2010-04-18 16:07:51 +00:00
John Mark Bell
328fed8122
Liberally sprinkle #ifdef around
...
svn path=/trunk/netsurf/; revision=10417
2010-04-16 20:58:09 +00:00
John Mark Bell
c4de2cf6b3
Extract parent charset and quirkiness
...
svn path=/trunk/netsurf/; revision=10416
2010-04-16 20:55:17 +00:00
John Mark Bell
ad8d0b3350
Handle llcache queries (GTK only for now)
...
svn path=/trunk/netsurf/; revision=10403
2010-04-14 23:03:49 +00:00
Daniel Silverstone
3344b974af
Move content shuffling to prevent crash during threading through reformat
...
svn path=/trunk/netsurf/; revision=10396
2010-04-14 09:23:46 +00:00
Daniel Silverstone
3c81d2a527
Ensure url bar is updated with in-progress URL and restored if stop/download occurs
...
svn path=/trunk/netsurf/; revision=10385
2010-04-12 10:57:41 +00:00
John Mark Bell
11201a1cd7
Yes, ownership of the theme content is passed to theme_install
...
svn path=/trunk/netsurf/; revision=10375
2010-04-11 23:01:55 +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
John Mark Bell
71de3618f1
Implement hlcache_poll(), which drives the low-level cache event loop, and attempts to clean the high-level cache.
...
Call this, instead of llcache_poll().
svn path=/trunk/netsurf/; revision=10371
2010-04-11 20:21:13 +00:00
Michael Drake
3c12281565
Remove dead special case for gtk status bar width.
...
svn path=/trunk/netsurf/; revision=10322
2010-04-08 17:51:31 +00:00
Rob Kendrick
64d6093631
Don't bother trying to fetch search provider icons when BMP support is disabled. This code could do with a little rearrangement to make this cleaner.
...
svn path=/trunk/netsurf/; revision=10311
2010-04-08 14:14:27 +00:00
Michael Drake
f310569df4
Calling a hlcache_handle "content" is confusing.
...
svn path=/trunk/netsurf/; revision=10266
2010-04-07 12:09:38 +00:00
John Mark Bell
cbf55bd418
Fix textarea crash.
...
I cannot express just how much I hate the necessity of this change: browser windows (and other code in desktop/) should stop poking around inside content objects
svn path=/trunk/netsurf/; revision=10258
2010-04-07 06:22:15 +00:00
John Mark Bell
2748fe4f64
Make downloads work again.
...
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
John Mark Bell
69f02e926f
Make the high-level cache drop contents of unacceptable type on the floor.
...
svn path=/trunk/netsurf/; revision=10238
2010-04-04 17:17:24 +00:00
John Mark Bell
79ce683b4e
Most of a stop implementation.
...
Remaining work:
1) Clone content_html_data
2) Cloning content_css_data requires the charset of the old content
3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context.
svn path=/trunk/netsurf/; revision=10236
2010-04-04 12:41:19 +00:00
Chris Young
103998165a
Revert previous change
...
svn path=/trunk/netsurf/; revision=10215
2010-03-30 18:20:48 +00:00
Chris Young
9b9c26b569
Avoid crash if pargc is NULL. This might happen, for example, when launching NetSurf
...
from Workbench under AmigaOS :)
svn path=/trunk/netsurf/; revision=10214
2010-03-30 18:14:40 +00:00
John Mark Bell
9aca901eb1
The convert stage of a content's state progression no longer reflows the content to the provided dimensions.
...
It is now defined as converting the content into a state in which it is ready for use.
The user of the content is now responsible for performing an initial reformat (sic) of the content before it can be redrawn.
Purge width/height parameters from hlcache_handle_retrieve/content_convert/*_convert APIs.
Fix up content handlers affected by the above change in semantics.
Ensure that browser_window_callback performs an initial reformat of its content.
svn path=/trunk/netsurf/; revision=10207
2010-03-29 22:33:21 +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
cb7412181f
Replace fetch_poll with llcache_poll throughout. Allow CONTENT_OTHER to complete properly.
...
svn path=/trunk/netsurf/; revision=10187
2010-03-28 16:00:54 +00:00
Rob Kendrick
fea38002ed
Do not assert when the only thing of interest is a body box. Status string can quite happily be NULL.
...
svn path=/trunk/netsurf/; revision=10184
2010-03-28 15:35:37 +00:00
Daniel Silverstone
05a4eceae2
Remove fetchcache.[ch]
...
svn path=/trunk/netsurf/; revision=10183
2010-03-28 15:34:07 +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
Vincent Sanders
cf322aeda3
Review fixups from Daniel Silverstone
...
Ensure status text statistics are initialised
Fix documentation and indentation of status text variables.
svn path=/trunk/netsurf/; revision=9968
2010-02-11 10:58:26 +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
Vincent Sanders
1537981da5
cache the status text to reduce teh number of window status update calls to teh frontend
...
svn path=/trunk/netsurf/; revision=9965
2010-02-10 23:37:06 +00:00
Vincent Sanders
55162445db
Add Windows frontend
...
svn path=/trunk/netsurf/; revision=9940
2010-01-31 00:36:02 +00:00
Vincent Sanders
6990c2cd04
remove uneccissary includes
...
svn path=/trunk/netsurf/; revision=9931
2010-01-29 11:32:53 +00:00
John Mark Bell
5b0ad574b6
Fix compilation when BMP/PNG/GIF support is disabled.
...
svn path=/trunk/netsurf/; revision=9858
2010-01-21 23:48:34 +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
François Revel
18e27fb499
C89.
...
svn path=/trunk/netsurf/; revision=9779
2010-01-02 02:57:18 +00:00
John Mark Bell
b75b2ae8bb
Merge r9731:HEAD from branches/MarkieB/gtkmain to trunk.
...
svn path=/trunk/netsurf/; revision=9737
2009-12-18 20:15:50 +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
a042e38548
Squash leaks
...
svn path=/trunk/netsurf/; revision=9692
2009-11-22 14:10:39 +00:00
John Mark Bell
498cd522da
Avoid potential NULL pointer dereference
...
svn path=/trunk/netsurf/; revision=9685
2009-11-22 13:37:28 +00:00
John Mark Bell
2562f7e8c2
Avoid NULL pointer dereferences
...
svn path=/trunk/netsurf/; revision=9684
2009-11-22 13:35:41 +00:00
John Mark Bell
c2fd55cbab
Protect against NULL pointers
...
svn path=/trunk/netsurf/; revision=9681
2009-11-22 13:31:47 +00:00
John Mark Bell
9ca1622183
Ensure selection context is zero-initialised. This may well be the root cause of the random selection crashes people have been seeing.
...
svn path=/trunk/netsurf/; revision=9679
2009-11-22 13:20:39 +00:00
Michael Drake
074150ff18
Only try to reset scroll position on textarea wrap if there is a scrollbar.
...
svn path=/trunk/netsurf/; revision=9335
2009-08-17 13:23:52 +00:00
Michael Drake
c26611b32b
Merge from Paul Blokus' selectscroll branch. Fixes text input scrollbar behaviour.
...
svn path=/trunk/netsurf/; revision=9306
2009-08-14 23:10:53 +00:00
Michael Drake
13afa0ff4c
Merge Paul Blokus' selectscroll branch. Adds core select menu widget for forms and core scrollbar widget.
...
svn path=/trunk/netsurf/; revision=9289
2009-08-14 10:37:33 +00:00
Michael Drake
3549846a9a
Make textarea widget unaware of its global position. Credit: paulblokus.
...
svn path=/trunk/netsurf/; revision=9274
2009-08-13 22:10:36 +00:00
John Mark Bell
43941c53e8
C89.
...
svn path=/trunk/netsurf/; revision=9000
2009-08-02 21:51:24 +00:00
John Mark Bell
0665611cc2
Port to modified libcss API.
...
svn path=/trunk/netsurf/; revision=8997
2009-08-02 19:19:43 +00:00
Michael Drake
623808380a
Remove line that was removed in the other branch.
...
svn path=/trunk/netsurf/; revision=8887
2009-07-29 11:26:04 +00:00
Michael Drake
39546fd504
Merged revisions 8808,8862-8863 via svnmerge from
...
svn://svn.netsurf-browser.org/branches/paulblokus/textinput
........
r8808 | paulblokus | 2009-07-26 22:52:53 +0100 (Sun, 26 Jul 2009) | 2 lines
don't recalculate height already aviable
........
r8862 | paulblokus | 2009-07-28 21:39:06 +0100 (Tue, 28 Jul 2009) | 2 lines
added css.c and css.h files which caused svn errors after using svnmerge
........
r8863 | paulblokus | 2009-07-28 21:43:53 +0100 (Tue, 28 Jul 2009) | 3 lines
changed textarea redraw logic
little fix of KEY_DELETE_LINE_START jandling
........
svn path=/trunk/netsurf/; revision=8886
2009-07-29 11:03:34 +00:00
John Mark Bell
3be8193500
Port r8808 to trunk.
...
svn path=/trunk/netsurf/; revision=8825
2009-07-27 14:58:06 +00:00
John Mark Bell
b5d55eb295
Consider stylesheet media types
...
svn path=/trunk/netsurf/; revision=8820
2009-07-27 13:49:10 +00:00
John Mark Bell
4af04582ad
Fix textarea line height.
...
svn path=/trunk/netsurf/; revision=8766
2009-07-24 01:03:17 +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
Michael Drake
f1eb054b87
Merged revisions 8663 via svnmerge from
...
svn://svn.netsurf-browser.org/branches/paulblokus/textinput
........
r8663 | paulblokus | 2009-07-22 00:46:29 +0100 (Wed, 22 Jul 2009) | 2 lines
added getter for textarea dimensions
........
svn path=/trunk/netsurf/; revision=8695
2009-07-22 15:59:25 +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
1299c213ea
Revert accidental commit.
...
svn path=/trunk/netsurf/; revision=8529
2009-07-14 16:53:39 +00:00
Michael Drake
3bfba0f584
mouse_track
...
svn path=/trunk/netsurf/; revision=8528
2009-07-14 16:51:42 +00:00
Michael Drake
f18904ca67
Indicate activity with the progress pointer for a second after you click a link and as the "auto" pointer while stuff is loading.
...
svn path=/trunk/netsurf/; revision=8525
2009-07-14 15:53:12 +00:00
Michael Drake
2d95b8aa57
Rename debug outline plot styles and make them const.
...
svn path=/trunk/netsurf/; revision=8518
2009-07-14 12:42:02 +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
Michael Drake
e0a4b50e87
Move colour blend routine from html_redraw to plot_style and make it a define.
...
svn path=/trunk/netsurf/; revision=8451
2009-07-10 19:53:30 +00:00
Vincent Sanders
680298e61c
plotters line refactor
...
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
John Mark Bell
5feb7018c5
Replace parent_url with a pointer to the parent content.
...
svn path=/trunk/netsurf/; revision=8428
2009-07-10 00:26:37 +00:00
Vincent Sanders
f9ecd56f62
ploter refactor of rectangle handling
...
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
John Mark Bell
68aeb65cdf
Merged revisions 8059-8359 via svnmerge from
...
svn://svn.netsurf-browser.org/branches/paulblokus/textinput
........
r8337 | paulblokus | 2009-07-06 00:38:21 +0100 (Mon, 06 Jul 2009) | 2 lines
added textarea_set_position
........
svn path=/trunk/netsurf/; revision=8360
2009-07-06 23:47:50 +00:00
Michael Drake
d98ec423b1
Style guide indentation.
...
svn path=/trunk/netsurf/; revision=8346
2009-07-06 10:46:15 +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
Michael Drake
ce70652694
Update plotters documentation for merged bitmap plotter.
...
svn path=/trunk/netsurf/; revision=8198
2009-06-30 13:45:08 +00:00
Vincent Sanders
aa26843411
Improve bitmap plotter API
...
svn path=/trunk/netsurf/; revision=8195
2009-06-30 13:02:23 +00:00
Vincent Sanders
36b5deef09
Make framebuffer port use libnsfb
...
svn path=/trunk/netsurf/; revision=8122
2009-06-28 18:32:47 +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
a070f24913
Lose more redundancy
...
svn path=/trunk/netsurf/; revision=7613
2009-05-28 16:38:17 +00:00
John Mark Bell
73a89e8a0f
Lose redundant variable.
...
Ensure name_t is used in tree_delete_node_internal()
svn path=/trunk/netsurf/; revision=7609
2009-05-28 16:16:16 +00:00
John Mark Bell
2730814c27
Remove redundant statements
...
svn path=/trunk/netsurf/; revision=7608
2009-05-28 16:13:02 +00:00
John Mark Bell
abc3603feb
And again
...
svn path=/trunk/netsurf/; revision=7607
2009-05-28 16:05:17 +00:00
John Mark Bell
e9e3649648
Make some vague attempt at detecting failure to write output.
...
svn path=/trunk/netsurf/; revision=7606
2009-05-28 16:03:48 +00:00
Michael Drake
666506689f
Remove redundant assign, and make case indentation style guide complient.
...
svn path=/trunk/netsurf/; revision=7605
2009-05-28 15:59:02 +00:00
John Mark Bell
07c557a25d
Report memory exhaustion -- the whole tree loading stuff needs an overhaul as it's pretty lax about dealing with memory exhaustion.
...
svn path=/trunk/netsurf/; revision=7604
2009-05-28 15:57:54 +00:00
John Mark Bell
d81a949cdd
Remove unused code
...
svn path=/trunk/netsurf/; revision=7603
2009-05-28 15:51:03 +00:00
John Mark Bell
dda592c870
Remove redundant code from browser_window_mouse_action_html().
...
Tidy up browser_window_mouse_track().
svn path=/trunk/netsurf/; revision=7602
2009-05-28 14:35:12 +00:00
John Mark Bell
243c1ba03f
Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG.
...
svn path=/trunk/netsurf/; revision=7593
2009-05-28 10:39:53 +00:00
John Mark Bell
d66ffb6e85
It's probably about time we stopped claiming to be 2.0
...
svn path=/trunk/netsurf/; revision=7411
2009-05-06 23:52:12 +00:00
Rob Kendrick
ec034af671
Apply contributions from Mark Benjamin and Chris Tarnowski, with some reworking from me. Beware; glade nastyness ahead.
...
svn path=/trunk/netsurf/; revision=7136
2009-04-20 20:31:13 +00:00
Michael Drake
d1b5c38883
Possibly fix links opened in current window not being scrolled to top.
...
svn path=/trunk/netsurf/; revision=7065
2009-04-08 11:07:30 +00:00
John Mark Bell
2531079866
Revert r6973. Apparently, it causes loads of problems.
...
svn path=/trunk/netsurf/; revision=7047
2009-04-05 19:17:24 +00:00
Michael Drake
ef5089e629
Add some incomplete documentation for path plotter. Better documentation of rectangle and fill plotters.plotters.h
...
svn path=/trunk/netsurf/; revision=7016
2009-03-31 15:17:08 +00:00
Michael Drake
08331f781e
Use tabs for indentation.
...
svn path=/trunk/netsurf/; revision=7008
2009-03-31 12:55:23 +00:00
Daniel Silverstone
1664683fa9
Tidy browser_window_refresh_url_bar a bit, ensure the sizes all make sense, that we don't allocate unnecessarily, etc.
...
svn path=/trunk/netsurf/; revision=7007
2009-03-31 12:23:12 +00:00
Michael Drake
1b25b44922
Use fragment instead of #fragment in the comment because it does not include the #.
...
svn path=/trunk/netsurf/; revision=7006
2009-03-31 11:12:36 +00:00
Michael Drake
4dc9a59409
Comment browser_window_refresh_url_bar() and fix some wrap.
...
svn path=/trunk/netsurf/; revision=7005
2009-03-31 11:06:09 +00:00
Chris Young
28cfe681db
Ensure buffer is big enough for the extra character.
...
svn path=/trunk/netsurf/; revision=7003
2009-03-31 06:39:32 +00:00
Chris Young
bab30e4f1d
Stop URL bar losing characters on every refresh
...
svn path=/trunk/netsurf/; revision=7001
2009-03-30 18:10:16 +00:00
John Mark Bell
b230423267
Change URL bar contents when switching tabs in GTK frontend.
...
Remove fixed-size buffer from core URL string handling.
Credit: Mark Benjamin.
svn path=/trunk/netsurf/; revision=6998
2009-03-30 15:46:26 +00:00
John Mark Bell
118036d27b
Use <> for library headers.
...
svn path=/trunk/netsurf/; revision=6919
2009-03-27 01:59:16 +00:00
Michael Drake
0a7e10819b
Add functions for checking if back/forward/stop/reload actions are currently available for a given browser window.
...
svn path=/trunk/netsurf/; revision=6827
2009-03-23 22:22:30 +00:00
John Mark Bell
58cd142338
Remember the scroll position in the history, so that it's maintained when going back. (credit: Paweł Blokus)
...
svn path=/trunk/netsurf/; revision=6793
2009-03-17 12:26:41 +00:00
John Mark Bell
2aa7f5c7f1
Improve previous commit.
...
svn path=/trunk/netsurf/; revision=6752
2009-03-10 09:14:25 +00:00
John Mark Bell
2ace72c587
Treat short meta refreshes in top-level browser windows as if they were HTTP redirects for the purposes of verifiability.
...
svn path=/trunk/netsurf/; revision=6751
2009-03-10 09:10:43 +00:00
Chris Young
2014dac36d
Add ability to render part of a local history window.
...
This is achieved through new function history_redraw_rectangle.
It takes the co-ordinates of the history area to plot as parameters 2-5
and the co-ordinates of the top-left position to draw this area as params 6,7
Added local history scrolling to Amiga port using the above function.
svn path=/trunk/netsurf/; revision=6740
2009-03-08 23:08:27 +00:00
Rob Kendrick
c72b3cf71a
OpenBSD 4.4 compilation fixes. Does not deal with lack of -Wextra or -Wstrict-aliasing for lpu or hubbub.
...
svn path=/trunk/netsurf/; revision=6673
2009-03-02 19:26:11 +00:00
Michael Drake
656c0a0dcb
Fix cursor on textarea scrollbars.
...
svn path=/trunk/netsurf/; revision=6664
2009-03-02 12:48:20 +00:00
John Mark Bell
c2a773b049
Only attempt to find the next character in a string if we're not already at the end of the string.
...
svn path=/trunk/netsurf/; revision=6606
2009-02-22 23:30:27 +00:00
John Mark Bell
b98f105b24
Purge WITH_AUTH
...
svn path=/trunk/netsurf/; revision=6600
2009-02-22 15:13:10 +00:00
John Mark Bell
847b776285
Purge NETSURF_USE_SSL and WITH_SSL
...
svn path=/trunk/netsurf/; revision=6599
2009-02-22 15:07:50 +00:00
Michael Drake
997b982500
More plotters commenting. Text and bitmap plotters.
...
svn path=/trunk/netsurf/; revision=6594
2009-02-21 17:12:15 +00:00
Michael Drake
de7a20499a
Fix button hover assert.
...
svn path=/trunk/netsurf/; revision=6585
2009-02-20 20:48:30 +00:00
Michael Drake
dd6031d297
Fix imagemap cursors.
...
svn path=/trunk/netsurf/; revision=6584
2009-02-20 19:34:40 +00:00
Michael Drake
8bebcb5ca9
Fix handling of URLs on float boxes (which have no style).
...
svn path=/trunk/netsurf/; revision=6574
2009-02-20 12:12:32 +00:00
John Mark Bell
cc1094f0ac
Utilise hubbub's form association callback.
...
Please can we dispense with the libxml binding? It's causing much #ifdef mess.
Fix encoding of <input type=image> names -- previously were output as raw utf-8, rather than in the submission charset.
Actually bother to destroy forms in a document, and the controls associated with them. We still leak non form-associated controls, but that's too much effort to fix right now.
svn path=/trunk/netsurf/; revision=6573
2009-02-20 11:39:25 +00:00
Michael Drake
856c3bca25
Implement 'auto' value for CSS cursor property.
...
Allow cursor type to be user set for links and form stuff.
svn path=/trunk/netsurf/; revision=6564
2009-02-18 15:57:08 +00:00
John Mark Bell
ae781b4fd8
Destroy bitmap if thumbnailing fails.
...
Make amiga port's thumbnail_create() actually return something
svn path=/trunk/netsurf/; revision=6560
2009-02-18 13:25:57 +00:00
John Mark Bell
ee986e1d0a
Divorce PDF export and printing.
...
At some point, the RISC OS printing code should be ported to the core page-based output engine.
svn path=/trunk/netsurf/; revision=6544
2009-02-17 16:37:51 +00:00
Vincent Sanders
cbf07e1bc3
make schedule_run return if it has active jobs to schedule
...
svn path=/trunk/netsurf/; revision=6447
2009-02-11 22:33:55 +00:00
Adrian Lees
ac6b80c988
Obvious fix for text start/end problem; missing something?
...
svn path=/trunk/netsurf/; revision=6396
2009-02-08 04:25:42 +00:00
John Mark Bell
961be4593b
Ensure hotlist URLs are normalised before using them.
...
Squash a bunch of memory leaks.
svn path=/trunk/netsurf/; revision=6370
2009-02-06 02:04:25 +00:00
John Tytgat
d76712a150
pdf_plot_fill(): fixed wrong change made in r6363.
...
svn path=/trunk/netsurf/; revision=6368
2009-02-06 01:09:08 +00:00
John Tytgat
403376e890
- desktop/save_pdf/pdf_plotters.c:
...
- Have a set of libharu gstate update related wrapper routines which minimizes the gstate updates in the PDF file
resulting in smaller PDF file size.
- Colour values were wrongly scaled (was dividing by 256 instead of by 255).
- pdf_plot_polygon(): last (closing) lineto wasn't needed, a fill operation will do that automatically.
- pdf_scale/pdf_set_scale(): moved to desktop/save_pdf/font_haru.c as pdf_text_scale/haru_nsfont_set_scale().
- desktop/save_pdf/pdf_plotters.c(pdf_set_scale): moved to desktop/save_pdf/font_haru.h as haru_nsfont_set_scale().
- desktop/save_pdf/font_haru.c:
- moved pdf_scale variable from pdf_plotters.c to here.
- haru_nsfont_set_scale(): was pdf_set_scale from pdf_plotters.c
- haru_nsfont_apply_style(): always calculate font size and pass it on to caller when requested.
- desktop/save_pdf/font_haru.h:
- haru_nsfont_set_scale(): declare.
- haru_nsfont_apply_style(): add font size parameter
- gtk/gtk_scaffolding.c(MENUHANDLER(export_pdf)): call haru_nsfont_set_scale() instead of pdf_set_scale().
svn path=/trunk/netsurf/; revision=6363
2009-02-05 02:31:19 +00:00
John Tytgat
fbf6d4cd41
- Constify parameters of struct plotter_table::polygon and struct plotter_table::path
...
- riscos/save_draw.c(ro_save_draw_plotters): Make it static.
- desktop/save_pdf/pdf_plotters.c(pdf_plot_path): fix broken implementation (coordinates path were wrong, no clip/text mode update, transformation matrix was overwritten); only update fill and/or
stroke color when fill and/or stroke is done.
(pdf_begin): disable compression when PDF_DEBUG is set
svn path=/trunk/netsurf/; revision=6361
2009-02-03 01:27:54 +00:00
John Tytgat
9a17510206
- apply_clip_and_mode(): pass text mode selection as parameter instead of using global variable text_mode_request.
...
- pdf_next_page()/pdf_end: fix possible gstate unbalance by using apply_clip_and_mode().
svn path=/trunk/netsurf/; revision=6360
2009-02-02 23:25:36 +00:00
John Tytgat
57124b7f92
Unexport pdf_scale variable (use pdf_set_scale to set it) and initialize it to DEFAULT_EXPORT_SCALE.
...
svn path=/trunk/netsurf/; revision=6350
2009-02-02 00:22:44 +00:00
Adrian Lees
15e8ba0270
Selection menu and save/download tweaks
...
svn path=/trunk/netsurf/; revision=6349
2009-02-02 00:06:31 +00:00
John Tytgat
1047428df5
Hook in our own libharu copy in the build.
...
svn path=/trunk/netsurf/; revision=6343
2009-02-01 22:05:56 +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
Adrian Lees
34fdcf3aec
And these files too, please
...
svn path=/trunk/netsurf/; revision=6297
2009-01-30 05:07:07 +00:00
Adrian Lees
77972a5056
Improve pasting into password boxes
...
svn path=/trunk/netsurf/; revision=5946
2008-12-30 06:27:12 +00:00
Michael Drake
0bdff38416
Move tab opening logic to same place as new window opening. Make option for "Tabbed browsing", which is enabled by default. Someone who knows how to work glade could add the "Tabbed browsing" option to the choices dialogue. When a link is opened in a new tab, don't change tab.
...
svn path=/trunk/netsurf/; revision=5816
2008-11-29 00:24:09 +00:00
François Revel
e4407cd7e9
Had to split main() into parts to have netsurf_init() called from one thread, and the loop in another to avoid a deadlock in replicants... hope nobody minds.
...
svn path=/trunk/netsurf/; revision=5586
2008-10-16 20:49:12 +00:00
François Revel
6330f8e475
Have netsurf_main() do the real work and main() call it. This allows ports to call it from elsewhere to embed NetSurf in another application.
...
The netsurf_embedded bool remembers it for later (like, we shouldn't probably save the hotlist and preferences in that case).
svn path=/trunk/netsurf/; revision=5579
2008-10-16 11:10:43 +00:00
John Mark Bell
6c49f1fcd5
r4153 was mostly right. It does help, however, if you actually force the locale to "C" in the first place. The issues listed in the commit log for r4153 still apply. This should fix the core's parsing of floats in locales that use something other than '.' as the decimal separator.
...
svn path=/trunk/netsurf/; revision=5568
2008-10-13 23:32:21 +00:00
François Revel
4463070f1c
Fix selection in plain text files, check if s->defined first, and check s->root just in case.
...
svn path=/trunk/netsurf/; revision=5537
2008-10-11 16:47:25 +00:00
Michael Drake
b1a6125578
Comment flush plotter.
...
svn path=/trunk/netsurf/; revision=5488
2008-10-05 20:55:45 +00:00
John Tytgat
9c36d71ab8
* desktop/save_pdf/pdf_plotters.c:
...
- save_pdf(): constify path parameter and routine no longer frees it.
Follow latter change in pdf_end(), nsgtk_PDF_set_pass() and nsgtk_PDF_no_pass()
- pdf_printer: constify
- last_clip_x0, last_clip_y0, last_clip_x1, last_clip_y1, in_text_mode, text_mode_request: make static
- pdf_doc: free previous PDF document if previous save attempt failed.
- set PDF Creator entry based on our user_agent_string().
* other minor changes.
svn path=/trunk/netsurf/; revision=5452
2008-09-28 13:40:06 +00:00
Daniel Silverstone
3f5d902edd
Merged revisions 5309-5406,5409-5422 via svnmerge from
...
svn://svn.netsurf-browser.org/branches/vince/netsurf-fb
........
r5309 | vince | 2008-09-13 10:59:10 +0100 (Sat, 13 Sep 2008) | 2 lines
first stab at framebuffer frontend
........
r5313 | vince | 2008-09-14 15:08:52 +0100 (Sun, 14 Sep 2008) | 2 lines
add line plotters
........
r5314 | vince | 2008-09-14 15:28:12 +0100 (Sun, 14 Sep 2008) | 2 lines
add rectangle plot to 16bpp plotters
........
r5315 | vince | 2008-09-14 19:58:57 +0100 (Sun, 14 Sep 2008) | 2 lines
improve 16bpp image plot
........
r5316 | vince | 2008-09-15 00:35:32 +0100 (Mon, 15 Sep 2008) | 2 lines
abstract the os specific framebuffer init
........
r5317 | vince | 2008-09-15 11:18:51 +0100 (Mon, 15 Sep 2008) | 2 lines
first cut of linux frontend
........
r5318 | vince | 2008-09-15 12:01:00 +0100 (Mon, 15 Sep 2008) | 2 lines
remove junk includes
........
r5319 | vince | 2008-09-15 12:09:02 +0100 (Mon, 15 Sep 2008) | 2 lines
make plotters OS agnostic again
........
r5322 | vince | 2008-09-15 15:55:01 +0100 (Mon, 15 Sep 2008) | 2 lines
Linux frontend operates
........
r5323 | vince | 2008-09-15 16:32:47 +0100 (Mon, 15 Sep 2008) | 2 lines
abstract out OS specific input
........
r5326 | vince | 2008-09-15 19:21:01 +0100 (Mon, 15 Sep 2008) | 2 lines
Improve linux mode setting
........
r5329 | vince | 2008-09-15 21:13:33 +0100 (Mon, 15 Sep 2008) | 2 lines
improve text clipping
........
r5339 | vince | 2008-09-16 00:07:57 +0100 (Tue, 16 Sep 2008) | 2 lines
possibly fix text clipping issue
........
r5342 | vince | 2008-09-16 00:39:36 +0100 (Tue, 16 Sep 2008) | 2 lines
consolidate polygon plotters
........
r5344 | dsilvers | 2008-09-16 10:21:06 +0100 (Tue, 16 Sep 2008) | 1 line
Fix up the framebuffer target makefile a bit more, add some config options for it
........
r5345 | dsilvers | 2008-09-16 10:22:19 +0100 (Tue, 16 Sep 2008) | 1 line
Ensure the appropriate frontend is selected when building framebuffer
........
r5346 | dsilvers | 2008-09-16 10:27:16 +0100 (Tue, 16 Sep 2008) | 1 line
Update build system to support targetting separate framebuffer frontends in different build trees, update executable to be nsfb-blah
........
r5350 | vince | 2008-09-16 17:15:04 +0100 (Tue, 16 Sep 2008) | 1 line
Add -g to provide symbols for framebuffer link
........
r5351 | vince | 2008-09-16 17:17:09 +0100 (Tue, 16 Sep 2008) | 1 line
framebuffer scheduler now works, plotters tweaked, gui tracks window redraw requirements better, keypresses not duplicated under linux fb
........
r5352 | dsilvers | 2008-09-16 17:38:53 +0100 (Tue, 16 Sep 2008) | 1 line
Ensure we only allow one fetcher at a time
........
r5361 | vince | 2008-09-17 11:48:44 +0100 (Wed, 17 Sep 2008) | 2 lines
initial cursor support
........
r5362 | vince | 2008-09-17 13:56:47 +0100 (Wed, 17 Sep 2008) | 2 lines
add mouse handling
........
r5363 | vince | 2008-09-17 14:14:44 +0100 (Wed, 17 Sep 2008) | 2 lines
add framebuffer resources
........
r5364 | vince | 2008-09-17 17:12:21 +0100 (Wed, 17 Sep 2008) | 2 lines
add reasonable pointer
........
r5366 | vince | 2008-09-17 17:17:25 +0100 (Wed, 17 Sep 2008) | 2 lines
fix pointer alpha
........
r5370 | vince | 2008-09-18 13:43:53 +0100 (Thu, 18 Sep 2008) | 2 lines
warning squash and cleanup ready for trunk merge
........
r5375 | vince | 2008-09-19 14:58:43 +0100 (Fri, 19 Sep 2008) | 2 lines
Working mouse navigation
........
r5377 | vince | 2008-09-20 14:06:22 +0100 (Sat, 20 Sep 2008) | 2 lines
Improve scrolling
........
r5378 | vince | 2008-09-20 14:46:46 +0100 (Sat, 20 Sep 2008) | 2 lines
fix redraw issues with scrolling
........
r5380 | vince | 2008-09-20 17:08:43 +0100 (Sat, 20 Sep 2008) | 3 lines
Alter panning to use its own flag so it doesnt cause invalid redraw
operations
........
r5381 | vince | 2008-09-20 21:52:45 +0100 (Sat, 20 Sep 2008) | 2 lines
add dummy framebuffer
........
r5383 | vince | 2008-09-21 00:00:15 +0100 (Sun, 21 Sep 2008) | 2 lines
fix segfault when cursor is off teh bottom of teh screen
........
r5384 | vince | 2008-09-21 00:06:08 +0100 (Sun, 21 Sep 2008) | 2 lines
fix off by one in pointer fix
........
r5385 | vince | 2008-09-21 00:25:09 +0100 (Sun, 21 Sep 2008) | 2 lines
when fixing bloody silly off by one errors remember to fix *both* references
........
r5387 | vince | 2008-09-21 00:38:13 +0100 (Sun, 21 Sep 2008) | 2 lines
last try at stopping the pointer segfault
........
r5388 | vince | 2008-09-21 16:24:18 +0100 (Sun, 21 Sep 2008) | 2 lines
improve vertical text clipping
........
r5392 | vince | 2008-09-21 23:11:51 +0100 (Sun, 21 Sep 2008) | 2 lines
Improve text plotters
........
r5393 | vince | 2008-09-21 23:34:38 +0100 (Sun, 21 Sep 2008) | 2 lines
fix 32bpp line plotting
........
r5394 | vince | 2008-09-22 00:00:03 +0100 (Mon, 22 Sep 2008) | 2 lines
Fix off by one error in line plotting clipping
........
r5397 | vince | 2008-09-22 13:46:22 +0100 (Mon, 22 Sep 2008) | 2 lines
Fix bitmap tileing
........
r5398 | vince | 2008-09-22 17:46:02 +0100 (Mon, 22 Sep 2008) | 2 lines
enable knockout renderer
........
r5399 | vince | 2008-09-22 18:43:48 +0100 (Mon, 22 Sep 2008) | 2 lines
ensure clipping region lies within window, caused by knockout renderer
........
r5400 | vince | 2008-09-22 19:20:25 +0100 (Mon, 22 Sep 2008) | 2 lines
update cursor to one swiped from X windows
........
r5405 | vince | 2008-09-23 09:09:05 +0100 (Tue, 23 Sep 2008) | 2 lines
fix vertical scroll limit
........
r5412 | dsilvers | 2008-09-23 10:53:14 +0100 (Tue, 23 Sep 2008) | 1 line
Revert noisy fetcher patch
........
r5413 | dsilvers | 2008-09-23 10:58:00 +0100 (Tue, 23 Sep 2008) | 1 line
Add header guards
........
r5414 | dsilvers | 2008-09-23 11:31:31 +0100 (Tue, 23 Sep 2008) | 1 line
Tidy the region clipping slightly
........
r5416 | dsilvers | 2008-09-23 12:05:00 +0100 (Tue, 23 Sep 2008) | 1 line
Rationalise how the framebuffer frontend finds resources and options
........
r5418 | dsilvers | 2008-09-23 13:59:00 +0100 (Tue, 23 Sep 2008) | 1 line
Ensure options are overridden after load, and squash an fb_gui.c warning
........
r5419 | dsilvers | 2008-09-23 14:20:07 +0100 (Tue, 23 Sep 2008) | 1 line
Support fb_mode and fb_device options
........
r5420 | dsilvers | 2008-09-23 14:21:48 +0100 (Tue, 23 Sep 2008) | 1 line
Support option_fb_device in the able frontend
........
r5421 | dsilvers | 2008-09-23 14:25:17 +0100 (Tue, 23 Sep 2008) | 1 line
Ensure target_blank is disabled
........
r5422 | dsilvers | 2008-09-23 14:39:00 +0100 (Tue, 23 Sep 2008) | 1 line
Rework linux fb frontend to support scanning and opening all event devices for input
........
svn path=/trunk/netsurf/; revision=5423
2008-09-23 14:00:40 +00:00
Michael Drake
01240caa26
Fix diagram to be fill -- not sure what happens with lines.
...
svn path=/trunk/netsurf/; revision=5368
2008-09-17 22:19:44 +00:00
Michael Drake
03fdf02272
Fix warnings.
...
svn path=/trunk/netsurf/; revision=5349
2008-09-16 13:45:59 +00:00
Michael Drake
f2d6c62d7b
Comment group plotters.
...
svn path=/trunk/netsurf/; revision=5331
2008-09-15 20:31:09 +00:00
Michael Drake
caafa2704e
Add general comment on knockout rendering.
...
svn path=/trunk/netsurf/; revision=5327
2008-09-15 18:47:37 +00:00
Michael Drake
7447ca1d4c
Oops - commit the latest version.
...
svn path=/trunk/netsurf/; revision=5325
2008-09-15 18:19:13 +00:00
Michael Drake
7719e36c28
Start commenting plotter functions.
...
svn path=/trunk/netsurf/; revision=5324
2008-09-15 18:14:08 +00:00
Chris Young
3e38e71089
Include Amiga-specific options
...
svn path=/trunk/netsurf/; revision=5198
2008-08-25 13:27:44 +00:00
Michael Drake
01ff577a66
Main window has a vertical scrollbar. Maybe we need to make this get set in the platform specific code, so different front ends can have different behavoir.
...
svn path=/trunk/netsurf/; revision=5194
2008-08-24 13:05:53 +00:00
Rob Kendrick
afdf592637
Merge Mike's tabs changes. Still needs some cleaning.
...
svn path=/trunk/netsurf/; revision=5189
2008-08-24 10:31:38 +00:00
John Tytgat
e063a2a59d
Second merge of Adam Blokus' GSoC work from his branch 'branches/adamblokus/netsurf'.
...
Merged revisions 4195-4211,4216,4219-4220,4222-4234,4236-4250,4252-4262,4264-4266,4268-4326,4329-4335,4338-4342,4344-4411,4413-4420,4422-4436,4438-4491,4494-4506,4508-4514,4516,4518-4552,4554,4556-4564,4567-4568,4570-4574,4576-4686,4689-4692,4694,4698-4709,4715-4723,4725-4755,4757-4769,4771-4919,4921-4996,4998-5110,5112-5117 via svnmerge from
svn://svn.netsurf-browser.org/branches/adamblokus/netsurf
........
r4736 | adamblokus | 2008-07-26 13:46:54 +0200 (Sat, 26 Jul 2008) | 2 lines
Sorting out some problems with svn.
........
r4737 | adamblokus | 2008-07-26 13:54:36 +0200 (Sat, 26 Jul 2008) | 4 lines
Added export tab to the options dialog.
Added the possibility of changing some print options.
........
r4897 | adamblokus | 2008-08-04 17:59:05 +0200 (Mon, 04 Aug 2008) | 5 lines
Added checking of horizontal clipping.
Added better table loosening.
Changed some minor bugs.
Applied changes in the Export options tab according to the review from tlsa.
........
r4905 | adamblokus | 2008-08-05 01:53:34 +0200 (Tue, 05 Aug 2008) | 2 lines
Fixed bug which made it impossible to export pdf's.
........
r4919 | adamblokus | 2008-08-05 16:39:33 +0200 (Tue, 05 Aug 2008) | 2 lines
Fixed some memory leaks which caused Netsurf to break.
........
r4927 | adamblokus | 2008-08-06 02:26:30 +0200 (Wed, 06 Aug 2008) | 4 lines
Fixed bug with filenames which crashed Netsurf.
Turned anti aliasing off for printing.
Fixed some scaling issues.
........
r4928 | adamblokus | 2008-08-06 17:52:44 +0200 (Wed, 06 Aug 2008) | 5 lines
Added new export/print options:
- suppressing images
- turning off backgrounds
- toggled loosening
........
r4950 | adamblokus | 2008-08-07 21:15:21 +0200 (Thu, 07 Aug 2008) | 5 lines
Added new options to PDF export:
- document compression
- document encryption
Added PDF password dialog
........
r4954 | adamblokus | 2008-08-07 22:11:31 +0200 (Thu, 07 Aug 2008) | 2 lines
Added saving print settings.
........
r4956 | adamblokus | 2008-08-07 22:44:48 +0200 (Thu, 07 Aug 2008) | 2 lines
Fixes to PDF encryption
........
r4970 | adamblokus | 2008-08-09 15:26:24 +0200 (Sat, 09 Aug 2008) | 3 lines
Fixed bug in plotting tiled bitmaps.
Fixed bug with too long text decorations.
........
r4977 | adamblokus | 2008-08-09 19:18:56 +0200 (Sat, 09 Aug 2008) | 2 lines
Fixed JPG embedding bug.
........
r4988 | adamblokus | 2008-08-10 16:59:51 +0200 (Sun, 10 Aug 2008) | 3 lines
Added clip checking to pdf plotters. No more "blank" clips.
Made PDF compression a default setting.
........
r4995 | adamblokus | 2008-08-10 20:03:00 +0200 (Sun, 10 Aug 2008) | 2 lines
Fixed Haru crash on font-size==0.
........
r4996 | adamblokus | 2008-08-10 21:04:43 +0200 (Sun, 10 Aug 2008) | 2 lines
Added changing text mode only if necessary.
........
r5045 | adamblokus | 2008-08-11 21:26:26 +0200 (Mon, 11 Aug 2008) | 3 lines
Removing gtk stuff from core code.
Little fix in options.
........
r5048 | adamblokus | 2008-08-11 21:57:45 +0200 (Mon, 11 Aug 2008) | 2 lines
Better font size checking in PDF export.
........
r5050 | adamblokus | 2008-08-11 22:19:56 +0200 (Mon, 11 Aug 2008) | 2 lines
Fixed riscos text scale bug.
........
r5073 | adamblokus | 2008-08-12 17:40:57 +0200 (Tue, 12 Aug 2008) | 2 lines
Added missing tooltips
........
r5092 | adamblokus | 2008-08-13 17:09:25 +0200 (Wed, 13 Aug 2008) | 2 lines
Moved /pdf folder to desktop/save_pdf
........
r5110 | adamblokus | 2008-08-13 22:44:50 +0200 (Wed, 13 Aug 2008) | 2 lines
Added comments.
........
r5113 | adamblokus | 2008-08-13 23:07:35 +0200 (Wed, 13 Aug 2008) | 2 lines
Cosmetic changes
........
r5116 | adamblokus | 2008-08-14 16:10:18 +0200 (Thu, 14 Aug 2008) | 2 lines
Fixed bug with BOX_INLINE_END in tree duplication.
........
r5117 | joty | 2008-08-14 21:47:46 +0200 (Thu, 14 Aug 2008) | 1 line
Improvement for r5116: use local vars when possible; rename global last to box_duplicate_last; check on box_duplicate_main_tree failure.
........
svn path=/trunk/netsurf/; revision=5118
2008-08-14 20:32:10 +00:00
John Mark Bell
25018c455b
Make nsgtk compile on Mac OS X.
...
svn path=/trunk/netsurf/; revision=5031
2008-08-11 16:44:12 +00:00
John Tytgat
4be25b2951
Update my e-mail address.
...
svn path=/trunk/netsurf/; revision=4908
2008-08-05 01:30:31 +00:00
John Tytgat
48070139d8
Prefix all RISC OS print global variables and functions with "ro_" in order to avoid the print_cleanup function name clash in desktop/print.c and
...
riscos/print.c.
svn path=/trunk/netsurf/; revision=4867
2008-08-02 20:07:44 +00:00
John Tytgat
5685170036
Make the knockout plotter calling behaviour optional by added a new entry
...
'option_knockout' to 'struct plotter_table' which basically is a request
from that plotter backend for the content redraw routine to get called in
such a way that overlapping render areas are avoided as much as possible.
It is up to the content redraw code to actually implement this
option if it is reasonably profitable. This was and is currently done
explicitly by the html content redraw code. On top of that the riscos
plotter code was installing the knockout plotter itself for all content
types except plaintext and SVG and this is no longer being done in this
patch.
In more detail:
- desktop/plotters.h: added struct plotter_table::option_knockout
- render/html_redraw.c(html_redraw): if the plotter backend wants the
knockout calling behaviour, install the knockout plotter which will then
call the real backend. Also check on the return values of clg and clip
plotter calls.
- Plotter backend changes:
-> no longer plotting in knockout mode:
- gtk/gtk_print.c: Also removed a 2nd instance of
"struct plotter_table plot".
- riscos/save_draw.c
- riscos/print.c: Also the path plotter function pointer wasn't
filled in and this is now fixed.
- pdf/pdf_plotters.c: Removed the flush function as this is
optional and we only had a dummy implementation there.
-> remaining to request knockout mode if it makes sense based on the
content type:
- gtk/gtk_plotters.c
- riscos/plotters.c
- desktop/knockout.c
- riscos/window.c: Removed what's believed an obsolete test on the
content type which determined to additionally install the
knockout plotter in front of the real plotter code.
svn path=/trunk/netsurf/; revision=4823
2008-07-30 19:17:27 +00:00
John Tytgat
23a5467178
Use static for variables local to one source file.
...
svn path=/trunk/netsurf/; revision=4812
2008-07-29 23:19:24 +00:00
John Mark Bell
1c6012aae5
Assert first, before acting on selection
...
svn path=/trunk/netsurf/; revision=4799
2008-07-29 10:13:01 +00:00
François Revel
34e0f4db3f
- C89 again
...
- include beos options for BeOS
svn path=/trunk/netsurf/; revision=4794
2008-07-29 09:28:45 +00:00
Rob Kendrick
052f99d379
Include headers we need, rather than depending on (optional) features doing so.
...
svn path=/trunk/netsurf/; revision=4774
2008-07-28 20:32:51 +00:00