mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
LibWeb: Add missing DOMRectList::visit_edges
This commit is contained in:
parent
5af058d2b6
commit
6231aee761
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,13 @@ void DOMRectList::initialize(JS::Realm& realm)
|
|||
set_prototype(&Bindings::ensure_web_prototype<Bindings::DOMRectListPrototype>(realm, "DOMRectList"_fly_string));
|
||||
}
|
||||
|
||||
void DOMRectList::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& rect : m_rects)
|
||||
visitor.visit(rect);
|
||||
}
|
||||
|
||||
// https://drafts.fxtf.org/geometry-1/#dom-domrectlist-length
|
||||
u32 DOMRectList::length() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue