Slot.cpp 433 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/DOM/Element.h>
  7. #include <LibWeb/DOM/Slot.h>
  8. #include <LibWeb/DOM/Text.h>
  9. namespace Web::DOM {
  10. Slot::~Slot() = default;
  11. void Slot::visit_edges(JS::Cell::Visitor& visitor)
  12. {
  13. for (auto const& node : m_assigned_nodes)
  14. node.visit([&](auto const& slottable) { visitor.visit(slottable); });
  15. }
  16. }