Commit graph

232 commits

Author SHA1 Message Date
75a11896ae System/Libraries/Html/Renderer: Refactor grouped margin/padding into separate functions from @apply_css_properties_to_node 2025-04-27 17:37:21 -04:00
61fd349325 System/Libraries/Html/Renderer: Apply CSS distance values to node->margin, node->padding 2025-04-27 15:28:31 -04:00
2b0704ab79 System/Libraries/Html/Tokenizer: Change border from @css_area to @css_border 2025-04-27 14:31:54 -04:00
44c77212b8 System/Libraries/Css/Tokenizer: Add @css_border, @css_radius 2025-04-27 14:31:17 -04:00
a74a7bfa98 System/Libraries/Html/Tokenizer: Add CSS margin, border, padding to @html_dom_node 2025-04-27 13:53:57 -04:00
066b22de28 System/Libraries/Css/Tokenizer: Add @css_side, @css_area 2025-04-27 13:53:10 -04:00
e95911da46 System/Libraries/Html/Renderer: Refactor @render_node_list 2025-04-27 13:39:27 -04:00
70ee3cc99a System/Libraries/Json: Consolidate CAlloc/Free requests for @json_callable_array and @json_callable_object 2025-04-27 06:20:21 -04:00
a75b69face System/Libraries/Graphics2D: Consolidate CAlloc/Free requests for @callable_context2d 2025-04-27 06:08:44 -04:00
80f599a19a System/Libraries/Html/Renderer: Apply CSS distance types other than pixels to node width/height 2025-04-26 18:57:51 -04:00
49cb267474 System/Libraries/Html/Tokenizer: Add width/height DistanceType to @html_dom_node 2025-04-26 18:56:30 -04:00
6d384f81cd System/Libraries/Css/Tokenizer: Oopsie woopsie 2025-04-26 18:39:49 -04:00
dad03ba4eb System/Libraries/CSs/Tokenizer: Define CSS_DISTANCE types 2025-04-26 18:18:20 -04:00
e35d9978bb System/Libraries/Html/Renderer: Set initial CSS value for node width/height to undefined (-1) 2025-04-26 17:32:53 -04:00
ee2114876a System/Libraries/Html/Renderer: Move some element defaults to Default.css 2025-04-26 10:50:49 -04:00
79d73bdff3 Meta: Update Default.css 2025-04-26 10:49:40 -04:00
4d688e70dc System/Libraries/Html/Renderer: Allow :link pseudo-class to override text-decoration-color 2025-04-26 10:47:36 -04:00
9d9fb80aa9 System/Libraries/Html/Renderer: Set node->display and debugging values earlier 2025-04-26 10:31:11 -04:00
edc931d6c3 Meta: Update scripts/build-all 2025-04-25 20:03:32 -04:00
c486e4cb02 System/Libraries/Html/Renderer: Temporary hack for link styles until we implement pseudo-classes 2025-04-25 14:37:47 -04:00
500cc4d913 Meta: Add more CSS debugging info 2025-04-25 14:34:28 -04:00
91f8fd3fad System/Libraries/Css/Tokenizer: Bugfix for descendant combinators 2025-04-25 09:59:33 -04:00
dc14bc4dd8 System/Setup/Util: Add FifoU8Last() 2025-04-25 09:58:18 -04:00
e827f52c51 Meta: Add CSS debugging options 2025-04-24 21:14:54 -04:00
8bad367d08 System/Libraries/Html/Renderer: Parse rgb,rgba color tuples 2025-04-24 21:09:30 -04:00
0d2b51cc39 System/Libraries/Css/Tokenizer: Handle parentheses 2025-04-24 20:04:56 -04:00
0bf96d6429 Meta: Update Default.css 2025-04-24 15:20:19 -04:00
3bf6238aac System/Libraries/Html/Renderer: A whole bunch of CSS changes
We now handle simple and compound selectors, but not yet pseudo-classes
or (most) combinators.
2025-04-24 15:17:15 -04:00
fc2b4ba4e5 Everywhere: Live patch MAlloc/Free to use RMAlloc/RFree
To make MAlloc/Free operations consistent across multiple processors, we
use a dedicated task on core 5 to service the requests.
2025-04-24 15:11:46 -04:00
04a602bb3b Meta: Update debugging stuff 2025-04-23 10:27:21 -04:00
d9b835cea3 System/Libraries/Html/Renderer: Handle font-size pt values 2025-04-23 10:25:57 -04:00
ae408a4679 System/Libraries/Css/Tokenizer: Allow descendant combinator in matches 2025-04-23 10:07:19 -04:00
652396a18c System/Libraries/Html/Renderer: Apply CSS display rules in order 2025-04-23 09:22:38 -04:00
22d5ce4b4c Meta: Update Default.css 2025-04-22 15:45:55 -04:00
453d6f35a5 System/Libraries/Css+Html: Handle text-align: left 2025-04-22 15:45:39 -04:00
1cf0007b0b System/Libraries/Css+Html: Handle display: inline-block 2025-04-22 15:34:17 -04:00
49666d7ea9 Everywhere: Kill app_event_loop on window close 2025-04-21 19:57:19 -04:00
ce44a8db0f Include/Gui: Make @gui_event_loop() available as app_event_loop 2025-04-21 19:49:59 -04:00
d8fe2f0899 System/Libraries/Graphics2D+Widget: Use CAlloc2() 2025-04-21 19:49:25 -04:00
1b5635962f System/Core: Use CAlloc2() 2025-04-21 19:48:33 -04:00
9d774cfc23 System/Setup/Environment: Add CAlloc2(), MAlloc2() 2025-04-21 19:45:51 -04:00
ea724e0795 Meta: Bump QEMU smp cores to 6 2025-04-21 19:44:02 -04:00
e04b8e6fb4 System/Libraries/Graphics2D: Use Plot2D() for HLine2D() 2025-04-21 09:53:02 -04:00
75a2bb10c4 System/Libraries/Css+Html: Implement text-decoration-line: line-through 2025-04-21 09:31:00 -04:00
d723c7d9df System/FFI/TrueType: Reduce memory pool size from 32MB to 8MB
The maximum allocated memory by stbtt_RenderText() has never exceeded
2MB during testing. 8MB ought to be enough for anybody :^)
2025-04-20 10:09:58 -04:00
000cf3cea2 Settings/config.json: Use Liberation as default TrueType font family 2025-04-20 09:33:28 -04:00
39973f452d Meta: Suppress compiler warnings 2025-04-19 21:38:13 -04:00
a322c06850 Everywhere: Give stbtt its own 32MB static memory pool
At boot time, we preallocate 32MB of RAM to reuse for all malloc()
requests by stbtt_RenderText(), which should be more than enough for the
primary use case (browsing web pages).
2025-04-19 21:01:14 -04:00
b40820272f System/Setup/Environment+FFI/LibC: Increase calloc/malloc mem_tasks
Give LibC malloc() and calloc() an array of 16 mem_tasks each, for now.
We will probably be removing this, in favor of giving each non-HolyC
library its own static memory pool, as we will do with stb_truetype.h in
a forthcoming commit.
2025-04-19 20:33:30 -04:00
b7cab3b419 System/Libraries/Html/Renderer: Use renderer->task instead of erythros_mem_task where applicable 2025-04-19 16:28:14 -04:00