mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
LibWeb: Replace 'heycam.github.io' links with 'webidl.spec.whatwg.org'
This commit is contained in:
parent
56d8c4ff26
commit
2b2ccb3815
2 changed files with 3 additions and 3 deletions
|
@ -303,7 +303,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (parameter.type->name().is_one_of("EventListener", "NodeFilter")) {
|
} else if (parameter.type->name().is_one_of("EventListener", "NodeFilter")) {
|
||||||
// FIXME: Replace this with support for callback interfaces. https://heycam.github.io/webidl/#idl-callback-interface
|
// FIXME: Replace this with support for callback interfaces. https://webidl.spec.whatwg.org/#idl-callback-interface
|
||||||
|
|
||||||
if (parameter.type->name() == "EventListener")
|
if (parameter.type->name() == "EventListener")
|
||||||
scoped_generator.set("cpp_type", "IDLEventListener");
|
scoped_generator.set("cpp_type", "IDLEventListener");
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
|
|
||||||
namespace Web::WebIDL {
|
namespace Web::WebIDL {
|
||||||
|
|
||||||
// https://heycam.github.io/webidl/#idl-callback-interface
|
// https://webidl.spec.whatwg.org/#idl-callback-interface
|
||||||
class CallbackType final : public JS::Cell {
|
class CallbackType final : public JS::Cell {
|
||||||
public:
|
public:
|
||||||
CallbackType(JS::Object& callback, HTML::EnvironmentSettingsObject& callback_context);
|
CallbackType(JS::Object& callback, HTML::EnvironmentSettingsObject& callback_context);
|
||||||
|
|
||||||
JS::Object& callback;
|
JS::Object& callback;
|
||||||
|
|
||||||
// https://heycam.github.io/webidl/#dfn-callback-context
|
// https://webidl.spec.whatwg.org/#dfn-callback-context
|
||||||
HTML::EnvironmentSettingsObject& callback_context;
|
HTML::EnvironmentSettingsObject& callback_context;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue