mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
LibWeb/Tests: Add empty text chunk in empty editables
Otherwise the cursor won't get rendered in empty input fields.
This commit is contained in:
parent
152711958e
commit
8c29b0a848
Notes:
github-actions[bot]
2025-09-24 11:34:26 +00:00
Author: https://github.com/zacoons
Commit: 8c29b0a848
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5530
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/kalenikaliaksandr
16 changed files with 248 additions and 76 deletions
|
@ -52,6 +52,8 @@ public:
|
|||
Optional<Chunk> next();
|
||||
Optional<Chunk> peek(size_t);
|
||||
|
||||
Chunk create_empty_chunk();
|
||||
|
||||
private:
|
||||
Optional<Chunk> next_without_peek();
|
||||
Optional<Chunk> try_commit_chunk(size_t start, size_t end, bool has_breaking_newline, bool has_breaking_tab, Gfx::Font const&, Gfx::GlyphRun::TextType) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue