mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
Construct URLSearchParams from sequence or from string
This commit is contained in:
parent
5755645f0d
commit
5fc488fe61
3 changed files with 24 additions and 43 deletions
|
|
@ -20,6 +20,7 @@ namespace mozilla {
|
|||
namespace dom {
|
||||
|
||||
class URLSearchParams;
|
||||
class USVStringSequenceSequenceOrUSVString;
|
||||
|
||||
class URLSearchParamsObserver : public nsISupports
|
||||
{
|
||||
|
|
@ -43,14 +44,6 @@ public:
|
|||
DeleteAll();
|
||||
}
|
||||
|
||||
explicit URLParams(const URLParams& aOther)
|
||||
: mParams(aOther.mParams)
|
||||
{}
|
||||
|
||||
URLParams(const URLParams&& aOther)
|
||||
: mParams(Move(aOther.mParams))
|
||||
{}
|
||||
|
||||
class ForEachIterator
|
||||
{
|
||||
public:
|
||||
|
|
@ -144,9 +137,6 @@ public:
|
|||
explicit URLSearchParams(nsISupports* aParent,
|
||||
URLSearchParamsObserver* aObserver=nullptr);
|
||||
|
||||
URLSearchParams(nsISupports* aParent,
|
||||
const URLSearchParams& aOther);
|
||||
|
||||
// WebIDL methods
|
||||
nsISupports* GetParentObject() const
|
||||
{
|
||||
|
|
@ -157,11 +147,8 @@ public:
|
|||
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||
|
||||
static already_AddRefed<URLSearchParams>
|
||||
Constructor(const GlobalObject& aGlobal, const nsAString& aInit,
|
||||
ErrorResult& aRv);
|
||||
|
||||
static already_AddRefed<URLSearchParams>
|
||||
Constructor(const GlobalObject& aGlobal, URLSearchParams& aInit,
|
||||
Constructor(const GlobalObject& aGlobal,
|
||||
const USVStringSequenceSequenceOrUSVString& aInit,
|
||||
ErrorResult& aRv);
|
||||
|
||||
void ParseInput(const nsACString& aInput);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue