2020-07-31 23:05:43 -03:00
|
|
|
/*
|
2021-04-28 17:46:44 -03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2024-07-12 20:25:04 -03:00
|
|
|
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
2020-07-31 23:05:43 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-07-31 23:05:43 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2024-07-12 20:25:04 -03:00
|
|
|
#include <LibWeb/WebIDL/Types.h>
|
2020-07-31 23:05:43 -03:00
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
|
|
// NOTE: This element is marked as obsolete, but is still listed as required by the specification.
|
|
|
|
|
class HTMLMarqueeElement final : public HTMLElement {
|
2022-08-28 08:42:07 -03:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLMarqueeElement, HTMLElement);
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DECLARE_ALLOCATOR(HTMLMarqueeElement);
|
2020-07-31 23:05:43 -03:00
|
|
|
|
2022-08-28 08:42:07 -03:00
|
|
|
public:
|
2020-07-31 23:05:43 -03:00
|
|
|
virtual ~HTMLMarqueeElement() override;
|
2021-02-10 05:54:16 -03:00
|
|
|
|
2024-07-12 20:25:04 -03:00
|
|
|
WebIDL::UnsignedLong scroll_amount();
|
2025-10-31 09:30:47 -03:00
|
|
|
void set_scroll_amount(WebIDL::UnsignedLong);
|
2024-07-12 20:25:04 -03:00
|
|
|
|
2024-07-12 20:33:26 -03:00
|
|
|
WebIDL::UnsignedLong scroll_delay();
|
2025-10-31 09:30:47 -03:00
|
|
|
void set_scroll_delay(WebIDL::UnsignedLong);
|
2024-07-12 20:33:26 -03:00
|
|
|
|
2021-02-10 05:54:16 -03:00
|
|
|
private:
|
2022-08-28 08:42:07 -03:00
|
|
|
HTMLMarqueeElement(DOM::Document&, DOM::QualifiedName);
|
2023-01-10 08:28:20 -03:00
|
|
|
|
2023-08-07 03:41:28 -03:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2024-12-23 13:51:10 -03:00
|
|
|
virtual bool is_presentational_hint(FlyString const&) const override;
|
2026-04-30 06:44:26 -03:00
|
|
|
virtual void apply_presentational_hints(Vector<CSS::StyleProperty>&) const override;
|
2020-07-31 23:05:43 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|