ladybird/Libraries
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
..
LibAudio SoundPlayer: Changed some small cosmetic things 2019-11-05 19:50:11 +01:00
LibC Kernel: Implement O_DIRECT open() flag to bypass disk caches 2019-11-05 19:35:12 +01:00
LibCore LibCore+LibGUI: Allow inserting a CObject/GWidget before another 2019-11-05 20:41:27 +01:00
LibDraw POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibGUI LibCore+LibGUI: Allow inserting a CObject/GWidget before another 2019-11-05 20:41:27 +01:00
LibHTML LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00
LibIPC POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibM LibM: Add back ampsin() since it was still used by tan() 2019-11-03 09:59:44 +01:00
LibMarkdown LibMarkdown: Include a <head> element when rendering MD to HTML 2019-10-30 20:28:44 +01:00
LibPCIDB POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibThread POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibVT LibVT: Make inject_string() a public API so clients can use it 2019-10-22 22:14:36 +02:00