Vincent Sanders
83ebc3bb8e
split counter style handling out of the box code
2021-01-31 10:49:13 +00:00
Vincent Sanders
4455f1b712
implement list marker counting for roman, latin and greek
2021-01-30 23:00:44 +00:00
Vincent Sanders
652078f8cf
fix erronenous child variable assignment
2020-07-12 18:49:47 +01:00
Vincent Sanders
313e5cabba
ensure the html layout is present for text selection
...
The text selection operations can be called regardless
of when the html layout box tree is actually
available (e.g. if it is still loading when opened)
This change ensures the layout box tree is available before
attempting to traverse it for a selection operation.
2020-07-12 13:47:52 +01:00
Vincent Sanders
402ad02ff5
remove unecessary use of gui_internal in content
2020-06-25 14:37:57 +01:00
Vincent Sanders
82bb483964
remove unesessary header use in protected content
2020-06-25 12:33:52 +01:00
Vincent Sanders
ebe1b05114
improve desktop text search header usage
...
remove unecessary inclusion of desktop search header in content
header which has knock on effect of not having ctype or string
system headers dragged in unecessarily.
Futher this highlighted use of ctype API where internal ascii
processing ought to be used.
2020-06-24 23:49:59 +01:00
Vincent Sanders
2352bea153
use the ascii locale safe handling instead of ctype API
2020-06-24 23:34:09 +01:00
Vincent Sanders
b182cc7617
remove box handling from browser window
2020-05-25 20:37:06 +01:00
Vincent Sanders
8673b035f0
commit a neatness in teh html content handler text selection code
2020-05-24 11:19:10 +01:00
Vincent Sanders
5ce8f0baf1
make text selection context an opaque interface
2020-05-23 23:33:52 +01:00
Vincent Sanders
6108d210d5
remove all direct access to selection structure
2020-05-23 23:00:08 +01:00
Vincent Sanders
1161029d29
remove unecessary content handler specific selection creation
2020-05-23 23:00:08 +01:00
Vincent Sanders
2ea577c47e
remove unused is_html parameter to text selection routines
2020-05-23 23:00:08 +01:00
Vincent Sanders
a8c540ea59
move content specific selection end to content handlers
2020-05-23 23:00:08 +01:00
Vincent Sanders
cfe57002fe
remove unused css length usage in selection
2020-05-23 23:00:08 +01:00
Vincent Sanders
e65e41e2d6
move content handler specific selection copying into handlers
2020-05-23 23:00:08 +01:00
Vincent Sanders
36b9262e14
split selection redraw into content handler specific implementations
2020-05-23 23:00:08 +01:00
Daniel Silverstone
d8f083bf52
Canvas: Move bitmap management to the 2D render context
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-23 10:15:30 +01:00
Daniel Silverstone
804faacf82
html: Handle canvas width/height stated explicitly in px
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 20:26:51 +01:00
Daniel Silverstone
4d89108072
html: Don't both building a bitmap if we're not rendering it
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 16:03:48 +01:00
Daniel Silverstone
334b498d5c
html: Handle canvas in redraw
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 16:00:46 +01:00
Daniel Silverstone
937894d654
html: set up canvas box properly
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 16:00:20 +01:00
Daniel Silverstone
b39f418bca
html: Add canvas node handling in dom_event
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 15:59:47 +01:00
Michael Drake
c2f73310d0
Squash warning: "_GNU_SOURCE" redefined.
...
The utils/config.h header handles this.
2020-05-22 10:30:05 +01:00
Vincent Sanders
4cef0f955c
pass the browser window to selection click handler
...
this means the content handlers do not have to provide a separate
method to extract their browser window and it can simply be
passed in.
2020-05-20 23:17:48 +01:00
Vincent Sanders
f4e50b45c8
make free text search content handler agnostic
2020-05-12 23:22:05 +01:00
Vincent Sanders
3c7538a9f9
hoist common text search out of content handlers
2020-05-12 21:09:41 +01:00
Vincent Sanders
a8596a80ae
move free text search general interface to content.
...
needs additional cleanup to call content through handler table to
perform searches.
2020-05-10 23:22:29 +01:00
Vincent Sanders
ab952e0634
improve content header usage
2020-05-07 20:55:44 +01:00
Vincent Sanders
5f8b1497e1
clean up content headers and documentation comments
...
pure formatting and documentation changes, no code difference
2020-05-06 23:38:50 +01:00
Vincent Sanders
c2f9bcac19
remove junk content_add_error api
2020-05-06 22:54:52 +01:00
Vincent Sanders
d9a593c984
split dom event handling into separate module
2020-05-05 20:05:37 +01:00
Vincent Sanders
1d8542166c
Clean up html content dom element insertion processing
2020-05-05 11:14:26 +01:00
Vincent Sanders
82559d2ff4
remove the forward references in html form internal handling
2020-05-03 21:56:51 +01:00
Vincent Sanders
2a0f552524
remove forward delcarations and clean up formatting in html table layout processing
2020-05-03 19:02:47 +01:00
Vincent Sanders
a40727cd29
Improve hsndling of html content objects with no associated box
2020-05-03 17:00:04 +01:00
Vincent Sanders
fcd8d50359
remove unecessary include
2020-05-03 10:06:43 +01:00
Vincent Sanders
a706c69bf4
improve html content handler private headers
2020-05-02 20:47:53 +01:00
Vincent Sanders
19cd5cb3b3
add missing include
2020-05-01 21:36:50 +01:00
Vincent Sanders
986d4d5f82
put html content handler object interface into its own header
2020-05-01 21:25:23 +01:00
Vincent Sanders
479d0cb29a
remove unused available width and height parameters from html_fecth_object()
2020-04-30 22:16:41 +01:00
Vincent Sanders
6b6bbad2b7
remove unecessary filename prefixes in the html content handler
2020-04-30 21:59:21 +01:00
Vincent Sanders
e8d0ba15ad
split html box processing code
...
reduce the module size of the html box handling code by
splitting into smaller sections.
No functional code change.
2020-04-29 20:37:42 +01:00
Vincent Sanders
a64261c3bd
Initial special canvas handling to not show fallback
2020-04-28 23:35:00 +01:00
Vincent Sanders
c0ef8ce645
clean up html box, no functionality change just cosmetic
...
split up the html box headers
tidy up the documentation comments
avoid forward declarations in normalisation implementation
2020-04-28 23:30:20 +01:00
Vincent Sanders
f6883d6761
use dom type interface instead of strcasecmp
2020-04-26 17:31:15 +01:00
Vincent Sanders
b577de7c5b
remove forward declarations
...
reorder module to remove need for forward function declarations.
remove unecessary and confusing parameter macros
2020-04-26 11:21:02 +01:00
Vincent Sanders
084861a31b
Implement javascript scheme url script https://wiki.whatwg.org/wiki/URL_schemes
2020-04-17 22:43:44 +01:00
Vincent Sanders
e2f34232a2
refactor html mouse action
...
This reduces the source complexity of the html_mouse_action()
previously this was a single function of several thousand
lines with over 30 local variables allocated on the stack.
Variables are now mostly held in a single static structure which
drasticaly reduces the size of stack frame required and improves
lookup locality.
The generated code does cause two additional function calls as the
compiler avoids inlining the sub functions. The optimiser seems to
produce somewhat better code within the sub functions.
In the final analysis there appears to be no significant performance
loss or gain with this change, just more readable source.
2020-04-13 12:09:07 +01:00