Bug 1835710 - Cancel off-thread JIT compilation before changing nursery allocation...
[gecko.git] / dom / base / PlacesEvent.cpp
blobd298ffc7fa97a02af4d86d23c048bad6c36c7ed1
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "mozilla/dom/PlacesEvent.h"
9 namespace mozilla::dom {
11 NS_IMPL_CYCLE_COLLECTION_CLASS(PlacesEvent)
13 NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(PlacesEvent)
14 NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
15 NS_IMPL_CYCLE_COLLECTION_UNLINK_END
17 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(PlacesEvent)
18 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
20 NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(PlacesEvent)
21 NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER
22 NS_IMPL_CYCLE_COLLECTION_TRACE_END
24 already_AddRefed<PlacesEvent> PlacesEvent::Constructor(
25 const GlobalObject& aGlobal, PlacesEventType aType, ErrorResult& rv) {
26 RefPtr<PlacesEvent> event = new PlacesEvent(aType);
27 return event.forget();
30 nsISupports* PlacesEvent::GetParentObject() const { return nullptr; }
32 JSObject* PlacesEvent::WrapObject(JSContext* aCx,
33 JS::Handle<JSObject*> aGivenProto) {
34 return PlacesEvent_Binding::Wrap(aCx, this, aGivenProto);
37 } // namespace mozilla::dom