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

@ -187,7 +187,7 @@ void Storage::broadcast(Optional<String> const& key, Optional<String> const& old
// 1. Let thisDocument be storage's relevant global object's associated Document.
auto& relevant_global = relevant_global_object(*this);
auto const& this_document = verify_cast<Window>(relevant_global).associated_document();
auto const& this_document = as<Window>(relevant_global).associated_document();
// 2. Let url be the serialization of thisDocument's URL.
auto url = this_document.url().serialize();
@ -235,7 +235,7 @@ void Storage::broadcast(Optional<String> const& key, Optional<String> const& old
init.new_value = move(new_value);
init.url = move(url);
init.storage_area = remote_storage;
verify_cast<Window>(relevant_global_object(remote_storage)).dispatch_event(StorageEvent::create(realm, EventNames::storage, init));
as<Window>(relevant_global_object(remote_storage)).dispatch_event(StorageEvent::create(realm, EventNames::storage, init));
}));
}
}