summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/MutationObserver.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-09-24 16:02:41 +0100
committerLinus Groh <mail@linusgroh.de>2022-09-24 19:31:39 +0100
commit4f73851afcc3338d58817643665ed13cc3e7d30e (patch)
treea9054a903a38d618519d1c43eeb9cf42cf944c43 /Userland/Libraries/LibWeb/DOM/MutationObserver.h
parentdc44effd443adb18162ab8ca86c12d651faf8d8e (diff)
downloadserenity-4f73851afcc3338d58817643665ed13cc3e7d30e.zip
LibWeb: Move CallbackType from Bindings/ to WebIDL/
Let's stop putting generic types and AOs from the Web IDL spec into the Bindings namespace and directory in LibWeb, and instead follow our usual naming rules of 'directory = namespace = spec name'. The IDL namespace is already used by LibIDL, so Web::WebIDL seems like a good choice.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/MutationObserver.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/MutationObserver.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/MutationObserver.h b/Userland/Libraries/LibWeb/DOM/MutationObserver.h
index e24dfdb60c..33437ed35f 100644
--- a/Userland/Libraries/LibWeb/DOM/MutationObserver.h
+++ b/Userland/Libraries/LibWeb/DOM/MutationObserver.h
@@ -10,9 +10,9 @@
#include <AK/NonnullRefPtrVector.h>
#include <AK/RefCounted.h>
#include <LibJS/Heap/Handle.h>
-#include <LibWeb/Bindings/CallbackType.h>
#include <LibWeb/DOM/ExceptionOr.h>
#include <LibWeb/DOM/MutationRecord.h>
+#include <LibWeb/WebIDL/CallbackType.h>
namespace Web::DOM {
@@ -32,7 +32,7 @@ class MutationObserver final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(MutationObserver, Bindings::PlatformObject);
public:
- static JS::NonnullGCPtr<MutationObserver> create_with_global_object(HTML::Window&, JS::GCPtr<Bindings::CallbackType>);
+ static JS::NonnullGCPtr<MutationObserver> create_with_global_object(HTML::Window&, JS::GCPtr<WebIDL::CallbackType>);
virtual ~MutationObserver() override;
ExceptionOr<void> observe(Node& target, MutationObserverInit options = {});
@@ -42,7 +42,7 @@ public:
Vector<WeakPtr<Node>>& node_list() { return m_node_list; }
Vector<WeakPtr<Node>> const& node_list() const { return m_node_list; }
- Bindings::CallbackType& callback() { return *m_callback; }
+ WebIDL::CallbackType& callback() { return *m_callback; }
void enqueue_record(Badge<Node>, JS::NonnullGCPtr<MutationRecord> mutation_record)
{
@@ -50,12 +50,12 @@ public:
}
private:
- MutationObserver(HTML::Window&, JS::GCPtr<Bindings::CallbackType>);
+ MutationObserver(HTML::Window&, JS::GCPtr<WebIDL::CallbackType>);
virtual void visit_edges(Cell::Visitor&) override;
// https://dom.spec.whatwg.org/#concept-mo-callback
- JS::GCPtr<Bindings::CallbackType> m_callback;
+ JS::GCPtr<WebIDL::CallbackType> m_callback;
// https://dom.spec.whatwg.org/#mutationobserver-node-list
// NOTE: These are weak, per https://dom.spec.whatwg.org/#garbage-collection