LibWeb: Fix a LibJSGCVerifier warning in DOM::Text

This commit is contained in:
Matthew Olsson 2024-04-05 15:32:21 -07:00 committed by Andreas Kling
commit 7001e0a428
Notes: sideshowbarker 2024-07-17 16:23:55 +09:00
3 changed files with 14 additions and 6 deletions

View file

@ -328,7 +328,7 @@ void BrowsingContext::did_edit(Badge<EditEventHandler>)
if (m_cursor_position && is<DOM::Text>(*m_cursor_position->node())) {
auto& text_node = static_cast<DOM::Text&>(*m_cursor_position->node());
if (auto* text_node_owner = text_node.editable_text_node_owner())
if (auto text_node_owner = text_node.editable_text_node_owner())
text_node_owner->did_edit_text_node({});
}
}