mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Fix a LibJSGCVerifier warning in DOM::Text
This commit is contained in:
parent
164db73bdc
commit
7001e0a428
Notes:
sideshowbarker
2024-07-17 16:23:55 +09:00
Author: https://github.com/mattco98
Commit: 7001e0a428
Pull-request: https://github.com/SerenityOS/serenity/pull/23861
Reviewed-by: https://github.com/awesomekling
3 changed files with 14 additions and 6 deletions
|
@ -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({});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue