LibWeb: Do not pass GC::Ptr by reference
Also change it to `GC::Ref` since it's nonnull.
This commit is contained in:
parent
fd80acd730
commit
f14410c19f
4 changed files with 4 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ namespace Web::CredentialManagement {
|
|||
GC_DEFINE_ALLOCATOR(PasswordCredential);
|
||||
|
||||
// https://www.w3.org/TR/credential-management-1/#dom-passwordcredential-passwordcredential
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> PasswordCredential::construct_impl(JS::Realm& realm, GC::Ptr<HTML::HTMLFormElement> const& form)
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> PasswordCredential::construct_impl(JS::Realm& realm, GC::Ref<HTML::HTMLFormElement> form)
|
||||
{
|
||||
// 1. Let origin be the current settings object's origin.
|
||||
auto origin = HTML::current_principal_settings_object().origin();
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class PasswordCredential final
|
|||
GC_DECLARE_ALLOCATOR(PasswordCredential);
|
||||
|
||||
public:
|
||||
[[nodiscard]] static WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> construct_impl(JS::Realm&, GC::Ptr<HTML::HTMLFormElement> const&);
|
||||
[[nodiscard]] static WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> construct_impl(JS::Realm&, GC::Ref<HTML::HTMLFormElement>);
|
||||
[[nodiscard]] static WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> construct_impl(JS::Realm&, PasswordCredentialData const&);
|
||||
|
||||
virtual ~PasswordCredential() override;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
namespace Web::CredentialManagement {
|
||||
|
||||
// https://www.w3.org/TR/credential-management-1/#abstract-opdef-create-a-passwordcredential-from-an-htmlformelement
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, GC::Ptr<HTML::HTMLFormElement> const& form, URL::Origin origin)
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, GC::Ref<HTML::HTMLFormElement> form, URL::Origin origin)
|
||||
{
|
||||
// 1. Let data be a new PasswordCredentialData dictionary.
|
||||
PasswordCredentialData data;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
namespace Web::CredentialManagement {
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, GC::Ptr<HTML::HTMLFormElement> const&, URL::Origin);
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, GC::Ref<HTML::HTMLFormElement>, URL::Origin);
|
||||
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, PasswordCredentialData const&, URL::Origin);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue