Commit graph

126 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
d56a092dde System/FFI/LibC: Use Round-robin mem_task selection for calloc 2025-04-19 16:26:09 -04:00
15926654f8 System/Core/Compositor: Show available TrueType fonts in system log 2025-04-19 16:07:17 -04:00
b9eb4cb874 System/Libraries/Graphics2D: Alloc c2d wrapper functions off of Adam task's code heap 2025-04-19 16:00:21 -04:00
9550f24f73 System/Core/Compositor: Set TrueType font defaults from global config 2025-04-19 14:34:14 -04:00
a15de6eb33 System/Libraries/Graphics2D: Update @get_truetype_text_width() to use @stbtt_GetTextWidth() 2025-04-19 14:18:15 -04:00
80f691385a System/Utilities/TrueType: Add @stbtt_GetTextWidth() 2025-04-19 14:17:46 -04:00
546fd54a62 System/Libraries/Graphics2D: Update @get_truetype_text_width() to include advance 2025-04-19 10:42:26 -04:00
78ba717732 System/Utilities/TrueType: Update stbtt_RenderText() API to include advance 2025-04-19 10:41:55 -04:00
33b795fa93 System/Libraries/String: Add StrLenI32() 2025-04-19 10:41:11 -04:00
c54cd6ea51 System: Use Settings/config.json for debug options 2025-04-19 08:13:58 -04:00
3448acac38 System/Setup/Environment: Remove duplicate erythros_mem_task 2025-04-19 07:54:42 -04:00
c214ba9552 Meta: clang-format 20 2025-04-19 07:54:18 -04:00
e7d8b456aa Everywhere: Update to clang-format 20 2025-04-19 07:31:54 -04:00
402d802d2f System/Libraries/Html/Renderer: Set text underline height to 2px 2025-04-16 19:43:18 -04:00