1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00
serenity/Libraries/LibHTML
Andreas Kling f3f0b08d43 LibHTML: Build some foundation for text selection
Add LayoutPosition and LayoutRange classes. The layout tree root node
now has a selection() LayoutRange. It's essentially a start and end
LayoutPosition.

A LayoutPosition is a LayoutNode, and an optional index into that node.
The index is only relevant for text nodes, where it's the character
index into the rendered text.

HtmlView now updates the selection start/end of the LayoutDocument when
clicking and dragging with the left mouse button.

We don't paint the selection yet, and there's no way to copy what's
selected. It only exists as a LayoutRange.
2019-11-05 22:13:26 +01:00
..
CSS LibHTML: Make <header> and <footer> be "display: block" by default 2019-10-26 15:40:51 +02:00
DOM LibHTML: Add a convenient way to get from any layout node to the root 2019-11-04 20:45:47 +01:00
Layout LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00
Parser LibHTML: The CSS parser should tolerate whitespace-only stylesheets 2019-10-20 12:55:55 +02:00
Scripts POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
Dump.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
Dump.h LibHTML: Hide debugging output unless HTML_DEBUG is defined 2019-09-28 18:29:42 +02:00
FontCache.cpp LibHTML: Add a simple font cache 2019-10-18 23:06:03 +02:00
FontCache.h LibHTML: Add a simple font cache 2019-10-18 23:06:03 +02:00
Frame.cpp LibHTML: Implement the <blink> element 2019-10-09 21:25:29 +02:00
Frame.h LibHTML: Make TreeNode inherit from Weakable by default 2019-10-19 09:42:20 +02:00
HtmlView.cpp LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00
HtmlView.h LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00
install.sh LibHTML: Add install.sh 2019-09-28 18:29:42 +02:00
Makefile Userland+LibHTML: Add the html command 2019-09-28 18:29:42 +02:00
Makefile.host AK: Remove empty files JsonArray.cpp and JsonObject.cpp 2019-10-01 11:24:54 +02:00
Makefile.shared LibHTML: Add a simple font cache 2019-10-18 23:06:03 +02:00
RenderingContext.h LibHTML: Add the currently visible viewport rect to RenderingContext 2019-10-15 21:52:01 +02:00
ResourceLoader.cpp LibHTML+Browser: Show the number of pending resource loads 2019-10-10 22:07:08 +02:00
ResourceLoader.h LibHTML+Browser: Show the number of pending resource loads 2019-10-10 22:07:08 +02:00
TreeNode.h LibHTML: Add TreeNode::next_in_pre_order() 2019-11-05 18:36:06 +01:00