import change from rmottola/Arctic-Fox:

- Bug 1142761 - Move CallSetter into ScriptedIndirectProxyHandler so it will eventually be deleted along with its only remaining caller. (a5a0b3f6b)
- Bug 1143810 - Remove some XPConnect JSClass::setProperty hooks that are not needed anymore. (4eda6a60b)
- Bug 1142195 - Remove some unused class declarations in the DOM Cache code (afd802623)
- Bug 1145345 - Account for a greater variety of rounding errors when comparing coordinates (6a41f34f3)
- Bug 1145787 - Put a misplaced assertion into its proper place. (7f760a66d)
- Bug 1146059 - Remove Response.finalURL. (230d9fa50)
- Bug 1134324 - Set CORS mode and credentials on Fetch event Request. r=michal (772fcac8f)
- Bug 1136200 - Verify request type is not no-cors if response is opaque (396c9bfb4)
- Bug 1144249 - fix fetch no-cors mode. r=bkelly (af9656291)
- Bug 1144876 - Stop spamming stderr with a warning every time that we encounter a document that is not controlled by a service worker; (0a5c5fbfd)
- Bug 1117172 part 1. Allow passing an optional aGivenProto to binding Wrap methods. (8aea85046)
- Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv (13146be83)
- Bug 1117172 part 3. Change the wrappercached WrapObject methods to al low passing in aGivenProto. r=peterv (1621ef48d)
- Bug 1146293 - Fix coding style break (intent and line length) caused by Bug 1117172 and Bug 1145631. (0822709f1)
- Bug 1121298 - Part 1: refactor MozNDEFRecord cstor. (6e57a37ec)
- Bug 1121298 - Part 2: Add Constructor(uri) for MozNDEFRecord. (46f921bcf)
- Bug 1121298 - Part 3. add getAsURI. (e67cad94b)
- Bug 1138886 - Structured Clone for MozNDEFRecord. (With adaptations of Bug 1117172 part 3) (b83b7f684)
- Bug 1143504 - Disconnect the Cache object from its actor when it gets cycle collected. (dae58dcdd)
This commit is contained in:
2019-06-21 11:00:47 +08:00
parent 65d6aee9e0
commit c08eaf90ca
988 changed files with 2628 additions and 1843 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(Activity, DOMRequest)
NS_IMPL_CYCLE_COLLECTION_TRACE_END
/* virtual */ JSObject*
Activity::WrapObject(JSContext* aCx)
Activity::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return MozActivityBinding::Wrap(aCx, this);
return MozActivityBinding::Wrap(aCx, this, aGivenProto);
}
nsresult
+1 -1
View File
@@ -21,7 +21,7 @@ public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(Activity, DOMRequest)
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<Activity>
Constructor(const GlobalObject& aOwner,
+2 -2
View File
@@ -66,9 +66,9 @@ NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(Animation, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(Animation, Release)
JSObject*
Animation::WrapObject(JSContext* aCx)
Animation::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return AnimationBinding::Wrap(aCx, this);
return AnimationBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<AnimationEffect>
+1 -1
View File
@@ -152,7 +152,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(Animation)
nsIDocument* GetParentObject() const { return mDocument; }
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// FIXME: If we succeed in moving transition-specific code to a type of
// AnimationEffect (as per the Web Animations API) we should remove these
+2 -2
View File
@@ -15,9 +15,9 @@ NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(AnimationEffect, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(AnimationEffect, Release)
JSObject*
AnimationEffect::WrapObject(JSContext* aCx)
AnimationEffect::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return AnimationEffectBinding::Wrap(aCx, this);
return AnimationEffectBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -27,7 +27,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(AnimationEffect)
Animation* GetParentObject() const { return mAnimation; }
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// AnimationEffect interface
void GetName(nsString& aRetVal) const {
+2 -2
View File
@@ -26,9 +26,9 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(AnimationPlayer)
NS_INTERFACE_MAP_END
JSObject*
AnimationPlayer::WrapObject(JSContext* aCx)
AnimationPlayer::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return dom::AnimationPlayerBinding::Wrap(aCx, this);
return dom::AnimationPlayerBinding::Wrap(aCx, this, aGivenProto);
}
Nullable<TimeDuration>
+1 -1
View File
@@ -63,7 +63,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(AnimationPlayer)
AnimationTimeline* GetParentObject() const { return mTimeline; }
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual CSSAnimationPlayer* AsCSSAnimationPlayer() { return nullptr; }
virtual CSSTransitionPlayer* AsCSSTransitionPlayer() { return nullptr; }
+2 -2
View File
@@ -21,9 +21,9 @@ NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(AnimationTimeline, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(AnimationTimeline, Release)
JSObject*
AnimationTimeline::WrapObject(JSContext* aCx)
AnimationTimeline::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return AnimationTimelineBinding::Wrap(aCx, this);
return AnimationTimelineBinding::Wrap(aCx, this, aGivenProto);
}
Nullable<TimeDuration>
+1 -1
View File
@@ -41,7 +41,7 @@ public:
{
return mWindow;
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// AnimationTimeline methods
Nullable<TimeDuration> GetCurrentTime() const;
+2 -2
View File
@@ -61,9 +61,9 @@ ArchiveReader::~ArchiveReader()
}
/* virtual */ JSObject*
ArchiveReader::WrapObject(JSContext* aCx)
ArchiveReader::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return ArchiveReaderBinding::Wrap(aCx, this);
return ArchiveReaderBinding::Wrap(aCx, this, aGivenProto);
}
nsresult
+1 -1
View File
@@ -51,7 +51,7 @@ public:
return mWindow;
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
already_AddRefed<ArchiveRequest> GetFilenames();
already_AddRefed<ArchiveRequest> GetFile(const nsAString& filename);
+2 -2
View File
@@ -77,9 +77,9 @@ ArchiveRequest::PreHandleEvent(EventChainPreVisitor& aVisitor)
}
/* virtual */ JSObject*
ArchiveRequest::WrapObject(JSContext* aCx)
ArchiveRequest::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return ArchiveRequestBinding::Wrap(aCx, this);
return ArchiveRequestBinding::Wrap(aCx, this, aGivenProto);
}
ArchiveReader*
+1 -1
View File
@@ -26,7 +26,7 @@ BEGIN_ARCHIVEREADER_NAMESPACE
class ArchiveRequest : public mozilla::dom::DOMRequest
{
public:
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
ArchiveReader* Reader() const;
+2 -1
View File
@@ -131,9 +131,10 @@ AnonymousContent::GetElementById(const nsAString& aElementId)
bool
AnonymousContent::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto,
JS::MutableHandle<JSObject*> aReflector)
{
return AnonymousContentBinding::Wrap(aCx, this, aReflector);
return AnonymousContentBinding::Wrap(aCx, this, aGivenProto, aReflector);
}
} // dom namespace
+1 -1
View File
@@ -27,7 +27,7 @@ public:
explicit AnonymousContent(Element* aContentNode);
nsCOMPtr<Element> GetContentNode();
void SetContentNode(Element* aContentNode);
bool WrapObject(JSContext* aCx, JS::MutableHandle<JSObject*> aReflector);
bool WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
// WebIDL methods
void SetTextContentForElement(const nsAString& aElementId,
+2 -2
View File
@@ -384,9 +384,9 @@ Attr::Shutdown()
}
JSObject*
Attr::WrapNode(JSContext* aCx)
Attr::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return AttrBinding::Wrap(aCx, this);
return AttrBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -82,7 +82,7 @@ public:
virtual nsIDOMNode* AsDOMNode() override { return this; }
// WebIDL
virtual JSObject* WrapNode(JSContext* aCx) override;
virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// XPCOM GetName() is OK
// XPCOM GetValue() is OK
+2 -2
View File
@@ -34,9 +34,9 @@ BarProp::GetParentObject() const
}
JSObject*
BarProp::WrapObject(JSContext* aCx)
BarProp::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return BarPropBinding::Wrap(aCx, this);
return BarPropBinding::Wrap(aCx, this, aGivenProto);
}
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(BarProp, mDOMWindow)
+1 -1
View File
@@ -40,7 +40,7 @@ public:
nsPIDOMWindow* GetParentObject() const;
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual bool GetVisible(ErrorResult& aRv) = 0;
virtual void SetVisible(bool aVisible, ErrorResult& aRv) = 0;
+2 -2
View File
@@ -74,9 +74,9 @@ Comment::Constructor(const GlobalObject& aGlobal,
}
JSObject*
Comment::WrapNode(JSContext *aCx)
Comment::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
{
return CommentBinding::Wrap(aCx, this);
return CommentBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -72,7 +72,7 @@ public:
ErrorResult& aRv);
protected:
virtual JSObject* WrapNode(JSContext *aCx) override;
virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
};
} // namespace dom
+2 -2
View File
@@ -722,9 +722,9 @@ Console::Observe(nsISupports* aSubject, const char* aTopic,
}
JSObject*
Console::WrapObject(JSContext* aCx)
Console::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return ConsoleBinding::Wrap(aCx, this);
return ConsoleBinding::Wrap(aCx, this, aGivenProto);
}
#define METHOD(name, string) \
+1 -1
View File
@@ -44,7 +44,7 @@ public:
}
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
void
Log(JSContext* aCx, const Sequence<JS::Value>& aData);
+2 -2
View File
@@ -46,9 +46,9 @@ Crypto::Init(nsIGlobalObject* aParent)
}
/* virtual */ JSObject*
Crypto::WrapObject(JSContext* aCx)
Crypto::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return CryptoBinding::Wrap(aCx, this);
return CryptoBinding::Wrap(aCx, this, aGivenProto);
}
void
+1 -1
View File
@@ -50,7 +50,7 @@ public:
}
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static uint8_t*
GetRandomValues(uint32_t aLength);
+2 -2
View File
@@ -76,9 +76,9 @@ DOMCursor::Continue(ErrorResult& aRv)
}
/* virtual */ JSObject*
DOMCursor::WrapObject(JSContext* aCx)
DOMCursor::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMCursorBinding::Wrap(aCx, this);
return DOMCursorBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -27,7 +27,7 @@ public:
DOMCursor(nsPIDOMWindow* aWindow, nsICursorContinueCallback *aCallback);
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
bool Done() const
{
+2 -2
View File
@@ -57,9 +57,9 @@ DOMError::~DOMError()
}
JSObject*
DOMError::WrapObject(JSContext* aCx)
DOMError::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMErrorBinding::Wrap(aCx, this);
return DOMErrorBinding::Wrap(aCx, this, aGivenProto);
}
/* static */ already_AddRefed<DOMError>
+1 -1
View File
@@ -59,7 +59,7 @@ public:
}
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<DOMError>
Constructor(const GlobalObject& global, const nsAString& name,
+4 -4
View File
@@ -475,9 +475,9 @@ Exception::Initialize(const nsACString& aMessage, nsresult aResult,
}
JSObject*
Exception::WrapObject(JSContext* cx)
Exception::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
{
return ExceptionBinding::Wrap(cx, this);
return ExceptionBinding::Wrap(cx, this, aGivenProto);
}
void
@@ -665,9 +665,9 @@ DOMException::Constructor(GlobalObject& /* unused */,
}
JSObject*
DOMException::WrapObject(JSContext* aCx)
DOMException::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMExceptionBinding::Wrap(aCx, this);
return DOMExceptionBinding::Wrap(aCx, this, aGivenProto);
}
/* static */already_AddRefed<DOMException>
+2 -2
View File
@@ -63,7 +63,7 @@ public:
void StowJSVal(JS::Value& aVp);
// WebIDL API
virtual JSObject* WrapObject(JSContext* cx)
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
override;
nsISupports* GetParentObject() const { return nullptr; }
@@ -133,7 +133,7 @@ public:
NS_IMETHOD ToString(nsACString& aReturn) override;
// nsWrapperCache overrides
virtual JSObject* WrapObject(JSContext* aCx)
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
override;
static already_AddRefed<DOMException>
+2 -2
View File
@@ -29,9 +29,9 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(DOMImplementation)
NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMImplementation)
JSObject*
DOMImplementation::WrapObject(JSContext* aCx)
DOMImplementation::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMImplementationBinding::Wrap(aCx, this);
return DOMImplementationBinding::Wrap(aCx, this, aGivenProto);
}
bool
+1 -1
View File
@@ -52,7 +52,7 @@ public:
return mOwner;
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// nsIDOMDOMImplementation
NS_DECL_NSIDOMDOMIMPLEMENTATION
+2 -2
View File
@@ -658,9 +658,9 @@ DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
}
JSObject*
DOMMatrix::WrapObject(JSContext* aCx)
DOMMatrix::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMMatrixBinding::Wrap(aCx, this);
return DOMMatrixBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -166,7 +166,7 @@ public:
Constructor(const GlobalObject& aGlobal, const Sequence<double>& aNumberSequence, ErrorResult& aRv);
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
#define Set2DMatrixMember(entry2D, entry3D) \
{ \
+2 -2
View File
@@ -75,9 +75,9 @@ public:
return mOwner;
}
virtual JSObject* WrapObject(JSContext* aCx) override
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
{
return mozilla::dom::DOMParserBinding::Wrap(aCx, this);
return mozilla::dom::DOMParserBinding::Wrap(aCx, this, aGivenProto);
}
private:
+2 -2
View File
@@ -37,7 +37,7 @@ DOMPoint::Constructor(const GlobalObject& aGlobal, double aX, double aY,
}
JSObject*
DOMPoint::WrapObject(JSContext* aCx)
DOMPoint::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMPointBinding::Wrap(aCx, this);
return DOMPointBinding::Wrap(aCx, this, aGivenProto);
}
+1 -1
View File
@@ -64,7 +64,7 @@ public:
double aZ, double aW, ErrorResult& aRV);
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
void SetX(double aX) { mX = aX; }
void SetY(double aY) { mY = aY; }
+2 -2
View File
@@ -38,9 +38,9 @@ DOMQuad::~DOMQuad()
}
JSObject*
DOMQuad::WrapObject(JSContext* aCx)
DOMQuad::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMQuadBinding::Wrap(aCx, this);
return DOMQuadBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DOMQuad>
+1 -1
View File
@@ -35,7 +35,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMQuad)
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<DOMQuad>
Constructor(const GlobalObject& aGlobal,
+6 -6
View File
@@ -21,10 +21,10 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMRectReadOnly)
NS_INTERFACE_MAP_END
JSObject*
DOMRectReadOnly::WrapObject(JSContext* aCx)
DOMRectReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
MOZ_ASSERT(mParent);
return DOMRectReadOnlyBinding::Wrap(aCx, this);
return DOMRectReadOnlyBinding::Wrap(aCx, this, aGivenProto);
}
// -----------------------------------------------------------------------------
@@ -47,10 +47,10 @@ FORWARD_GETTER(Width)
FORWARD_GETTER(Height)
JSObject*
DOMRect::WrapObject(JSContext* aCx)
DOMRect::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
MOZ_ASSERT(mParent);
return DOMRectBinding::Wrap(aCx, this);
return DOMRectBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DOMRect>
@@ -99,9 +99,9 @@ DOMRectList::Item(uint32_t aIndex, nsIDOMClientRect** aReturn)
}
JSObject*
DOMRectList::WrapObject(JSContext *cx)
DOMRectList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return mozilla::dom::DOMRectListBinding::Wrap(cx, this);
return mozilla::dom::DOMRectListBinding::Wrap(cx, this, aGivenProto);
}
static double
+3 -3
View File
@@ -43,7 +43,7 @@ public:
MOZ_ASSERT(mParent);
return mParent;
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual double X() const = 0;
virtual double Y() const = 0;
@@ -98,7 +98,7 @@ public:
Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aWidth, double aHeight, ErrorResult& aRV);
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
void SetRect(float aX, float aY, float aWidth, float aHeight) {
mX = aX; mY = aY; mWidth = aWidth; mHeight = aHeight;
@@ -161,7 +161,7 @@ public:
NS_DECL_NSIDOMCLIENTRECTLIST
virtual JSObject* WrapObject(JSContext *cx) override;
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
nsISupports* GetParentObject()
{
+2 -2
View File
@@ -66,9 +66,9 @@ NS_IMPL_ADDREF_INHERITED(DOMRequest, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(DOMRequest, DOMEventTargetHelper)
/* virtual */ JSObject*
DOMRequest::WrapObject(JSContext* aCx)
DOMRequest::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMRequestBinding::Wrap(aCx, this);
return DOMRequestBinding::Wrap(aCx, this, aGivenProto);
}
NS_IMPL_EVENT_HANDLER(DOMRequest, success)
+1 -1
View File
@@ -47,7 +47,7 @@ public:
return GetOwner();
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// WebIDL Interface
DOMRequestReadyState ReadyState() const
+2 -2
View File
@@ -24,9 +24,9 @@ DOMStringList::~DOMStringList()
}
JSObject*
DOMStringList::WrapObject(JSContext* aCx)
DOMStringList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMStringListBinding::Wrap(aCx, this);
return DOMStringListBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -24,7 +24,7 @@ public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMStringList)
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
nsISupports* GetParentObject()
{
return nullptr;
+2 -2
View File
@@ -24,9 +24,9 @@ namespace mozilla {
namespace dom {
JSObject*
DocumentFragment::WrapNode(JSContext *aCx)
DocumentFragment::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
{
return DocumentFragmentBinding::Wrap(aCx, this);
return DocumentFragmentBinding::Wrap(aCx, this, aGivenProto);
}
bool
+1 -1
View File
@@ -65,7 +65,7 @@ public:
Init();
}
virtual JSObject* WrapNode(JSContext *aCx) override;
virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
// nsIContent
nsresult SetAttr(int32_t aNameSpaceID, nsIAtom* aName,
+2 -2
View File
@@ -60,9 +60,9 @@ namespace mozilla {
namespace dom {
JSObject*
DocumentType::WrapNode(JSContext *cx)
DocumentType::WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return DocumentTypeBinding::Wrap(cx, this);
return DocumentTypeBinding::Wrap(cx, this, aGivenProto);
}
DocumentType::DocumentType(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo,
+1 -1
View File
@@ -77,7 +77,7 @@ public:
protected:
virtual ~DocumentType();
virtual JSObject* WrapNode(JSContext *cx) override;
virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
nsString mPublicId;
nsString mSystemId;
+4 -4
View File
@@ -412,9 +412,9 @@ Element::GetBindingURL(nsIDocument *aDocument, css::URLValue **aResult)
}
JSObject*
Element::WrapObject(JSContext *aCx)
Element::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> obj(aCx, nsINode::WrapObject(aCx));
JS::Rooted<JSObject*> obj(aCx, nsINode::WrapObject(aCx, aGivenProto));
if (!obj) {
return nullptr;
}
@@ -1110,9 +1110,9 @@ DestinationInsertionPointList::IndexOf(nsIContent* aContent)
}
JSObject*
DestinationInsertionPointList::WrapObject(JSContext* aCx)
DestinationInsertionPointList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return NodeListBinding::Wrap(aCx, this);
return NodeListBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DestinationInsertionPointList>
+2 -2
View File
@@ -1002,7 +1002,7 @@ public:
nsIDOMHTMLCollection** aResult);
void GetClassList(nsISupports** aClassList);
virtual JSObject* WrapObject(JSContext *aCx) final override;
virtual JSObject* WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) final override;
nsINode* GetScopeChainParent() const override;
@@ -1357,7 +1357,7 @@ public:
virtual int32_t IndexOf(nsIContent* aContent) override;
virtual nsINode* GetParentObject() override { return mParent; }
virtual uint32_t Length() const;
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
protected:
virtual ~DestinationInsertionPointList();
+2 -2
View File
@@ -265,9 +265,9 @@ EventSource::Init(nsISupports* aOwner,
}
/* virtual */ JSObject*
EventSource::WrapObject(JSContext* aCx)
EventSource::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return EventSourceBinding::Wrap(aCx, this);
return EventSourceBinding::Wrap(aCx, this, aGivenProto);
}
/* static */ already_AddRefed<EventSource>
+1 -1
View File
@@ -58,7 +58,7 @@ public:
NS_DECL_NSIINTERFACEREQUESTOR
// nsWrapperCache
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// WebIDL
nsPIDOMWindow*
+5 -5
View File
@@ -559,10 +559,10 @@ File::IsMemoryFile()
}
JSObject*
File::WrapObject(JSContext* aCx)
File::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return IsFile() ? FileBinding::Wrap(aCx, this)
: BlobBinding::Wrap(aCx, this);
return IsFile() ? FileBinding::Wrap(aCx, this, aGivenProto)
: BlobBinding::Wrap(aCx, this, aGivenProto);
}
/* static */ already_AddRefed<File>
@@ -1235,9 +1235,9 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(FileList)
NS_IMPL_CYCLE_COLLECTING_RELEASE(FileList)
JSObject*
FileList::WrapObject(JSContext *cx)
FileList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return mozilla::dom::FileListBinding::Wrap(cx, this);
return mozilla::dom::FileListBinding::Wrap(cx, this, aGivenProto);
}
NS_IMETHODIMP
+2 -2
View File
@@ -189,7 +189,7 @@ public:
const ChromeFilePropertyBag& aBag,
ErrorResult& aRv);
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
uint64_t GetSize(ErrorResult& aRv);
@@ -828,7 +828,7 @@ public:
NS_DECL_NSIDOMFILELIST
virtual JSObject* WrapObject(JSContext *cx) override;
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
nsISupports* GetParentObject()
{
+2 -2
View File
@@ -401,9 +401,9 @@ NS_INTERFACE_TABLE_HEAD(nsChildContentList)
NS_INTERFACE_MAP_END
JSObject*
nsChildContentList::WrapObject(JSContext *cx)
nsChildContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return NodeListBinding::Wrap(cx, this);
return NodeListBinding::Wrap(cx, this, aGivenProto);
}
NS_IMETHODIMP
+1 -1
View File
@@ -56,7 +56,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS(nsChildContentList)
// nsWrapperCache
virtual JSObject* WrapObject(JSContext *cx) override;
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
// nsIDOMNodeList interface
NS_DECL_NSIDOMNODELIST
+2 -2
View File
@@ -81,9 +81,9 @@ MessageChannel::~MessageChannel()
}
JSObject*
MessageChannel::WrapObject(JSContext* aCx)
MessageChannel::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return MessageChannelBinding::Wrap(aCx, this);
return MessageChannelBinding::Wrap(aCx, this, aGivenProto);
}
/* static */ already_AddRefed<MessageChannel>
+1 -1
View File
@@ -40,7 +40,7 @@ public:
}
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<MessageChannel>
Constructor(const GlobalObject& aGlobal, ErrorResult& aRv);
+3 -3
View File
@@ -223,7 +223,7 @@ PostMessageReadTransferStructuredClone(JSContext* aCx,
port->BindToOwner(scInfo->mPort->GetOwner());
scInfo->mPorts.Put(port, nullptr);
JS::Rooted<JSObject*> obj(aCx, port->WrapObject(aCx));
JS::Rooted<JSObject*> obj(aCx, port->WrapObject(aCx, JS::NullPtr()));
if (!obj || !JS_WrapObject(aCx, &obj)) {
return false;
}
@@ -414,9 +414,9 @@ MessagePort::~MessagePort()
}
JSObject*
MessagePort::WrapObject(JSContext* aCx)
MessagePort::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return MessagePortBinding::Wrap(aCx, this);
return MessagePortBinding::Wrap(aCx, this, aGivenProto);
}
void
+1 -1
View File
@@ -64,7 +64,7 @@ public:
explicit MessagePort(nsPIDOMWindow* aWindow);
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual void
PostMessageMoz(JSContext* aCx, JS::Handle<JS::Value> aMessage,
+2 -2
View File
@@ -20,9 +20,9 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MessagePortList)
NS_INTERFACE_MAP_END
JSObject*
MessagePortList::WrapObject(JSContext* aCx)
MessagePortList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return MessagePortListBinding::Wrap(aCx, this);
return MessagePortListBinding::Wrap(aCx, this, aGivenProto);
}
} // namespace dom
+1 -1
View File
@@ -41,7 +41,7 @@ public:
}
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
uint32_t
Length() const
+2 -2
View File
@@ -2231,9 +2231,9 @@ Navigator::GetOwnPropertyNames(JSContext* aCx, nsTArray<nsString>& aNames,
}
JSObject*
Navigator::WrapObject(JSContext* cx)
Navigator::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
{
return NavigatorBinding::Wrap(cx, this);
return NavigatorBinding::Wrap(cx, this, aGivenProto);
}
/* static */
+1 -1
View File
@@ -321,7 +321,7 @@ public:
return GetWindow();
}
virtual JSObject* WrapObject(JSContext* cx) override;
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto) override;
// GetWindowFromGlobal returns the inner window for this global, if
// any, else null.
+2 -2
View File
@@ -289,9 +289,9 @@ void NodeIterator::ContentRemoved(nsIDocument *aDocument,
}
bool
NodeIterator::WrapObject(JSContext *cx, JS::MutableHandle<JSObject*> aReflector)
NodeIterator::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
{
return NodeIteratorBinding::Wrap(cx, this, aReflector);
return NodeIteratorBinding::Wrap(cx, this, aGivenProto, aReflector);
}
} // namespace dom
+1 -1
View File
@@ -69,7 +69,7 @@ public:
}
// The XPCOM Detach() is fine for our purposes
bool WrapObject(JSContext *cx, JS::MutableHandle<JSObject*> aReflector);
bool WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
private:
virtual ~NodeIterator();
+2 -2
View File
@@ -34,7 +34,7 @@ PerformanceEntry::~PerformanceEntry()
}
JSObject*
PerformanceEntry::WrapObject(JSContext* aCx)
PerformanceEntry::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return mozilla::dom::PerformanceEntryBinding::Wrap(aCx, this);
return mozilla::dom::PerformanceEntryBinding::Wrap(aCx, this, aGivenProto);
}
+1 -1
View File
@@ -27,7 +27,7 @@ public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(PerformanceEntry)
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
nsPerformance* GetParentObject() const
{
+2 -2
View File
@@ -21,7 +21,7 @@ PerformanceMark::~PerformanceMark()
}
JSObject*
PerformanceMark::WrapObject(JSContext* aCx)
PerformanceMark::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return PerformanceMarkBinding::Wrap(aCx, this);
return PerformanceMarkBinding::Wrap(aCx, this, aGivenProto);
}
+1 -1
View File
@@ -18,7 +18,7 @@ public:
PerformanceMark(nsPerformance* aPerformance,
const nsAString& aName);
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual DOMHighResTimeStamp StartTime() const override
{
+2 -2
View File
@@ -24,7 +24,7 @@ PerformanceMeasure::~PerformanceMeasure()
}
JSObject*
PerformanceMeasure::WrapObject(JSContext* aCx)
PerformanceMeasure::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return PerformanceMeasureBinding::Wrap(aCx, this);
return PerformanceMeasureBinding::Wrap(aCx, this, aGivenProto);
}
+1 -1
View File
@@ -20,7 +20,7 @@ public:
DOMHighResTimeStamp aStartTime,
DOMHighResTimeStamp aEndTime);
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual DOMHighResTimeStamp StartTime() const override
{
+2 -2
View File
@@ -43,7 +43,7 @@ PerformanceResourceTiming::StartTime() const
}
JSObject*
PerformanceResourceTiming::WrapObject(JSContext* aCx)
PerformanceResourceTiming::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return PerformanceResourceTimingBinding::Wrap(aCx, this);
return PerformanceResourceTimingBinding::Wrap(aCx, this, aGivenProto);
}
+1 -1
View File
@@ -31,7 +31,7 @@ public:
nsPerformance* aPerformance,
const nsAString& aName);
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
virtual DOMHighResTimeStamp StartTime() const override;
+1 -1
View File
@@ -58,7 +58,7 @@ public:
}
virtual nsIPrincipal* GetPrincipal() override { return mPrincipal; }
virtual JSObject* WrapObject(JSContext* cx) override
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto) override
{
MOZ_CRASH("ProcessGlobal doesn't use DOM bindings!");
}
+2 -2
View File
@@ -104,9 +104,9 @@ ShadowRoot::~ShadowRoot()
}
JSObject*
ShadowRoot::WrapObject(JSContext* aCx)
ShadowRoot::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return mozilla::dom::ShadowRootBinding::Wrap(aCx, this);
return mozilla::dom::ShadowRootBinding::Wrap(aCx, this, aGivenProto);
}
ShadowRoot*
+1 -1
View File
@@ -103,7 +103,7 @@ public:
nsIContent* GetPoolHost() { return mPoolHost; }
nsTArray<HTMLShadowElement*>& ShadowDescendants() { return mShadowDescendants; }
JSObject* WrapObject(JSContext* aCx) override;
JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static bool IsPooledNode(nsIContent* aChild, nsIContent* aContainer,
nsIContent* aHost);
+2
View File
@@ -39,6 +39,8 @@ enum StructuredCloneTags {
SCTAG_DOM_SYSTEM_PRINCIPAL,
SCTAG_DOM_CONTENT_PRINCIPAL,
SCTAG_DOM_NFC_NDEF,
SCTAG_DOM_MAX
};
+2 -2
View File
@@ -23,9 +23,9 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(StyleSheetList)
NS_IMPL_CYCLE_COLLECTING_RELEASE(StyleSheetList)
/* virtual */ JSObject*
StyleSheetList::WrapObject(JSContext* aCx)
StyleSheetList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return StyleSheetListBinding::Wrap(aCx, this);
return StyleSheetListBinding::Wrap(aCx, this, aGivenProto);
}
NS_IMETHODIMP
+1 -1
View File
@@ -24,7 +24,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(StyleSheetList)
NS_DECL_NSIDOMSTYLESHEETLIST
virtual JSObject* WrapObject(JSContext* aCx) override final;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override final;
virtual nsINode* GetParentObject() const = 0;
+2 -2
View File
@@ -29,9 +29,9 @@ SubtleCrypto::SubtleCrypto(nsIGlobalObject* aParent)
}
JSObject*
SubtleCrypto::WrapObject(JSContext* aCx)
SubtleCrypto::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return SubtleCryptoBinding::Wrap(aCx, this);
return SubtleCryptoBinding::Wrap(aCx, this, aGivenProto);
}
#define SUBTLECRYPTO_METHOD_BODY(Operation, aRv, ...) \
+1 -1
View File
@@ -38,7 +38,7 @@ public:
return mParent;
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
already_AddRefed<Promise> Encrypt(JSContext* cx,
const ObjectOrString& algorithm,
+2 -2
View File
@@ -451,9 +451,9 @@ TreeWalker::NextSiblingInternal(bool aReversed, ErrorResult& aResult)
}
bool
TreeWalker::WrapObject(JSContext *aCx, JS::MutableHandle<JSObject*> aReflector)
TreeWalker::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
{
return TreeWalkerBinding::Wrap(aCx, this, aReflector);
return TreeWalkerBinding::Wrap(aCx, this, aGivenProto, aReflector);
}
} // namespace dom
+1 -1
View File
@@ -65,7 +65,7 @@ public:
already_AddRefed<nsINode> PreviousNode(ErrorResult& aResult);
already_AddRefed<nsINode> NextNode(ErrorResult& aResult);
bool WrapObject(JSContext *aCx, JS::MutableHandle<JSObject*> aReflector);
bool WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
private:
nsCOMPtr<nsINode> mCurrentNode;
+2 -2
View File
@@ -47,9 +47,9 @@ URL::URL(nsIURI* aURI)
}
bool
URL::WrapObject(JSContext* aCx, JS::MutableHandle<JSObject*> aReflector)
URL::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
{
return URLBinding::Wrap(aCx, this, aReflector);
return URLBinding::Wrap(aCx, this, aGivenProto, aReflector);
}
/* static */ already_AddRefed<URL>
+1 -1
View File
@@ -44,7 +44,7 @@ public:
// WebIDL methods
bool
WrapObject(JSContext* aCx, JS::MutableHandle<JSObject*> aReflector);
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
static already_AddRefed<URL>
Constructor(const GlobalObject& aGlobal, const nsAString& aUrl,
+2 -2
View File
@@ -30,9 +30,9 @@ URLSearchParams::~URLSearchParams()
}
JSObject*
URLSearchParams::WrapObject(JSContext* aCx)
URLSearchParams::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return URLSearchParamsBinding::Wrap(aCx, this);
return URLSearchParamsBinding::Wrap(aCx, this, aGivenProto);
}
/* static */ already_AddRefed<URLSearchParams>
+1 -1
View File
@@ -44,7 +44,7 @@ public:
}
virtual JSObject*
WrapObject(JSContext* aCx) override;
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<URLSearchParams>
Constructor(const GlobalObject& aGlobal, const nsAString& aInit,
+2 -2
View File
@@ -978,9 +978,9 @@ WebSocket::~WebSocket()
}
JSObject*
WebSocket::WrapObject(JSContext* cx)
WebSocket::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
{
return WebSocketBinding::Wrap(cx, this);
return WebSocketBinding::Wrap(cx, this, aGivenProto);
}
//---------------------------------------------------------------------------
+1 -1
View File
@@ -62,7 +62,7 @@ public:
// nsWrapperCache
nsPIDOMWindow* GetParentObject() { return GetOwner(); }
virtual JSObject* WrapObject(JSContext* cx) override;
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto) override;
public: // static helpers:
+8 -8
View File
@@ -148,9 +148,9 @@ NS_IMPL_ADDREF_INHERITED(nsSimpleContentList, nsBaseContentList)
NS_IMPL_RELEASE_INHERITED(nsSimpleContentList, nsBaseContentList)
JSObject*
nsSimpleContentList::WrapObject(JSContext *cx)
nsSimpleContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return NodeListBinding::Wrap(cx, this);
return NodeListBinding::Wrap(cx, this, aGivenProto);
}
// Hashtable for storing nsContentLists
@@ -260,16 +260,16 @@ const nsCacheableFuncStringContentList::ContentListType
#endif
JSObject*
nsCacheableFuncStringNodeList::WrapObject(JSContext *cx)
nsCacheableFuncStringNodeList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return NodeListBinding::Wrap(cx, this);
return NodeListBinding::Wrap(cx, this, aGivenProto);
}
JSObject*
nsCacheableFuncStringHTMLCollection::WrapObject(JSContext *cx)
nsCacheableFuncStringHTMLCollection::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return HTMLCollectionBinding::Wrap(cx, this);
return HTMLCollectionBinding::Wrap(cx, this, aGivenProto);
}
// Hashtable for storing nsCacheableFuncStringContentList
@@ -470,9 +470,9 @@ nsContentList::~nsContentList()
}
JSObject*
nsContentList::WrapObject(JSContext *cx)
nsContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
{
return HTMLCollectionBinding::Wrap(cx, this);
return HTMLCollectionBinding::Wrap(cx, this, aGivenProto);
}
NS_IMPL_ISUPPORTS_INHERITED(nsContentList, nsBaseContentList,
+5 -5
View File
@@ -87,7 +87,7 @@ public:
virtual int32_t IndexOf(nsIContent *aContent, bool aDoFlush);
virtual JSObject* WrapObject(JSContext *cx)
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
override = 0;
void SetCapacity(uint32_t aCapacity)
@@ -128,7 +128,7 @@ public:
{
return mRoot;
}
virtual JSObject* WrapObject(JSContext *cx) override;
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
protected:
virtual ~nsSimpleContentList() {}
@@ -254,7 +254,7 @@ public:
// nsWrapperCache
using nsWrapperCache::GetWrapperPreserveColor;
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
protected:
virtual ~nsContentList();
@@ -541,7 +541,7 @@ public:
#endif
}
virtual JSObject* WrapObject(JSContext *cx) override;
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
#ifdef DEBUG
static const ContentListType sType;
@@ -565,7 +565,7 @@ public:
#endif
}
virtual JSObject* WrapObject(JSContext *cx) override;
virtual JSObject* WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
#ifdef DEBUG
static const ContentListType sType;
+2 -2
View File
@@ -587,7 +587,7 @@ nsDOMAttributeMap::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
}
/* virtual */ JSObject*
nsDOMAttributeMap::WrapObject(JSContext* aCx)
nsDOMAttributeMap::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return NamedNodeMapBinding::Wrap(aCx, this);
return NamedNodeMapBinding::Wrap(aCx, this, aGivenProto);
}
+1 -1
View File
@@ -140,7 +140,7 @@ public:
{
return mContent;
}
virtual JSObject* WrapObject(JSContext* aCx) override;
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
// WebIDL
Attr* GetNamedItem(const nsAString& aAttrName);
+2 -2
View File
@@ -56,9 +56,9 @@ nsDOMCaretPosition::GetClientRect() const
}
JSObject*
nsDOMCaretPosition::WrapObject(JSContext *aCx)
nsDOMCaretPosition::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
{
return mozilla::dom::CaretPositionBinding::Wrap(aCx, this);
return mozilla::dom::CaretPositionBinding::Wrap(aCx, this, aGivenProto);
}
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(nsDOMCaretPosition,
+1 -1
View File
@@ -85,7 +85,7 @@ public:
return GetOffsetNode();
}
virtual JSObject* WrapObject(JSContext *aCx)
virtual JSObject* WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
override final;
protected:
+2 -2
View File
@@ -53,9 +53,9 @@ nsDOMDataChannel::~nsDOMDataChannel()
}
/* virtual */ JSObject*
nsDOMDataChannel::WrapObject(JSContext* aCx)
nsDOMDataChannel::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DataChannelBinding::Wrap(aCx, this);
return DataChannelBinding::Wrap(aCx, this, aGivenProto);
}
NS_IMPL_CYCLE_COLLECTION_CLASS(nsDOMDataChannel)

Some files were not shown because too many files have changed in this diff Show More