mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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:
parent
ac0c30ce62
commit
e43027091d
6 changed files with 25 additions and 6 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <LibWeb/HTML/MimeType.h>
|
||||
#include <LibWeb/HTML/Plugin.h>
|
||||
#include <LibWeb/HTML/Scripting/ImportMap.h>
|
||||
#include <LibWeb/HTML/ScrollOptions.h>
|
||||
#include <LibWeb/HTML/WindowEventHandlers.h>
|
||||
#include <LibWeb/HTML/WindowOrWorkerGlobalScope.h>
|
||||
#include <LibWeb/RequestIdleCallback/IdleRequest.h>
|
||||
|
@ -30,11 +31,6 @@ namespace Web::HTML {
|
|||
|
||||
class IdleCallback;
|
||||
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view/#dictdef-scrolloptions
|
||||
struct ScrollOptions {
|
||||
Bindings::ScrollBehavior behavior { Bindings::ScrollBehavior::Auto };
|
||||
};
|
||||
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view/#dictdef-scrolltooptions
|
||||
struct ScrollToOptions : public ScrollOptions {
|
||||
Optional<double> left;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue