LibWeb: Implement HTMLMarqueeElement.scrollAmount

This commit is contained in:
Jamie Mansfield 2024-07-13 00:25:04 +01:00 committed by Andreas Kling
parent 66528a17cb
commit 2a408ecfbc
Notes: sideshowbarker 2024-07-17 06:09:44 +09:00
4 changed files with 26 additions and 1 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2020, the SerenityOS developers.
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -7,6 +8,7 @@
#pragma once
#include <LibWeb/HTML/HTMLElement.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::HTML {
@ -18,6 +20,9 @@ class HTMLMarqueeElement final : public HTMLElement {
public:
virtual ~HTMLMarqueeElement() override;
WebIDL::UnsignedLong scroll_amount();
WebIDL::ExceptionOr<void> set_scroll_amount(WebIDL::UnsignedLong);
private:
HTMLMarqueeElement(DOM::Document&, DOM::QualifiedName);