ladybird/Libraries/LibWeb/Page
Timothy Flynn 76bab90812 LibWeb: Use rendered text to find word boundaries when double-clicking
This effectively reverts da26941b50.

When the user double-clicks a word on screen, they are interacting with
the rendered text, which has e.g. whitespace collapsing applied. If we
acquire word boundaries from the raw text, the resulting selection is
not right.

We still have issues with acquiring the right selection via APIs such as
`document.getSelection`. The offsets computed here are effectively then
applied to the raw text. But this issue is present all over EventHandler
and this patch at least makes the selection visually accurate.
2025-08-14 19:36:38 +02:00
..
DragAndDropEventHandler.cpp LibWeb+LibGfx: Apply editorial punctuation/whitespace/markup fixes 2025-06-25 03:12:19 +12:00
DragAndDropEventHandler.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
EventHandler.cpp LibWeb: Use rendered text to find word boundaries when double-clicking 2025-08-14 19:36:38 +02:00
EventHandler.h LibWeb: Use GC::Ptr more instead of raw pointers in EventHandler 2025-08-05 11:29:45 +02:00
EventResult.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
InputEvent.cpp LibWeb+UI: Rename ChromeInputData to BrowserInputData 2025-03-15 19:57:27 -04:00
InputEvent.h LibWeb+UI: Add an explicit IPC to handle mouse leave events 2025-07-28 21:26:33 +02:00
Page.cpp LibWeb: Remove now-unnecessary hack from preferred_color_scheme() 2025-08-04 14:01:00 +02:00
Page.h LibWeb: Implement CookieStore::get(name) 2025-08-08 13:09:58 -04:00