Andreas Kling
15f3e64862
LibHTML: Rename "style_properties" to "style" everywhere
2019-10-07 10:56:44 +02:00
Andreas Kling
f52f2736e1
LibHTML: Add is<ElementType> and to<ElementType> helper functions
...
These will help us write node-type-aware template functions.
2019-10-06 20:38:26 +02:00
Andreas Kling
f150134de9
LibHTML: Make Node::create_layout_node() virtual
...
Instead of branching on the Node type, let subclasses decide how their
layout nodes get constructed.
This will allow elements to create custom layout nodes if they want.
2019-10-05 23:29:01 +02:00
Andreas Kling
0c6af2d5b4
LibHTML: Add Node::text_content()
...
This returns a String built from all of a Node's text descendants,
including itself.
2019-09-29 16:23:09 +02:00
Andreas Kling
1b8509a0c9
LibHTML: Make sure every DOM Node belongs to a Document
2019-09-29 11:43:07 +02:00
Andreas Kling
fb4702dd49
LibHTML: Add virtual Node::tag_name()
...
This is analogous to the DOM's Node.tagName and makes it easy to ask
"hey, what kinda thing is this Node?"
2019-09-28 22:59:16 +02:00
Andreas Kling
73fdbba59c
AK: Rename <AK/AKString.h> to <AK/String.h>
...
This was a workaround to be able to build on case-insensitive file
systems where it might get confused about <string.h> vs <String.h>.
Let's just not support building that way, so String.h can have an
objectively nicer name. :^)
2019-09-06 15:36:54 +02:00
Andreas Kling
04b9dc2d30
Libraries: Create top level directory for libraries.
...
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00