LibWeb: Change Editing::editing_host_of_node() to Node::editing_host()

No functional changes.
This commit is contained in:
Jelle Raaijmakers 2025-07-31 12:29:05 +02:00 committed by Jelle Raaijmakers
parent 3f5bc023e2
commit 0cab272f7f
Notes: github-actions[bot] 2025-08-01 08:10:53 +00:00
6 changed files with 36 additions and 36 deletions

View file

@ -1319,7 +1319,7 @@ EventResult EventHandler::handle_keydown(UIEvents::KeyCode key, u32 modifiers, u
// If the editing host is contenteditable="plaintext-only", we force a line break.
if (focused_element) {
if (auto editing_host = Editing::editing_host_of_node(*focused_element); editing_host
if (auto editing_host = focused_element->editing_host(); editing_host
&& as<HTML::HTMLElement>(*editing_host).content_editable_state() == HTML::ContentEditableState::PlaintextOnly)
input_type = UIEvents::InputTypes::insertLineBreak;
}