mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Change DOM::Position to be GC-allocated
This commit is contained in:
committed by
Andreas Kling
parent
35623ad52e
commit
46254101f7
Notes:
sideshowbarker
2024-07-16 22:14:49 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/46254101f7 Pull-request: https://github.com/SerenityOS/serenity/pull/21235
@@ -537,7 +537,7 @@ void HTMLInputElement::did_receive_focus()
|
||||
return;
|
||||
if (!m_text_node)
|
||||
return;
|
||||
browsing_context->set_cursor_position(DOM::Position { *m_text_node, 0 });
|
||||
browsing_context->set_cursor_position(DOM::Position::create(realm(), *m_text_node, 0));
|
||||
}
|
||||
|
||||
void HTMLInputElement::did_lose_focus()
|
||||
|
||||
Reference in New Issue
Block a user