AK+Everywhere: Rename verify_cast to as

Follow-up to fc20e61e72.
This commit is contained in:
Timothy Flynn 2025-01-21 09:12:05 -05:00 committed by Tim Flynn
commit 85b424464a
Notes: github-actions[bot] 2025-01-21 16:49:39 +00:00
191 changed files with 574 additions and 574 deletions

View file

@ -149,7 +149,7 @@ WebIDL::ExceptionOr<void> NavigateEvent::perform_shared_checks()
// 1. If event's relevant global object's associated Document is not fully active,
// then throw an "InvalidStateError" DOMException.
auto& associated_document = verify_cast<HTML::Window>(relevant_global_object(*this)).associated_document();
auto& associated_document = as<HTML::Window>(relevant_global_object(*this)).associated_document();
if (!associated_document.is_fully_active())
return WebIDL::InvalidStateError::create(realm(), "Document is not fully active"_string);
@ -184,7 +184,7 @@ void NavigateEvent::process_scroll_behavior()
// 4. Otherwise:
else {
// 1. Let document be event's relevant global object's associated Document.
auto& document = verify_cast<HTML::Window>(relevant_global_object(*this)).associated_document();
auto& document = as<HTML::Window>(relevant_global_object(*this)).associated_document();
// 2. If document's indicated part is null, then scroll to the beginning of the document given document. [CSSOMVIEW]
auto indicated_part = document.determine_the_indicated_part();
@ -226,7 +226,7 @@ void NavigateEvent::potentially_reset_the_focus()
VERIFY(m_interception_state == InterceptionState::Committed || m_interception_state == InterceptionState::Scrolled);
// 2. Let navigation be event's relevant global object's navigation API.
auto& relevant_global_object = verify_cast<Window>(HTML::relevant_global_object(*this));
auto& relevant_global_object = as<Window>(HTML::relevant_global_object(*this));
auto navigation = relevant_global_object.navigation();
// 3. Let focusChanged be navigation's focus changed during ongoing navigation.