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
parent a0b44ff5e7
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

@ -521,7 +521,7 @@ static bool is_form_control(DOM::Element const& element, HTMLFormElement const&
GC::Ref<HTMLFormControlsCollection> HTMLFormElement::elements() const
{
if (!m_elements) {
auto& root = verify_cast<ParentNode>(const_cast<HTMLFormElement*>(this)->root());
auto& root = as<ParentNode>(const_cast<HTMLFormElement*>(this)->root());
m_elements = HTMLFormControlsCollection::create(root, DOM::HTMLCollection::Scope::Descendants, [this](Element const& element) {
return is_form_control(element, *this);
});
@ -1017,7 +1017,7 @@ Vector<FlyString> HTMLFormElement::supported_property_names() const
JS::Value HTMLFormElement::named_item_value(FlyString const& name) const
{
auto& realm = this->realm();
auto& root = verify_cast<ParentNode>(this->root());
auto& root = as<ParentNode>(this->root());
// To determine the value of a named property name for a form element, the user agent must run the following steps: