1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-26 00:45:06 +00:00
Commit graph

11 commits

Author SHA1 Message Date
Andreas Kling
ffcbe8f0de LibHTML: Start building the style tree.
Walk the DOM and construct a parallel style tree that points back to the DOM
and has the relevant CSS property values hanging off of them.

The values are picked based on naive selector matching. There's no cascade
or specificity taken into account yet.
2019-06-28 21:25:44 +02:00
Andreas Kling
e971f5604c LibHTML: Implement some very simple selector matching.
We walk the entire DOM and check all selectors against all elements. Only
id, class and tag name are checked right now. There's no ancestor stack
or compound selectors. All in good time :^)
2019-06-27 20:40:21 +02:00
Andreas Kling
7cc9ce8380 LibHTML: Use NonnullRefPtrVector in LibHTML. 2019-06-27 12:16:20 +02:00
Andreas Kling
6469d7f043 LibHTML: Flesh out the code to dump a StyleSheet object graph. 2019-06-25 06:31:47 +02:00
Andreas Kling
891e668e35 LibHTML: Add an empty CSS parser. 2019-06-21 20:55:41 +02:00
Andreas Kling
fec098b5cd LibHTML: Give LayoutNodes a rect.
Also improve the layout tree dump format somewhat.
2019-06-16 12:26:24 +02:00
Andreas Kling
1f51c2b7da LibHTML: Create some subdirectories. 2019-06-15 23:41:15 +02:00
Andreas Kling
0522a8f71c LibHTML: Collapse all-whitespace LayoutText into a single ' ' char. 2019-06-15 23:18:00 +02:00
Andreas Kling
8a0e21b22b LibHTML: Start fleshing out a basic layout tree. 2019-06-15 22:49:44 +02:00
Andreas Kling
f8a86b5164 LibHTML: Basic element attribute parsing. 2019-06-15 21:08:36 +02:00
Andreas Kling
a67e823838 LibHTML: Start working on a simple HTML library.
I'd like to have rich text, and we might as well use HTML for that. :^)
2019-06-15 18:55:47 +02:00