mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +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));
|
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
|
// https://drafts.fxtf.org/geometry-1/#dom-domrectlist-length
|
||||||
u32 DOMRectList::length() const
|
u32 DOMRectList::length() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,6 +33,7 @@ private:
|
||||||
DOMRectList(JS::Realm&, Vector<JS::NonnullGCPtr<DOMRect>>);
|
DOMRectList(JS::Realm&, Vector<JS::NonnullGCPtr<DOMRect>>);
|
||||||
|
|
||||||
virtual void initialize(JS::Realm&) override;
|
virtual void initialize(JS::Realm&) override;
|
||||||
|
virtual void visit_edges(Cell::Visitor&) override;
|
||||||
|
|
||||||
// ^Bindings::LegacyPlatformObject
|
// ^Bindings::LegacyPlatformObject
|
||||||
virtual bool supports_indexed_properties() const override { return true; }
|
virtual bool supports_indexed_properties() const override { return true; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue