1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibWeb: Don't include HTML/Window.h from DOM/Element.h

This required moving HTML::ScrollOptions to its own header file.
This commit is contained in:
Andreas Kling 2023-05-08 07:39:05 +02:00 committed by Jelle Raaijmakers
parent ac0c30ce62
commit e43027091d
6 changed files with 25 additions and 6 deletions

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Bindings/WindowGlobalMixin.h>
namespace Web::HTML {
// https://w3c.github.io/csswg-drafts/cssom-view/#dictdef-scrolloptions
struct ScrollOptions {
Bindings::ScrollBehavior behavior { Bindings::ScrollBehavior::Auto };
};
}