LibWeb: Change DOM::Position to be GC-allocated

This commit is contained in:
Aliaksandr Kalenik
2023-09-26 19:34:21 +02:00
committed by Andreas Kling
parent 35623ad52e
commit 46254101f7
10 changed files with 72 additions and 62 deletions

View File

@@ -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()