1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-20 14:21:00 +00:00
serenity/Libraries/LibWeb
Andreas Kling 706fc3d1aa LibWeb: Paint the text selection :^)
Text selection currently works at the LayoutNode level. The root of the
layout tree has a LayoutRange selection() which in turn has two
LayoutPosition objects: start() and end().

A LayoutPosition is a LayoutNode + a text offset into that node.

We handle the selection painting in LayoutText::paint_fragment(), after
the normal painting is finished. The basic mechanism is that each
LayoutFragment is queried for its selection_rect(), and if a non-empty
rect is returned, we clip to it and paint the text once more.
2020-06-29 00:39:51 +02:00
..
Bindings LibWeb: Make DOM timers cancellable and stop leaking them 2020-06-27 20:02:04 +02:00
CodeGenerators LibWeb: Make wrapper factory functions take JS::GlobalObject& 2020-06-23 16:57:39 +02:00
CSS LibWeb: Give the <blockquote> element some margins in the UA style 2020-06-28 15:26:05 +02:00
DOM LibWeb: Turn <td width> into a CSS width property 2020-06-28 14:30:37 +02:00
Frame LibWeb: Add Page context menu request 2020-06-28 00:05:08 +02:00
Layout LibWeb: Paint the text selection :^) 2020-06-29 00:39:51 +02:00
Loader LibWeb: Add "image/x‑portable‑graymap" mime type for pgm file extension 2020-06-27 13:01:27 +02:00
Painting LibWeb: Add LayoutStyle, a place to store style info for layout & paint 2020-06-24 16:49:51 +02:00
Parser LibWeb: Implement almost all missing tokenizer cases 2020-06-28 16:56:26 +02:00
Scripts LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
CMakeLists.txt LibWeb: Make DOM timers cancellable and stop leaking them 2020-06-27 20:02:04 +02:00
DOMTreeModel.cpp LibWeb: Make Element::tag_name() return a const FlyString& 2020-06-16 19:09:14 +02:00
DOMTreeModel.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Dump.cpp LibWeb: Rename LayoutNode::style() => specified_style() 2020-06-24 13:54:31 +02:00
Dump.h LibWeb: Add naive support for document.querySelectorAll() 2020-03-30 11:35:39 +02:00
FontCache.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
FontCache.h LibWeb: Use FlyString in FontCache keys 2020-05-26 23:45:48 +02:00
Forward.h LibWeb: Make DOM timers cancellable and stop leaking them 2020-06-27 20:02:04 +02:00
LayoutTreeModel.cpp LibWeb: Make Element::tag_name() return a const FlyString& 2020-06-16 19:09:14 +02:00
LayoutTreeModel.h LibWeb+Browser: Add a barebones LayoutTreeModel to the inspector window 2020-06-12 22:30:11 +02:00
Origin.h LibWeb: Add Origin concept (protocol, host, port tuple) 2020-04-07 23:01:45 +02:00
Page.cpp LibWeb: Add PageClient::palette() for view-agnostic palette access 2020-06-17 20:26:59 +02:00
Page.h LibWeb: Add Page context menu request 2020-06-28 00:05:08 +02:00
PageView.cpp LibWeb: Add Page context menu request 2020-06-28 00:05:08 +02:00
PageView.h LibWeb: Add Page context menu request 2020-06-28 00:05:08 +02:00
StylePropertiesModel.cpp LibWeb: Sort style properties by name in the inspector window 2020-06-13 19:53:28 +02:00
StylePropertiesModel.h LibWeb: replace some tab characters with spaces 2020-05-28 17:01:31 +02:00
TreeNode.h LibWeb: Add Node.insertBefore(Node node, Node? child) 2020-06-21 17:42:00 +02:00
URLEncoder.cpp LibWeb: Use the URL encoder from AK instead of rolling a custom one 2020-06-15 17:56:00 +02:00
URLEncoder.h LibWeb: Use the URL encoder from AK instead of rolling a custom one 2020-06-15 17:56:00 +02:00