Witold Filipczyk
21187f88c8
[mujs] element.offsetLeft
2024-01-27 15:04:30 +01:00
Witold Filipczyk
8ec6ca70fe
[spidermonkey] element.offsetParent (parentNode)
2024-01-27 14:49:54 +01:00
Witold Filipczyk
b61c51ed43
[quickjs] element.offsetParent
2024-01-27 14:45:23 +01:00
Witold Filipczyk
62d21a222e
[mujs] element.offsetParent
...
For now the same as parentNode.
2024-01-27 14:41:54 +01:00
Witold Filipczyk
8238393479
[spidermonkey] element.clientWidth
2024-01-27 14:20:29 +01:00
Witold Filipczyk
bc37d44d52
[quickjs] element.clientWidth
2024-01-27 14:16:48 +01:00
Witold Filipczyk
82dae118f0
[mujs] element.clientWidth
2024-01-27 14:16:34 +01:00
Witold Filipczyk
d8007fafaf
[spidermonkey] element.clientHeight
2024-01-27 14:09:24 +01:00
Witold Filipczyk
2800597913
[quickjs] element.clientHeight
2024-01-27 14:02:13 +01:00
Witold Filipczyk
e4b4586780
[mujs] element.clientHeight
2024-01-27 13:54:07 +01:00
Witold Filipczyk
84660b694d
[node] get_element -> get_element_rect
2024-01-27 13:53:24 +01:00
Witold Filipczyk
06ffcc8085
[spidermonkey] cell_width and cell_height in screen
2024-01-27 12:34:03 +01:00
Witold Filipczyk
89955cc13a
[quickjs] cell_width and cell_height
2024-01-27 12:14:01 +01:00
Witold Filipczyk
bc13ff2e1a
[mujs] cell_height and cell_width in screen instead of hardcoded 16 and 8.
2024-01-27 12:08:23 +01:00
Witold Filipczyk
129683d70f
[spidermonkey] element.clientLeft and element.clientTop
2024-01-26 21:31:13 +01:00
Witold Filipczyk
a72db310b4
[quickjs] element.clientLeft and element.clientTop
2024-01-26 21:24:13 +01:00
Witold Filipczyk
81c692e6b8
[mujs] element.clientLeft and element.clientTop
...
They always return 0.
2024-01-26 21:17:30 +01:00
Witold Filipczyk
9e743f0e80
[renderer] Reorder instructions
2024-01-26 19:02:26 +01:00
Witold Filipczyk
9e3d874577
[document] Added function scan document
...
This function must calculate dimensions of nodes in document.
Every node has a rectangle. x0,y0 is the left up corner, x1,y1 - the right bottom.
In theory every child of given node is contained in this rectangle.
2024-01-26 18:43:33 +01:00
Witold Filipczyk
5c8b62247a
[screen] Test commit. Added element_offset to struct screen_char
2024-01-21 17:02:09 +01:00
Witold Filipczyk
937f6b415e
[ecmascript] Changed declarations of ecmascript_timeout
...
Also free functions in quickjs version.
2024-01-20 15:56:23 +01:00
Witold Filipczyk
d34ae1371d
[ecmascript] clearInterval and setInterval
...
Changed return type of ecmascript_set_timeout.
Now it is pointer to struct ecmascript_timeout.
2024-01-19 22:10:02 +01:00
Witold Filipczyk
e77ff5aa8b
[quickjs] window.getComputedStyle
2024-01-19 17:17:11 +01:00
Witold Filipczyk
dd87474f06
[mujs] window.getComputedStyle
2024-01-18 20:53:17 +01:00
Witold Filipczyk
797124fc2a
[spidermonkey] window.getComputedStyle
...
It is fake, it returns "0" for "marginTop", "marginLeft" and "marginRight".
2024-01-18 18:41:20 +01:00
Witold Filipczyk
d393a06f07
[mujs] document.defaultView
2024-01-17 17:12:18 +01:00
Witold Filipczyk
ebb41e9c67
[quickjs] document.defaultView
2024-01-17 17:05:36 +01:00
Witold Filipczyk
5297063bbe
[spidermonkey] document.defaultView
2024-01-17 16:55:52 +01:00
Witold Filipczyk
addc4a7c43
[quickjs] location.replace
2024-01-16 18:51:48 +01:00
Witold Filipczyk
4aa0ff661f
[mujs] location.replace
2024-01-16 18:45:44 +01:00
Witold Filipczyk
2d4d46f939
[spidermonkey] location.replace
...
I guess there is something wrong with this function.
2024-01-16 18:39:00 +01:00
Witold Filipczyk
afb2a7da28
[quickjs] location.assign
2024-01-16 17:57:45 +01:00
Witold Filipczyk
65998ab36b
[mujs] location.assign
2024-01-16 17:47:04 +01:00
Witold Filipczyk
ebaceedab2
[spidermonkey] location.assign
2024-01-16 17:38:26 +01:00
Witold Filipczyk
103669e825
[html5] Also add NAV element. Refs #282
2024-01-07 20:11:00 +01:00
Witold Filipczyk
94cfc49ce1
[win32] Every mouse DOWN followed by UP
...
It is rather a workaround, but works for the right button click.
2024-01-07 16:18:54 +01:00
Witold Filipczyk
ef80897185
[html5] Stubs for html_main and html_article. Refs #282
2024-01-07 11:43:18 +01:00
Witold Filipczyk
69edab0036
[libcss] initialize unit_len_ctx with zeroes
2024-01-07 11:41:52 +01:00
Witold Filipczyk
a96b9fba1f
[win32] middle and right buttons were swapped
...
Right-click menu still not functional.
It appears, but disaappers immediately, and "Go back" action is choosen.
2024-01-06 15:51:44 +01:00
Witold Filipczyk
389df54184
Revert "[head] addcrlf". Refs #281
...
This reverts commit 90d4f17031
.
2024-01-06 09:33:40 +01:00
Witold Filipczyk
0b7cdab108
[terminal] Do not draw the right bottom cell
...
For wineconsole.
2024-01-05 19:29:58 +01:00
Witold Filipczyk
6642ebe509
[win32] Some changes in mouse handling
...
It is a step forward. There some problems with wheel, the right mouse button.
2024-01-04 18:29:31 +01:00
Witold Filipczyk
84f6a08f83
[kbd] Test commit. Change <= 0 to < 0
...
I'm trying to debug mouse issues.
2024-01-03 21:37:07 +01:00
Witold Filipczyk
2fdb04a6ab
[libcss] bump libcss to 0.9.2 and libdom to 0.4.2
...
Needs some tweaks. Code is compilable at least.
2024-01-01 17:47:59 +01:00
Witold Filipczyk
f89705df74
[spidermonkey] Bump mozjs dependency to mozjs-115
2024-01-01 13:24:32 +01:00
Witold Filipczyk
378842a349
[quickjs] C only
...
There are some bugs left.
2023-12-31 16:08:35 +01:00
Witold Filipczyk
4c7364c14e
[mujs] Code rewritten to C
...
Likely some bugs were introduced here.
elinks with mujs suppport can be built by tcc.
2023-12-30 21:42:31 +01:00
Witold Filipczyk
8b5cb79485
[ecmascript] Copy of ecmascript.cpp as ecmascript.c
2023-12-29 20:53:53 +01:00
Witold Filipczyk
3f3a38145a
[ecmascript] New try to compile code by C compiler
...
ecmascript-c.c is compilable by C compilers and ecmascript-c.cpp
which includes ecmascript-c.c is compilable by C++ compilers.
2023-12-29 20:42:21 +01:00
Witold Filipczyk
c473ce5522
[quickjs] quickjs.cpp -> quickjs.c
2023-12-29 19:27:26 +01:00
Witold Filipczyk
6ad38f3814
[mujs] mujs.cpp -> mujs.c
2023-12-29 19:23:50 +01:00
Witold Filipczyk
7de0146ded
[ecmascript] localstorage-db.cpp -> localstorage-db.c
...
This code is pure C. There are some memory leaks.
They will be addressed later.
2023-12-29 18:46:19 +01:00
Witold Filipczyk
78483386c2
[ecmascript] timer.cpp -> timer.c
...
hash instead of map.
The goal is to get C++ free code for mujs and quickjs.
2023-12-29 18:29:13 +01:00
Witold Filipczyk
447c452339
[download] No need to double check
2023-12-28 13:03:45 +01:00
Witold Filipczyk
fd5e164b8f
[download] memory leaks
2023-12-28 13:01:01 +01:00
Witold Filipczyk
204234b921
[memcount] libevent malloc, realloc, free replacement functions
2023-12-26 19:09:32 +01:00
Witold Filipczyk
b1bf9e8dba
[libevent] Add SOCK_SHIFT for curl and libevent
2023-12-26 17:04:24 +01:00
Witold Filipczyk
1f4ca1445d
[libevent] include event2/event.h instead of event.h
2023-12-26 15:53:22 +01:00
Witold Filipczyk
5211b2d8a1
[curl] fifo_event was unused
2023-12-26 14:57:25 +01:00
Witold Filipczyk
8d0054041b
[select] Another try
...
Set fields of timeout manually.
2023-12-20 20:31:13 +01:00
Witold Filipczyk
f91d214820
[select] This code is problematic.
...
EINVAL on OpenBSD/i386.
2023-12-20 18:06:20 +01:00
Witold Filipczyk
6c32ce3c61
[gettext] Let it work also on Windows
...
When elinks.exe is located in the src subdirectory,
.gmo files are read from the po subdirectory.
2023-12-15 10:36:17 +01:00
Witold Filipczyk
93e9ac1b4c
[gettext] Revision 1 is also valid
...
At least I think so.
2023-12-14 21:45:08 +01:00
Witold Filipczyk
dee0b28f97
[spidermonkey] meson.build also was missing
2023-12-10 16:42:32 +01:00
Witold Filipczyk
6f11b9be8b
[windows] Fixes for FSP (send and recv)
2023-12-09 19:57:08 +01:00
Witold Filipczyk
2ace5374c8
[cast] cast to intptr_t to silence compiler
2023-12-08 11:14:27 +01:00
Witold Filipczyk
b894447af1
[hash] drop const for key
2023-12-08 11:11:06 +01:00
Witold Filipczyk
0fbec94494
[ssl] Change order of includes
...
There was compilation failure on win32.
2023-12-07 12:52:34 +01:00
Witold Filipczyk
43dd4f38a0
[c++] undef max and min
...
There were different definitions of them in sys/cdefs.h
2023-12-07 11:33:39 +01:00
Witold Filipczyk
425d779e15
[terminal] Avoid division by zero. Refs #276
2023-12-07 08:21:13 +01:00
Witold Filipczyk
e538a9f827
[terminal] use fd not 1 for ioctl
2023-12-06 08:21:29 +01:00
Witold Filipczyk
b580d78ba3
[spidermonkey] Makefile was missing
2023-12-04 14:21:21 +01:00
Witold Filipczyk
8badb62c34
[document] I did not test it, but I guess it must be & prepended here
2023-11-29 16:15:34 +01:00
Witold Filipczyk
a5d2119dbf
[map] Reimplemented map as hash
...
Maybe it is slower, but C only.
2023-11-28 19:55:37 +01:00
Witold Filipczyk
e0909362eb
[view] this include is only for ecmascript
2023-11-28 15:47:53 +01:00
Witold Filipczyk
3bdb576929
[viewer] unneeded include
2023-11-28 15:45:28 +01:00
Witold Filipczyk
899304d6ef
[viewer] form.cpp -> form.c
2023-11-28 15:41:48 +01:00
Witold Filipczyk
c14989ab91
[viewer] link.cpp -> link.c
...
Moved some code to ecmascript-c.cpp
2023-11-28 15:33:54 +01:00
Witold Filipczyk
88d836355d
[viewer] This include was not needed
2023-11-28 15:15:56 +01:00
Witold Filipczyk
7e48d22f51
[viewer] view.cpp -> view.c
2023-11-27 19:14:39 +01:00
Witold Filipczyk
bbf902f426
[viewer] This include was not needed
2023-11-27 18:52:19 +01:00
Witold Filipczyk
8f431a126f
[viewer] vs.cpp -> vs.c
2023-11-27 18:34:15 +01:00
Witold Filipczyk
9dedc5779b
[dcument] Compilation fix
2023-11-27 18:33:44 +01:00
Witold Filipczyk
bfd3f01d35
[document] document.cpp -> document.c
...
Moved some code to ecmascript-c.cpp.
2023-11-27 16:38:58 +01:00
Witold Filipczyk
a07f339fd1
[document] get rid of C++ list.
...
In first place it was implemented in C++ because of memory corruption problems.
2023-11-27 16:26:09 +01:00
Witold Filipczyk
4ecb3fa8bb
[main] timer.cpp -> timer.c
2023-11-27 15:08:20 +01:00
Witold Filipczyk
424466740c
[document] renderer.cpp -> renderer.c
...
Moved ecmascript code to ecmascript-c.cpp
2023-11-26 19:47:59 +01:00
Witold Filipczyk
bb137d12e9
[download] download.cpp -> download.c
...
elinks's hash instead of C++ map.
2023-11-26 19:09:19 +01:00
Witold Filipczyk
db99981ec5
[terminal] Make a copy of filename for hash
2023-11-26 19:00:04 +01:00
Witold Filipczyk
49285684ea
[quickjs] Makefile
2023-11-25 18:43:25 +01:00
Witold Filipczyk
0d4f83e94a
[quickjs] include
2023-11-25 18:29:32 +01:00
Witold Filipczyk
25027fca0a
[dos] doc.cpp -> dos.c
2023-11-25 18:23:18 +01:00
Witold Filipczyk
3d3e61a025
[quickjs] Missing file
2023-11-25 18:21:16 +01:00
Witold Filipczyk
1219e479b5
[session] session.cpp -> session.c
2023-11-25 18:15:24 +01:00
Witold Filipczyk
d606aca351
[terminal] terminal.cpp -> terminal.c
...
hash from util instead of C++ map
2023-11-25 18:08:46 +01:00
Witold Filipczyk
970245b28a
[protocol] protocol.cpp -> protocol.c
2023-11-25 17:06:11 +01:00
Witold Filipczyk
f70c1dc51b
[main] module.cpp -> module.c
2023-11-25 14:30:05 +01:00
Witold Filipczyk
009d09ba52
[viewer] action.cpp -> action.c
2023-11-25 14:13:10 +01:00
Witold Filipczyk
fe8d8d6af0
[cache] Renamed cache.cpp -> cache.c
2023-11-25 13:29:23 +01:00
Witold Filipczyk
7acee28e2d
[dialogs] Rename info.cpp to info.c
...
Long term goal is to able compile by only C compiler
if ecmascript is not compiled-in.
2023-11-25 13:11:21 +01:00