mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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.
This commit is contained in:
@@ -15,7 +15,7 @@ EventHandler::EventHandler(String s)
|
||||
{
|
||||
}
|
||||
|
||||
EventHandler::EventHandler(Bindings::CallbackType& c)
|
||||
EventHandler::EventHandler(WebIDL::CallbackType& c)
|
||||
: value(&c)
|
||||
{
|
||||
}
|
||||
@@ -25,7 +25,7 @@ void EventHandler::visit_edges(Cell::Visitor& visitor)
|
||||
Cell::visit_edges(visitor);
|
||||
visitor.visit(listener);
|
||||
|
||||
if (auto* callback = value.get_pointer<Bindings::CallbackType*>())
|
||||
if (auto* callback = value.get_pointer<WebIDL::CallbackType*>())
|
||||
visitor.visit(*callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user