Bindings: Implement is_supported_property_index in terms of item_value

Greatly simplifying the code :^)
This commit is contained in:
Shannon Booth 2024-07-25 18:30:29 +12:00 committed by Andreas Kling
commit 9b1af542e7
Notes: github-actions[bot] 2024-07-26 12:27:15 +00:00
34 changed files with 4 additions and 138 deletions

View file

@ -47,12 +47,6 @@ void NamedNodeMap::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_attributes);
}
// https://dom.spec.whatwg.org/#ref-for-dfn-supported-property-indices%E2%91%A3
bool NamedNodeMap::is_supported_property_index(u32 index) const
{
return index < m_attributes.size();
}
// https://dom.spec.whatwg.org/#ref-for-dfn-supported-property-names%E2%91%A0
Vector<FlyString> NamedNodeMap::supported_property_names() const
{