/* * Copyright (c) 2021, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::DOM { class StaticNodeList : public NodeList { public: static NonnullRefPtr create(NonnullRefPtrVector&& static_nodes) { return adopt_ref(*new StaticNodeList(move(static_nodes))); } virtual ~StaticNodeList() override = default; virtual u32 length() const override; virtual Node const* item(u32 index) const override; virtual bool is_supported_property_index(u32) const override; private: StaticNodeList(NonnullRefPtrVector&& static_nodes); NonnullRefPtrVector m_static_nodes; }; }