|
@@ -21,6 +21,7 @@
|
|
#include <LibWeb/HTML/EventLoop/Task.h>
|
|
#include <LibWeb/HTML/EventLoop/Task.h>
|
|
#include <LibWeb/HTML/ScrollOptions.h>
|
|
#include <LibWeb/HTML/ScrollOptions.h>
|
|
#include <LibWeb/HTML/TagNames.h>
|
|
#include <LibWeb/HTML/TagNames.h>
|
|
|
|
+#include <LibWeb/HTML/Window.h>
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
|
|
|
|
namespace Web::DOM {
|
|
namespace Web::DOM {
|
|
@@ -306,6 +307,9 @@ public:
|
|
void set_custom_element_state(CustomElementState value) { m_custom_element_state = value; }
|
|
void set_custom_element_state(CustomElementState value) { m_custom_element_state = value; }
|
|
void setup_custom_element_from_constructor(HTML::CustomElementDefinition& custom_element_definition, Optional<String> const& is_value);
|
|
void setup_custom_element_from_constructor(HTML::CustomElementDefinition& custom_element_definition, Optional<String> const& is_value);
|
|
|
|
|
|
|
|
+ void scroll(HTML::ScrollToOptions const&);
|
|
|
|
+ void scroll(double x, double y);
|
|
|
|
+
|
|
protected:
|
|
protected:
|
|
Element(Document&, DOM::QualifiedName);
|
|
Element(Document&, DOM::QualifiedName);
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|