Vincent Sanders
c105738fa3
Change LOG() macro to be varadic
...
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.
The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.
A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Witold Filipczyk
befa5e6ed3
To avoid namespace conflicts with ncurses add NetSurf key prefix.
...
Adds a NetSurf key code prefix of NS_ to all key codes.
2015-03-27 09:36:19 +00:00
Michael Drake
555276b04a
Ensure line lengths cache is created initialised to zero.
2015-02-15 13:48:27 +00:00
Vincent Sanders
7c4c73f1b0
Desktop doxygen fixes
2014-11-09 21:49:33 +00:00
Vincent Sanders
1097cc40b4
remove unecessary browser.h include from core headers
2014-10-17 12:21:52 +01:00
Vincent Sanders
d06df231bc
Update the core to use the split operations table headers
...
Second in the series to decouple the core API usage from the frontends.
2014-10-16 22:33:43 +01:00
Vincent Sanders
17be8cf216
Put the font operations table alongside all the other core API
...
The netsurf core is driven from numerous operation tables most of
which are now set through a common netsurf_register() interface. The
font and plotting interfaces are currently separate and unlike all the
other operation tables are modified for differing contexts.
This change moves the font operations alongside all the other
operations table and remove unnecessary interaction with the renderers
font internals. Further this also removes the need for css internals
to be visible in frontends.
2014-10-13 11:56:31 +01:00
Michael Drake
f58a2580e0
Fix textarea wrap bug.
...
Was comparing against the current start line length, to decide if it
needed redrawing, without taking into account that old start line
might have been longer.
2014-09-27 18:58:37 +01:00
Michael Drake
f95b9d2eb3
Fix a couple of comment typos.
2014-09-19 11:10:43 +01:00
Michael Drake
1878bc88a9
Improve comments and simplify code.
2014-09-18 16:00:31 +01:00
Michael Drake
dcf49c7341
Improve textarea layout comments to explain the non-obvious bits better.
2014-09-18 16:00:31 +01:00
Michael Drake
2dc8459c84
Improve comment.
2014-09-18 16:00:30 +01:00
Michael Drake
87c5753d49
Fix missing doxygen parameter comment.
2014-09-18 16:00:30 +01:00
Achal-Aggarwal
763825e597
Fixes #2101 , evaluation of text field and textarea line height.
2014-03-31 01:53:06 +05:30
Michael Drake
b16cfd2d6e
Fix #0002097 , with thanks to Achal-Aggarwal for tracking this down.
2014-03-27 21:43:19 +00:00
Michael Drake
143f28572a
Fix redraw when selections are deleted.
2014-02-17 12:15:08 +00:00
Michael Drake
aa380ed47a
More scaled rendering improvements. Partial redraws of scaled textareas can't work atm, since neither the textarea nor content is aware of scale.
2014-01-21 14:37:46 +00:00
Michael Drake
3f3b64bf22
Fix scaled rendering clip rect bottom calculation.
2014-01-21 11:13:36 +00:00
Vincent Sanders
bd065d4a43
split browser gui operations up
2014-01-15 19:37:05 +00:00
Vincent Sanders
68eaec5cb4
complete move of remaining core gui functions
2014-01-15 12:28:55 +00:00
Vincent Sanders
0075eab194
move remaining gui operations to table
2014-01-14 23:31:54 +00:00
Michael Drake
838359194e
Return message to client when textarea is modified.
2014-01-04 14:48:58 +00:00
Michael Drake
640bb77330
Dodge Coverity scan issue.
2013-10-23 11:16:34 +01:00
Michael Drake
0c4f32fb1d
Make undo and redo share common implementation.
2013-10-01 18:29:22 +01:00
Michael Drake
5809bcefa6
Wipe undo buffer on textarea_set_text.
2013-10-01 14:03:02 +01:00
Michael Drake
3bdc61a131
Ensure cut can be undone.
2013-10-01 13:54:34 +01:00
Michael Drake
6a4601c3ce
Implement textarea undo and redo.
2013-10-01 13:30:20 +01:00
Michael Drake
308a24e661
Start implementing undo/redo. For now it just records changes, the actual undo/redo handling is not yet done.
2013-09-30 21:38:41 +01:00
Michael Drake
b96222d857
We return client data, not node.
2013-09-14 23:22:13 +01:00
Michael Drake
9c855df691
Remove dead assignment.
2013-09-05 12:01:13 +01:00
Michael Drake
2fce8cccbc
Remove dead assignement.
2013-09-05 11:58:49 +01:00
Michael Drake
3529d39759
Don't show caret when scrolling a textarea that hasn't been given focus.
2013-03-27 13:46:57 +00:00
Michael Drake
e2bcc5f5eb
Tidy up pointer beyond scrollbars.
2013-03-27 11:43:10 +00:00
Michael Drake
9a73da6347
Reduce multi-line textarea a bit more. When redrawing only one line, don't redraw unchanged text at the start of the line.
2013-03-26 14:07:08 +00:00
Michael Drake
0bb9543293
Further reduce redraw region for multi-line textareas when editing.
2013-03-26 12:54:19 +00:00
Michael Drake
53962009da
Trivial redraw optimisation for multiline textareas. Only redraw the line that was changed and below.
2013-03-25 12:37:18 +00:00
Michael Drake
cc4411c0c7
Remove some spaces.
2013-03-25 12:03:53 +00:00
Michael Drake
70fbca3606
Reduce redraw area for selection set/change/clear.
2013-03-22 18:14:42 +00:00
Michael Drake
b603cafbaa
Move line start calc into reflow handler.
2013-03-22 18:14:42 +00:00
Michael Drake
ad53da023d
Optimise redraw of single line textarea. When single line textarea is unscrolled, only the changed area is redrawn after edits.
2013-03-21 18:47:38 +00:00
Michael Drake
948f2dbed6
Split reflow into two functions for single or multi line textareas.
2013-03-21 14:15:36 +00:00
Michael Drake
8e360ff040
Robust detection of scroll changes.
2013-03-20 19:52:10 +00:00
Michael Drake
c568a9626b
Avoid double redraw when edit causes scroll.
2013-03-20 19:24:53 +00:00
Michael Drake
50efd110b8
Use cached line length to avoid some nsfont_width calls for selection rendering in redraw.
2013-03-20 18:09:52 +00:00
Michael Drake
3403891f63
Avoid redraw of scrollbars when they've not changed.
2013-03-20 17:53:38 +00:00
Michael Drake
71392160d0
Cache line widths. Fixes scrollbar issue introduced with partial reflow enablement. Will also be used for future redraw optimisations.
2013-03-20 17:32:18 +00:00
Michael Drake
8cfa964cdf
Start reflow on line before change in text, rather than always reflowing the entire textarea.
2013-03-20 12:41:06 +00:00
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