1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

LibWeb: Implement Text.splitText(offset)

With FIXMEs about updating live ranges, but still.
This commit is contained in:
Andreas Kling 2022-03-21 18:57:10 +01:00
parent 8bc3f4c186
commit d2f9f8bd4f
3 changed files with 53 additions and 0 deletions

View file

@ -30,6 +30,8 @@ public:
void set_owner_input_element(Badge<HTML::HTMLInputElement>, HTML::HTMLInputElement&);
HTML::HTMLInputElement* owner_input_element() { return m_owner_input_element; }
ExceptionOr<NonnullRefPtr<Text>> split_text(size_t offset);
private:
WeakPtr<HTML::HTMLInputElement> m_owner_input_element;