Commit Graph

8814 Commits

Author SHA1 Message Date
Michael Drake
0bcbdba424 Comment fixes. 2013-03-19 17:29:55 +00:00
Michael Drake
b1082c09e7 Fix warnings. 2013-03-19 16:28:05 +00:00
Michael Drake
2ad0d23915 Start reducing unnecessary redraws: when only start OR end of selection has changed, only redraw the lines affected. (Reduces redraw of vertical regions only. Still redraw full width for changed lines.) 2013-03-19 16:22:24 +00:00
Michael Drake
f4ce62ebfe In box textarea binding only redraw the area that was requested, not the whole textarea. 2013-03-19 12:44:03 +00:00
Michael Drake
dd704c2c43 Fix can paste/copy tests. 2013-03-18 23:06:06 +00:00
Michael Drake
74a82e2ab0 Fix menu shading of copy/cut/paste options when more than one of them should be made available. 2013-03-18 22:48:15 +00:00
Michael Drake
773cc5b562 Stop looking on first modified sheet found. 2013-03-18 15:01:56 +00:00
Michael Drake
07bdb324c1 Remove extra logging. 2013-03-18 14:57:29 +00:00
Michael Drake
5930e4bcc4 Fix bug where html conversion began before STYLE element fetch had been launched. 2013-03-18 14:48:00 +00:00
Michael Drake
bf69cfa74b Add some extra logging. Some pedantic wrap changes. 2013-03-18 12:35:00 +00:00
Michael Drake
8d0c1f9207 Loads of changes including fixes, new functionality, and optimisation.
+ Refactor internals to be byte, rather than character based.
    + Don't need to hammer utf8_* functions everywhere
    + Optimises:
        + Redraw (lots)
        + Editing (insertion, replacement, removal)
        + Caret placement
        + Selection
+ Early avoid of zero length autoscroll during selection drag.
+ Optimised redraw to avoid nsfont_width when:
    + There's no selection at all.
    + We're on last part of line, and it's unselected.
+ Implemented WORD_LEFT and WORD_RIGHT keys (shift + cursor left/right)
+ Fixed UP and DOWN (cursor up/down) keys to handle non-monospace fonts.
  (Now based on 'x' offset on line, rather than character offset on line.)
+ Fixed PAGE_UP and PAGE_DOWN to scroll without moving the caret.
+ Fixed redraw bug in text selection edge case.
+ Changed textarea_replace_text and textarea_insert_text to return
  a byte delta for caret position changes.
+ Coordinate to text offset function handles global and viewport coords.
+ Many small improvements and tidying.
2013-03-17 22:06:48 +00:00
Michael Drake
c3f21572ed Add function to get the byte length of n characters in a utf8 string. 2013-03-17 22:01:42 +00:00
Michael Drake
c205378a8d Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-03-16 10:53:20 +00:00
John-Mark Bell
3801886aec Debounce style updates 2013-03-16 10:50:17 +00:00
John-Mark Bell
4136a4d64e Move public API to end 2013-03-16 10:33:28 +00:00
John-Mark Bell
6e5e5761fc Ensure a reference is taken on style nodes. 2013-03-16 01:00:06 +00:00
Michael Drake
2af4b5be01 Make textarea_get_caret private. 2013-03-13 11:23:07 +00:00
Vincent Sanders
95e726c7cc split sources lists out to their subdirectories as first step towards using core buildsystem 2013-03-11 17:53:52 +00:00
Michael Drake
41e4928e25 Fix pointer shape and status bar messages for textareas and their scrollbars. 2013-03-11 12:57:33 +00:00
Vincent Sanders
f3b515540e move javascript makefile 2013-03-11 11:09:47 +00:00
Ole Loots
fffaa149bc Correctly set initial size of the search area. 2013-03-11 01:16:37 +01:00
Ole Loots
939f078dd8 Fixed / Improved commandline URL handling.
- It's now possible to drag local files onto netsurf executable.
- Added better resource file logging (THING passes strange CWD)
2013-03-11 00:53:22 +01:00
Ole Loots
0ec72e3415 Removed toolbar 2013-03-11 00:52:54 +01:00
François Revol
f3c0b643b6 beos: Set the filename in the download file panel 2013-03-09 21:03:16 +01:00
Adrien Destugues - PulkoMandy
29f062e963 beos: Fix some cpp warnings 2013-03-09 20:51:22 +01:00
François Revol
e31007f6a7 C89 2013-03-09 20:44:25 +01:00
Chris Young
20e4bdadaf Support old picture.datatype 2013-03-09 15:29:30 +00:00
Michael Drake
490de208d0 Make autoscroll start at inside edge of border or scrollbar. 2013-03-06 21:31:20 +00:00
Michael Drake
c1628435f2 Fix min line width calc when an inline isn't to be wrapped in a block that allows wrap. 2013-03-06 18:39:38 +00:00
Michael Drake
e3cb0ba450 Pull scrollbar mouse handling out into helper function. 2013-03-06 15:41:51 +00:00
Michael Drake
5b7643634f Textarea sends caret hide msg if caret completely outside visible area. 2013-03-06 14:28:34 +00:00
Michael Drake
951a584705 Don't show caret if there's a selection. 2013-03-06 13:10:37 +00:00
Michael Drake
037beb44fb Pass caret clip rect out to front ends. (Nothing actually using them yet.) 2013-03-05 22:54:51 +00:00
Michael Drake
e8950dee22 Propagate native caret clip rect through core. 2013-03-05 22:54:51 +00:00
Daniel Silverstone
461d4576fb Unref the node in the callbacks 2013-03-05 22:53:55 +00:00
Daniel Silverstone
3f34408f77 Support ZSH and change behaviour for MAKE a little
Adds support for ZSH by shonky means, and also changes ns-make
to ns-make-libs, extends the script to count CPUs and use a -jX
and adds ns-make to call make with the given args and also the -jX.
2013-03-05 21:12:53 +00:00
Vincent Sanders
8770a2d774 add example environment script 2013-03-05 11:53:10 +00:00
Michael Drake
541523f962 Less ambiguous flag documentation comment. 2013-03-04 15:12:58 +00:00
Michael Drake
69d653f4dc Fix history. 2013-03-04 15:07:58 +00:00
Michael Drake
02f2cbec3f Pedantic wrap. 2013-03-04 15:07:43 +00:00
John-Mark Bell
6b9f7c3094 Use correct base URL for inline stylesheets 2013-02-27 03:55:48 +00:00
John-Mark Bell
cd3e073354 Fix logging 2013-02-27 03:11:30 +00:00
John-Mark Bell
97978e858b Use custom fetcher for inline CSS 2013-02-27 03:11:10 +00:00
Ole Loots
21cbb49a6b Fix toolbar flag setup. 2013-02-26 21:55:40 +01:00
Ole Loots
c4a8d47234 Removed unused variable. 2013-02-26 21:48:55 +01:00
John-Mark Bell
405fa12f8d Fix handling of inline stylesheets with @import 2013-02-26 09:14:32 +00:00
Vincent Sanders
a35e66ffa1 split out object handling from render/html.c 2013-02-25 18:24:04 +00:00
Vincent Sanders
4e7b4259a4 fix quirk stylesheet loading 2013-02-25 15:00:50 +00:00
Steve Fryatt
dd35da2cac Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-02-24 23:59:09 +00:00
Steve Fryatt
3c373994f9 Set Message_DataRequest length correctly. 2013-02-24 23:58:02 +00:00