HTMLMarqueeElement.h 1021 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibWeb/HTML/HTMLElement.h>
  9. #include <LibWeb/WebIDL/Types.h>
  10. namespace Web::HTML {
  11. // NOTE: This element is marked as obsolete, but is still listed as required by the specification.
  12. class HTMLMarqueeElement final : public HTMLElement {
  13. WEB_PLATFORM_OBJECT(HTMLMarqueeElement, HTMLElement);
  14. JS_DECLARE_ALLOCATOR(HTMLMarqueeElement);
  15. public:
  16. virtual ~HTMLMarqueeElement() override;
  17. WebIDL::UnsignedLong scroll_amount();
  18. WebIDL::ExceptionOr<void> set_scroll_amount(WebIDL::UnsignedLong);
  19. WebIDL::UnsignedLong scroll_delay();
  20. WebIDL::ExceptionOr<void> set_scroll_delay(WebIDL::UnsignedLong);
  21. private:
  22. HTMLMarqueeElement(DOM::Document&, DOM::QualifiedName);
  23. virtual void initialize(JS::Realm&) override;
  24. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  25. };
  26. }