/* * Copyright (c) 2022, DerpyCrabs * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::Geometry { // https://drafts.fxtf.org/geometry-1/#DOMRectList class DOMRectList final : public Bindings::LegacyPlatformObject { WEB_PLATFORM_OBJECT(DOMRectList, Bindings::LegacyPlatformObject); public: static JS::NonnullGCPtr create(JS::Realm&, Vector>); virtual ~DOMRectList() override; u32 length() const; DOMRect const* item(u32 index) const; virtual bool is_supported_property_index(u32) const override; virtual JS::Value item_value(size_t index) const override; private: DOMRectList(JS::Realm&, Vector>); Vector> m_rects; }; }