ladybird/Libraries/LibWeb/Editing
Jelle Raaijmakers ded42e649b LibWeb: Do not scroll cursor into view on programmatic selection changes
We were mimicking Firefox' behavior that whenever a programmatic change
to an <input>'s or <textarea>'s selection happened, the new selection
focus is brought into view by scrolling. Currently we run a layout
update synchronously for that to make sure we have the fragment's
correct dimensions, which caused a significant performance regression in
Speedometer.

Since this is non-standard behavior, let's mimic Chromium instead which
does not scroll at all - only for direct user initiated input such as
typing.

Relevant issues:

* https://github.com/whatwg/html/issues/6217
* https://bugzilla.mozilla.org/show_bug.cgi?id=232405
* https://issues.chromium.org/issues/41081857
2026-02-17 10:24:00 +01:00
..
Internal AK+LibWeb: Reduce recompilation impact of DOM/Node.h 2026-02-11 20:02:28 +01:00
CommandNames.cpp LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
CommandNames.h LibWeb: Add new whitespace-preserving editing command 2025-05-17 00:29:19 +02:00
Commands.cpp LibWeb: Insert newlines for line breaks in preformatted white-space 2026-01-23 14:21:35 +01:00
Commands.h LibWeb: Pass Utf16String around directly in Editing APIs 2025-07-26 00:40:06 +02:00
ExecCommand.cpp LibWeb: Do not scroll cursor into view on programmatic selection changes 2026-02-17 10:24:00 +01:00