Backed out 2 changesets (bug 1856795) for causing build bustage at BasicEvents.h CLOSED TREE

Backed out changeset 1d98b028923a (bug 1856795)
Backed out changeset eae2ac93e17c (bug 1856795)
This commit is contained in:
Cristina Horotan 2023-10-14 21:42:14 +03:00
parent f9dafb4c99
commit 6a90f5eded
212 changed files with 538 additions and 255 deletions

View File

@ -17,7 +17,8 @@ using namespace mozilla::a11y;
// ApplicationAccessibleWrap // ApplicationAccessibleWrap
ApplicationAccessibleWrap::ApplicationAccessibleWrap() = default; ApplicationAccessibleWrap::ApplicationAccessibleWrap()
: ApplicationAccessible() {}
ApplicationAccessibleWrap::~ApplicationAccessibleWrap() { ApplicationAccessibleWrap::~ApplicationAccessibleWrap() {
AccessibleWrap::ShutdownAtkObject(); AccessibleWrap::ShutdownAtkObject();

View File

@ -13,7 +13,8 @@
using namespace mozilla::a11y; using namespace mozilla::a11y;
GtkWindowAccessible::GtkWindowAccessible(AtkObject* aAccessible) { GtkWindowAccessible::GtkWindowAccessible(AtkObject* aAccessible)
: DummyAccessible() {
g_object_ref(aAccessible); g_object_ref(aAccessible);
mAtkObject = aAccessible; mAtkObject = aAccessible;
} }

View File

@ -397,7 +397,9 @@ xpcAccessibleApplication* nsAccessibilityService::gXPCApplicationAccessible =
uint32_t nsAccessibilityService::gConsumers = 0; uint32_t nsAccessibilityService::gConsumers = 0;
nsAccessibilityService::nsAccessibilityService() nsAccessibilityService::nsAccessibilityService()
: mHTMLMarkupMap(ArrayLength(sHTMLMarkupMapList)), : DocManager(),
FocusManager(),
mHTMLMarkupMap(ArrayLength(sHTMLMarkupMapList)),
mMathMLMarkupMap(ArrayLength(sMathMLMarkupMapList)), mMathMLMarkupMap(ArrayLength(sMathMLMarkupMapList)),
mXULMarkupMap(ArrayLength(sXULMarkupMapList)) {} mXULMarkupMap(ArrayLength(sXULMarkupMapList)) {}

View File

@ -101,10 +101,12 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(LocalAccessible)
NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_DESTROY(LocalAccessible, LastRelease()) NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_DESTROY(LocalAccessible, LastRelease())
LocalAccessible::LocalAccessible(nsIContent* aContent, DocAccessible* aDoc) LocalAccessible::LocalAccessible(nsIContent* aContent, DocAccessible* aDoc)
: mContent(aContent), : Accessible(),
mContent(aContent),
mDoc(aDoc), mDoc(aDoc),
mParent(nullptr), mParent(nullptr),
mIndexInParent(-1), mIndexInParent(-1),
mBounds(),
mFirstLineStart(-1), mFirstLineStart(-1),
mStateFlags(0), mStateFlags(0),
mContextFlags(0), mContextFlags(0),

View File

@ -413,7 +413,8 @@ class RemoteAccessible : public Accessible, public HyperTextAccessibleBase {
} }
explicit RemoteAccessible(DocAccessibleParent* aThisAsDoc) explicit RemoteAccessible(DocAccessibleParent* aThisAsDoc)
: mParent(kNoParent), : Accessible(),
mParent(kNoParent),
mDoc(aThisAsDoc), mDoc(aThisAsDoc),
mWrapper(0), mWrapper(0),
mID(0), mID(0),

View File

@ -18,7 +18,7 @@ using testing::ReturnRef;
// A mock DeserializedStackFrame for testing. // A mock DeserializedStackFrame for testing.
struct MockDeserializedStackFrame : public DeserializedStackFrame { struct MockDeserializedStackFrame : public DeserializedStackFrame {
MockDeserializedStackFrame() = default; MockDeserializedStackFrame() : DeserializedStackFrame() {}
}; };
DEF_TEST(DeserializedStackFrameUbiStackFrames, { DEF_TEST(DeserializedStackFrameUbiStackFrames, {

View File

@ -99,7 +99,7 @@ class MOZ_STACK_CLASS FakeNode {
JS::Zone* zone; JS::Zone* zone;
size_t size; size_t size;
explicit FakeNode() : compartment(nullptr), zone(nullptr), size(1) {} explicit FakeNode() : edges(), compartment(nullptr), zone(nullptr), size(1) {}
}; };
namespace JS { namespace JS {
@ -199,7 +199,7 @@ MATCHER_P(EdgeTo, id, "") {
// A mock `Writer` class to be used with testing `WriteHeapGraph`. // A mock `Writer` class to be used with testing `WriteHeapGraph`.
class MockWriter : public CoreDumpWriter { class MockWriter : public CoreDumpWriter {
public: public:
virtual ~MockWriter() override = default; virtual ~MockWriter() override {}
MOCK_METHOD2(writeNode, MOCK_METHOD2(writeNode,
bool(const JS::ubi::Node&, CoreDumpWriter::EdgePolicy)); bool(const JS::ubi::Node&, CoreDumpWriter::EdgePolicy));
MOCK_METHOD1(writeMetadata, bool(uint64_t)); MOCK_METHOD1(writeMetadata, bool(uint64_t));

View File

@ -222,6 +222,7 @@ nsDocShellLoadState::nsDocShellLoadState(nsIURI* aURI, uint64_t aLoadIdentifier)
mOriginalFrameSrc(false), mOriginalFrameSrc(false),
mIsFormSubmission(false), mIsFormSubmission(false),
mLoadType(LOAD_NORMAL), mLoadType(LOAD_NORMAL),
mTarget(),
mSrcdocData(VoidString()), mSrcdocData(VoidString()),
mLoadFlags(0), mLoadFlags(0),
mInternalLoadFlags(0), mInternalLoadFlags(0),

View File

@ -2051,7 +2051,7 @@ void Animation::UpdatePendingAnimationTracker(AnimationTimeline* aOldTimeline,
class AsyncFinishNotification : public MicroTaskRunnable { class AsyncFinishNotification : public MicroTaskRunnable {
public: public:
explicit AsyncFinishNotification(Animation* aAnimation) explicit AsyncFinishNotification(Animation* aAnimation)
: mAnimation(aAnimation) {} : MicroTaskRunnable(), mAnimation(aAnimation) {}
virtual void Run(AutoSlowOperation& aAso) override { virtual void Run(AutoSlowOperation& aAso) override {
mAnimation->DoFinishNotificationImmediately(this); mAnimation->DoFinishNotificationImmediately(this);

View File

@ -559,7 +559,8 @@ size_t nsIContent::nsExtendedContentSlots::SizeOfExcludingThis(
return 0; return 0;
} }
FragmentOrElement::nsDOMSlots::nsDOMSlots() : mDataset(nullptr) { FragmentOrElement::nsDOMSlots::nsDOMSlots()
: nsIContent::nsContentSlots(), mDataset(nullptr) {
MOZ_COUNT_CTOR(nsDOMSlots); MOZ_COUNT_CTOR(nsDOMSlots);
} }

View File

@ -84,6 +84,7 @@ class EncodingCompleteEvent final : public DiscardableRunnable {
EncodeCompleteCallback* aEncodeCompleteCallback) EncodeCompleteCallback* aEncodeCompleteCallback)
: DiscardableRunnable("EncodingCompleteEvent"), : DiscardableRunnable("EncodingCompleteEvent"),
mImgSize(0), mImgSize(0),
mType(),
mImgData(nullptr), mImgData(nullptr),
mEncodeCompleteCallback(aEncodeCompleteCallback), mEncodeCompleteCallback(aEncodeCompleteCallback),
mFailed(false) { mFailed(false) {

View File

@ -66,7 +66,7 @@ class nsAsyncMessageToParent : public nsSameProcessAsyncMessageBase,
public: public:
explicit nsAsyncMessageToParent( explicit nsAsyncMessageToParent(
InProcessBrowserChildMessageManager* aBrowserChild) InProcessBrowserChildMessageManager* aBrowserChild)
: mBrowserChild(aBrowserChild) {} : nsSameProcessAsyncMessageBase(), mBrowserChild(aBrowserChild) {}
virtual nsresult HandleMessage() override { virtual nsresult HandleMessage() override {
RefPtr<nsFrameLoader> fl = mBrowserChild->GetFrameLoader(); RefPtr<nsFrameLoader> fl = mBrowserChild->GetFrameLoader();

View File

@ -2952,7 +2952,8 @@ class nsAsyncMessageToChild : public nsSameProcessAsyncMessageBase,
public Runnable { public Runnable {
public: public:
explicit nsAsyncMessageToChild(nsFrameLoader* aFrameLoader) explicit nsAsyncMessageToChild(nsFrameLoader* aFrameLoader)
: mozilla::Runnable("nsAsyncMessageToChild"), : nsSameProcessAsyncMessageBase(),
mozilla::Runnable("nsAsyncMessageToChild"),
mFrameLoader(aFrameLoader) {} mFrameLoader(aFrameLoader) {}
NS_IMETHOD Run() override { NS_IMETHOD Run() override {

View File

@ -1403,7 +1403,8 @@ class nsAsyncMessageToSameProcessChild : public nsSameProcessAsyncMessageBase,
public Runnable { public Runnable {
public: public:
nsAsyncMessageToSameProcessChild() nsAsyncMessageToSameProcessChild()
: mozilla::Runnable("nsAsyncMessageToSameProcessChild") {} : nsSameProcessAsyncMessageBase(),
mozilla::Runnable("nsAsyncMessageToSameProcessChild") {}
NS_IMETHOD Run() override { NS_IMETHOD Run() override {
nsFrameMessageManager* ppm = nsFrameMessageManager* ppm =
nsFrameMessageManager::GetChildProcessManager(); nsFrameMessageManager::GetChildProcessManager();
@ -1497,7 +1498,7 @@ class nsAsyncMessageToSameProcessParent
: public nsSameProcessAsyncMessageBase, : public nsSameProcessAsyncMessageBase,
public SameProcessMessageQueue::Runnable { public SameProcessMessageQueue::Runnable {
public: public:
nsAsyncMessageToSameProcessParent() = default; nsAsyncMessageToSameProcessParent() : nsSameProcessAsyncMessageBase() {}
nsresult HandleMessage() override { nsresult HandleMessage() override {
nsFrameMessageManager* ppm = nsFrameMessageManager* ppm =
nsFrameMessageManager::sSameProcessParentManager; nsFrameMessageManager::sSameProcessParentManager;

View File

@ -1261,7 +1261,7 @@ const nsOuterWindowProxy nsOuterWindowProxy::singleton;
class nsChromeOuterWindowProxy : public nsOuterWindowProxy { class nsChromeOuterWindowProxy : public nsOuterWindowProxy {
public: public:
constexpr nsChromeOuterWindowProxy() = default; constexpr nsChromeOuterWindowProxy() : nsOuterWindowProxy() {}
const char* className(JSContext* cx, const char* className(JSContext* cx,
JS::Handle<JSObject*> wrapper) const override; JS::Handle<JSObject*> wrapper) const override;

View File

@ -661,7 +661,7 @@ class nsIContent : public nsINode {
class nsContentSlots : public nsINode::nsSlots { class nsContentSlots : public nsINode::nsSlots {
public: public:
nsContentSlots() : mExtendedSlots(0) {} nsContentSlots() : nsINode::nsSlots(), mExtendedSlots(0) {}
~nsContentSlots() { ~nsContentSlots() {
if (!(mExtendedSlots & sNonOwningExtendedSlotsFlag)) { if (!(mExtendedSlots & sNonOwningExtendedSlotsFlag)) {

View File

@ -347,7 +347,8 @@ already_AddRefed<Promise> nsImageLoadingContent::QueueDecodeAsync(
public: public:
QueueDecodeTask(nsImageLoadingContent* aOwner, Promise* aPromise, QueueDecodeTask(nsImageLoadingContent* aOwner, Promise* aPromise,
uint32_t aRequestGeneration) uint32_t aRequestGeneration)
: mOwner(aOwner), : MicroTaskRunnable(),
mOwner(aOwner),
mPromise(aPromise), mPromise(aPromise),
mRequestGeneration(aRequestGeneration) {} mRequestGeneration(aRequestGeneration) {}

View File

@ -193,6 +193,8 @@ class nsWindowSizes {
explicit nsWindowSizes(mozilla::SizeOfState& aState) explicit nsWindowSizes(mozilla::SizeOfState& aState)
: FOR_EACH_SIZE(ZERO_SIZE) mDOMEventTargetsCount(0), : FOR_EACH_SIZE(ZERO_SIZE) mDOMEventTargetsCount(0),
mDOMEventListenersCount(0), mDOMEventListenersCount(0),
mArenaSizes(),
mStyleSizes(),
mState(aState) {} mState(aState) {}
void addToTabSizes(nsTabSizes* aSizes) const { void addToTabSizes(nsTabSizes* aSizes) const {

View File

@ -21,10 +21,16 @@
#include "mozilla/BasePrincipal.h" #include "mozilla/BasePrincipal.h"
nsScriptErrorBase::nsScriptErrorBase() nsScriptErrorBase::nsScriptErrorBase()
: mSourceId(0), : mMessage(),
mMessageName(),
mSourceName(),
mCssSelectors(),
mSourceId(0),
mLineNumber(0), mLineNumber(0),
mSourceLine(),
mColumnNumber(0), mColumnNumber(0),
mFlags(0), mFlags(0),
mCategory(),
mOuterWindowID(0), mOuterWindowID(0),
mInnerWindowID(0), mInnerWindowID(0),
mMicroSecondTimeStamp(0), mMicroSecondTimeStamp(0),
@ -467,7 +473,11 @@ bool nsScriptErrorBase::ComputeIsFromChromeContext(
NS_IMPL_ISUPPORTS(nsScriptError, nsIConsoleMessage, nsIScriptError) NS_IMPL_ISUPPORTS(nsScriptError, nsIConsoleMessage, nsIScriptError)
nsScriptErrorNote::nsScriptErrorNote() nsScriptErrorNote::nsScriptErrorNote()
: mSourceId(0), mLineNumber(0), mColumnNumber(0) {} : mMessage(),
mSourceName(),
mSourceId(0),
mLineNumber(0),
mColumnNumber(0) {}
nsScriptErrorNote::~nsScriptErrorNote() = default; nsScriptErrorNote::~nsScriptErrorNote() = default;

View File

@ -14,6 +14,7 @@ CanvasPattern::CanvasPattern(CanvasRenderingContext2D* aContext,
: mContext(aContext), : mContext(aContext),
mSurface(aSurface), mSurface(aSurface),
mPrincipal(principalForSecurityCheck), mPrincipal(principalForSecurityCheck),
mTransform(),
mForceWriteOnly(forceWriteOnly), mForceWriteOnly(forceWriteOnly),
mCORSUsed(CORSUsed), mCORSUsed(CORSUsed),
mRepeat(aRepeat) {} mRepeat(aRepeat) {}

View File

@ -37,7 +37,7 @@ class DebuggerNotificationManager final : public nsISupports {
} }
explicit DebuggerNotificationManager(nsIGlobalObject* aDebuggeeGlobal) explicit DebuggerNotificationManager(nsIGlobalObject* aDebuggeeGlobal)
: mDebuggeeGlobal(aDebuggeeGlobal) {} : mDebuggeeGlobal(aDebuggeeGlobal), mNotificationObservers() {}
bool Attach(DebuggerNotificationObserver* aObserver); bool Attach(DebuggerNotificationObserver* aObserver);
bool Detach(DebuggerNotificationObserver* aObserver); bool Detach(DebuggerNotificationObserver* aObserver);

View File

@ -39,7 +39,7 @@ DebuggerNotificationObserver::Constructor(GlobalObject& aGlobal,
DebuggerNotificationObserver::DebuggerNotificationObserver( DebuggerNotificationObserver::DebuggerNotificationObserver(
nsIGlobalObject* aOwnerGlobal) nsIGlobalObject* aOwnerGlobal)
: mOwnerGlobal(aOwnerGlobal) {} : mEventListenerCallbacks(), mOwnerGlobal(aOwnerGlobal) {}
JSObject* DebuggerNotificationObserver::WrapObject( JSObject* DebuggerNotificationObserver::WrapObject(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) { JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {

View File

@ -134,7 +134,7 @@ EventListenerManagerBase::EventListenerManagerBase()
} }
EventListenerManager::EventListenerManager(EventTarget* aTarget) EventListenerManager::EventListenerManager(EventTarget* aTarget)
: mTarget(aTarget) { : EventListenerManagerBase(), mTarget(aTarget) {
NS_ASSERTION(aTarget, "unexpected null pointer"); NS_ASSERTION(aTarget, "unexpected null pointer");
if (mIsMainThreadELM) { if (mIsMainThreadELM) {

View File

@ -219,6 +219,7 @@ FileSystemWritableFileStream::FileSystemWritableFileStream(
mManager(aManager), mManager(aManager),
mActor(std::move(aActor)), mActor(std::move(aActor)),
mTaskQueue(aTaskQueue), mTaskQueue(aTaskQueue),
mWorkerRef(),
mStreamParams(std::move(aStreamParams)), mStreamParams(std::move(aStreamParams)),
mMetadata(std::move(aMetadata)), mMetadata(std::move(aMetadata)),
mCloseHandler(MakeAndAddRef<CloseHandler>()), mCloseHandler(MakeAndAddRef<CloseHandler>()),

View File

@ -81,6 +81,7 @@ class DoubleBufferQueueImpl
using DataType = FileSystemEntryMetadata; using DataType = FileSystemEntryMetadata;
explicit DoubleBufferQueueImpl(const FileSystemEntryMetadata& aMetadata) explicit DoubleBufferQueueImpl(const FileSystemEntryMetadata& aMetadata)
: mEntryId(aMetadata.entryId()), : mEntryId(aMetadata.entryId()),
mData(),
mWithinPageEnd(0u), mWithinPageEnd(0u),
mWithinPageIndex(0u), mWithinPageIndex(0u),
mCurrentPageIsLastPage(true), mCurrentPageIsLastPage(true),

View File

@ -127,7 +127,10 @@ class TestPromiseListener : public PromiseNativeHandler,
public WaitablePromiseListener { public WaitablePromiseListener {
public: public:
TestPromiseListener() TestPromiseListener()
: mIsDone(std::make_shared<bool>(false)), mOnSuccess(), mOnError() { : mIsDone(std::make_shared<bool>(false)),
mTimer(),
mOnSuccess(),
mOnError() {
ClearDone(); ClearDone();
} }

View File

@ -56,7 +56,7 @@ bool ConstraintValidation::CheckValidity() {
return nsIConstraintValidation::CheckValidity(*content); return nsIConstraintValidation::CheckValidity(*content);
} }
ConstraintValidation::ConstraintValidation() = default; ConstraintValidation::ConstraintValidation() : nsIConstraintValidation() {}
void ConstraintValidation::SetCustomValidity(const nsAString& aError) { void ConstraintValidation::SetCustomValidity(const nsAString& aError) {
mCustomValidity.Assign(aError); mCustomValidity.Assign(aError);

View File

@ -84,7 +84,8 @@ class ImageLoadTask final : public MicroTaskRunnable {
public: public:
ImageLoadTask(HTMLImageElement* aElement, bool aAlwaysLoad, ImageLoadTask(HTMLImageElement* aElement, bool aAlwaysLoad,
bool aUseUrgentStartForChannel) bool aUseUrgentStartForChannel)
: mElement(aElement), : MicroTaskRunnable(),
mElement(aElement),
mAlwaysLoad(aAlwaysLoad), mAlwaysLoad(aAlwaysLoad),
mUseUrgentStartForChannel(aUseUrgentStartForChannel) { mUseUrgentStartForChannel(aUseUrgentStartForChannel) {
mDocument = aElement->OwnerDoc(); mDocument = aElement->OwnerDoc();

View File

@ -122,7 +122,8 @@ ImageListener::OnStartRequest(nsIRequest* request) {
} }
ImageDocument::ImageDocument() ImageDocument::ImageDocument()
: mVisibleWidth(0.0), : MediaDocument(),
mVisibleWidth(0.0),
mVisibleHeight(0.0), mVisibleHeight(0.0),
mImageWidth(0), mImageWidth(0),
mImageHeight(0), mImageHeight(0),

View File

@ -106,7 +106,8 @@ const char* const MediaDocument::sFormatNames[4] = {
"" // eWithDimAndFile "" // eWithDimAndFile
}; };
MediaDocument::MediaDocument() : mDidInitialDocumentSetup(false) { MediaDocument::MediaDocument()
: nsHTMLDocument(), mDidInitialDocumentSetup(false) {
mCompatMode = eCompatibility_FullStandards; mCompatMode = eCompatibility_FullStandards;
} }
MediaDocument::~MediaDocument() = default; MediaDocument::~MediaDocument() = default;

View File

@ -46,6 +46,7 @@ class nsGenericHTMLFrameElement : public nsGenericHTMLElement,
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
mozilla::dom::FromParser aFromParser) mozilla::dom::FromParser aFromParser)
: nsGenericHTMLElement(std::move(aNodeInfo)), : nsGenericHTMLElement(std::move(aNodeInfo)),
nsBrowserElement(),
mSrcLoadHappened(false), mSrcLoadHappened(false),
mNetworkCreated(aFromParser == mozilla::dom::FROM_PARSER_NETWORK), mNetworkCreated(aFromParser == mozilla::dom::FROM_PARSER_NETWORK),
mBrowserFrameListenersRegistered(false), mBrowserFrameListenersRegistered(false),

View File

@ -144,7 +144,9 @@ class MOZ_STACK_CLASS AutoSetCurrentTransaction final {
AutoSetCurrentTransaction& operator=(AutoSetCurrentTransaction&&) = delete; AutoSetCurrentTransaction& operator=(AutoSetCurrentTransaction&&) = delete;
explicit AutoSetCurrentTransaction(Maybe<IDBTransaction&> aTransaction) explicit AutoSetCurrentTransaction(Maybe<IDBTransaction&> aTransaction)
: mTransaction(aTransaction), mThreadLocal(nullptr) { : mTransaction(aTransaction),
mPreviousTransaction(),
mThreadLocal(nullptr) {
if (aTransaction) { if (aTransaction) {
BackgroundChildImpl::ThreadLocal* threadLocal = BackgroundChildImpl::ThreadLocal* threadLocal =
BackgroundChildImpl::GetThreadLocalForCurrentThread(); BackgroundChildImpl::GetThreadLocalForCurrentThread();

View File

@ -284,6 +284,8 @@ BrowserParent::BrowserParent(ContentParent* aManager, const TabId& aTabId,
mBrowserBridgeParent(nullptr), mBrowserBridgeParent(nullptr),
mBrowserHost(nullptr), mBrowserHost(nullptr),
mContentCache(*this), mContentCache(*this),
mRemoteLayerTreeOwner{},
mChildToParentConversionMatrix{},
mRect(0, 0, 0, 0), mRect(0, 0, 0, 0),
mDimensions(0, 0), mDimensions(0, 0),
mDPI(0), mDPI(0),
@ -291,7 +293,10 @@ BrowserParent::BrowserParent(ContentParent* aManager, const TabId& aTabId,
mDefaultScale(0), mDefaultScale(0),
mUpdatedDimensions(false), mUpdatedDimensions(false),
mSizeMode(nsSizeMode_Normal), mSizeMode(nsSizeMode_Normal),
mClientOffset{},
mChromeOffset{},
mCreatingWindow(false), mCreatingWindow(false),
mDelayedFrameScripts{},
mVsyncParent(nullptr), mVsyncParent(nullptr),
mMarkedDestroying(false), mMarkedDestroying(false),
mIsDestroyed(false), mIsDestroyed(false),

View File

@ -39,7 +39,7 @@ static inline void AlignTo(size_t* aOffset, size_t aAlign) {
} }
} }
SharedMap::SharedMap() = default; SharedMap::SharedMap() : DOMEventTargetHelper() {}
SharedMap::SharedMap(nsIGlobalObject* aGlobal, const FileDescriptor& aMapFile, SharedMap::SharedMap(nsIGlobalObject* aGlobal, const FileDescriptor& aMapFile,
size_t aMapSize, nsTArray<RefPtr<BlobImpl>>&& aBlobs) size_t aMapSize, nsTArray<RefPtr<BlobImpl>>&& aBlobs)
@ -240,7 +240,7 @@ void SharedMap::MaybeRebuild() const {
Unused << const_cast<SharedMap*>(this)->MaybeRebuild(); Unused << const_cast<SharedMap*>(this)->MaybeRebuild();
} }
WritableSharedMap::WritableSharedMap() { WritableSharedMap::WritableSharedMap() : SharedMap() {
mWritable = true; mWritable = true;
// Serialize the initial empty contents of the map immediately so that we // Serialize the initial empty contents of the map immediately so that we
// always have a file descriptor to send to callers of CloneMapFile(). // always have a file descriptor to send to callers of CloneMapFile().

View File

@ -118,7 +118,7 @@ class FrameHeader {
// header and side info. // header and side info.
class Frame { class Frame {
public: public:
Frame() : mOffset(0) {} Frame() : mOffset(0), mHeader() {}
uint64_t Offset() const { return mOffset; } uint64_t Offset() const { return mOffset; }
size_t Length() const { size_t Length() const {

View File

@ -23,7 +23,9 @@ namespace mozilla::dom {
OutputStreamDriver::OutputStreamDriver(SourceMediaTrack* aSourceStream, OutputStreamDriver::OutputStreamDriver(SourceMediaTrack* aSourceStream,
const PrincipalHandle& aPrincipalHandle) const PrincipalHandle& aPrincipalHandle)
: mSourceStream(aSourceStream), mPrincipalHandle(aPrincipalHandle) { : FrameCaptureListener(),
mSourceStream(aSourceStream),
mPrincipalHandle(aPrincipalHandle) {
MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(mSourceStream); MOZ_ASSERT(mSourceStream);
} }

View File

@ -466,7 +466,8 @@ NonNativeInputTrack::NonNativeInputTrack(
const PrincipalHandle& aPrincipalHandle) const PrincipalHandle& aPrincipalHandle)
: DeviceInputTrack(aSampleRate, aDeviceId, aPrincipalHandle), : DeviceInputTrack(aSampleRate, aDeviceId, aPrincipalHandle),
mAudioSource(nullptr), mAudioSource(nullptr),
mSourceIdNumber(0) {} mSourceIdNumber(0),
mGraphDriverThreadId(std::thread::id()) {}
void NonNativeInputTrack::DestroyImpl() { void NonNativeInputTrack::DestroyImpl() {
MOZ_ASSERT(mGraph->OnGraphThreadOrNotRunning()); MOZ_ASSERT(mGraph->OnGraphThreadOrNotRunning());

View File

@ -66,7 +66,7 @@ const uint32_t FIXED_FRAMESIZE = 500;
class TestWebMWriter : public WebMWriter { class TestWebMWriter : public WebMWriter {
public: public:
TestWebMWriter() = default; TestWebMWriter() : WebMWriter() {}
// When we append an I-Frame into WebM muxer, the muxer will treat previous // When we append an I-Frame into WebM muxer, the muxer will treat previous
// data as "a cluster". // data as "a cluster".

View File

@ -11,7 +11,7 @@
namespace mozilla { namespace mozilla {
Sinf::Sinf(Box& aBox) : mDefaultIVSize(0) { Sinf::Sinf(Box& aBox) : mDefaultIVSize(0), mDefaultEncryptionType() {
SinfParser parser(aBox); SinfParser parser(aBox);
if (parser.GetSinf().IsValid()) { if (parser.GetSinf().IsValid()) {
*this = parser.GetSinf(); *this = parser.GetSinf();

View File

@ -18,7 +18,7 @@ class Sinf : public Atom {
public: public:
Sinf() Sinf()
: mDefaultIVSize(0), : mDefaultIVSize(0),
mDefaultEncryptionType(),
mDefaultCryptByteBlock(0), mDefaultCryptByteBlock(0),
mDefaultSkipByteBlock(0) {} mDefaultSkipByteBlock(0) {}
explicit Sinf(Box& aBox); explicit Sinf(Box& aBox);

View File

@ -10,7 +10,8 @@
namespace mozilla { namespace mozilla {
OggWriter::OggWriter() : mOggStreamState(), mOggPage(), mPacket() { OggWriter::OggWriter()
: ContainerWriter(), mOggStreamState(), mOggPage(), mPacket() {
if (NS_FAILED(Init())) { if (NS_FAILED(Init())) {
LOG("ERROR! Fail to initialize the OggWriter."); LOG("ERROR! Fail to initialize the OggWriter.");
} }

View File

@ -15,7 +15,7 @@ namespace mozilla::dom {
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(AudioListener, mContext) NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(AudioListener, mContext)
AudioListenerEngine::AudioListenerEngine() AudioListenerEngine::AudioListenerEngine()
: mFrontVector(0., 0., -1.), mRightVector(1., 0., 0.) {} : mPosition(), mFrontVector(0., 0., -1.), mRightVector(1., 0., 0.) {}
void AudioListenerEngine::RecvListenerEngineEvent( void AudioListenerEngine::RecvListenerEngineEvent(
AudioListenerEngine::AudioListenerParameter aParameter, AudioListenerEngine::AudioListenerParameter aParameter,
@ -46,7 +46,7 @@ const ThreeDPoint& AudioListenerEngine::RightVector() const {
AudioListener::AudioListener(AudioContext* aContext) AudioListener::AudioListener(AudioContext* aContext)
: mContext(aContext), : mContext(aContext),
mEngine(new AudioListenerEngine()), mEngine(new AudioListenerEngine()),
mPosition(),
mFrontVector(0., 0., -1.), mFrontVector(0., 0., -1.),
mRightVector(1., 0., 0.) { mRightVector(1., 0., 0.) {
MOZ_ASSERT(aContext); MOZ_ASSERT(aContext);

View File

@ -62,6 +62,7 @@ ReverbConvolver::ReverbConvolver(const float* impulseResponseData,
bool useBackgroundThreads, bool useBackgroundThreads,
bool* aAllocationFailure) bool* aAllocationFailure)
: m_impulseResponseLength(impulseResponseLength), : m_impulseResponseLength(impulseResponseLength),
m_accumulationBuffer(),
m_inputBuffer(InputBufferSize), m_inputBuffer(InputBufferSize),
m_backgroundThread("ConvolverWorker"), m_backgroundThread("ConvolverWorker"),
m_backgroundThreadMonitor("ConvolverMonitor"), m_backgroundThreadMonitor("ConvolverMonitor"),

View File

@ -10,7 +10,8 @@
namespace mozilla { namespace mozilla {
WebMWriter::WebMWriter() : mEbmlComposer(new EbmlComposer()) {} WebMWriter::WebMWriter()
: ContainerWriter(), mEbmlComposer(new EbmlComposer()) {}
WebMWriter::~WebMWriter() { WebMWriter::~WebMWriter() {
// Out-of-line dtor so mEbmlComposer UniquePtr can delete a complete type. // Out-of-line dtor so mEbmlComposer UniquePtr can delete a complete type.

View File

@ -331,6 +331,7 @@ bool IsPrivateBrowsing(nsPIDOMWindowInner* aWindow) {
PeerConnectionImpl::PeerConnectionImpl(const GlobalObject* aGlobal) PeerConnectionImpl::PeerConnectionImpl(const GlobalObject* aGlobal)
: mTimeCard(MOZ_LOG_TEST(logModuleInfo, LogLevel::Error) ? create_timecard() : mTimeCard(MOZ_LOG_TEST(logModuleInfo, LogLevel::Error) ? create_timecard()
: nullptr), : nullptr),
mJsConfiguration(),
mSignalingState(RTCSignalingState::Stable), mSignalingState(RTCSignalingState::Stable),
mIceConnectionState(RTCIceConnectionState::New), mIceConnectionState(RTCIceConnectionState::New),
mIceGatheringState(RTCIceGatheringState::New), mIceGatheringState(RTCIceGatheringState::New),

View File

@ -156,6 +156,7 @@ WebrtcAudioConduit::WebrtcAudioConduit(
: mCall(std::move(aCall)), : mCall(std::move(aCall)),
mSendTransport(this), mSendTransport(this),
mRecvTransport(this), mRecvTransport(this),
mRecvStreamConfig(),
mRecvStream(nullptr), mRecvStream(nullptr),
mSendStreamConfig(&mSendTransport), mSendStreamConfig(&mSendTransport),
mSendStream(nullptr), mSendStream(nullptr),

View File

@ -75,7 +75,7 @@ class SdpAttribute {
}; };
explicit SdpAttribute(AttributeType type) : mType(type) {} explicit SdpAttribute(AttributeType type) : mType(type) {}
virtual ~SdpAttribute() = default; virtual ~SdpAttribute() {}
virtual SdpAttribute* Clone() const = 0; virtual SdpAttribute* Clone() const = 0;
@ -738,7 +738,7 @@ class SdpImageattrAttributeList : public SdpAttribute {
class Imageattr { class Imageattr {
public: public:
Imageattr() : sendAll(false), recvAll(false) {} Imageattr() : pt(), sendAll(false), recvAll(false) {}
void Serialize(std::ostream& os) const; void Serialize(std::ostream& os) const;
// TODO: Remove this Bug 1469702 // TODO: Remove this Bug 1469702
bool Parse(std::istream& is, std::string* error); bool Parse(std::istream& is, std::string* error);
@ -1228,7 +1228,7 @@ class SdpFmtpAttributeList : public SdpAttribute {
explicit Parameters(SdpRtpmapAttributeList::CodecType aCodec) explicit Parameters(SdpRtpmapAttributeList::CodecType aCodec)
: codec_type(aCodec) {} : codec_type(aCodec) {}
virtual ~Parameters() = default; virtual ~Parameters() {}
virtual Parameters* Clone() const = 0; virtual Parameters* Clone() const = 0;
virtual void Serialize(std::ostream& os) const = 0; virtual void Serialize(std::ostream& os) const = 0;
virtual bool CompareEq(const Parameters& other) const = 0; virtual bool CompareEq(const Parameters& other) const = 0;
@ -1269,7 +1269,7 @@ class SdpFmtpAttributeList : public SdpAttribute {
RtxParameters() : Parameters(SdpRtpmapAttributeList::kRtx) {} RtxParameters() : Parameters(SdpRtpmapAttributeList::kRtx) {}
virtual ~RtxParameters() = default; virtual ~RtxParameters() {}
virtual Parameters* Clone() const override { virtual Parameters* Clone() const override {
return new RtxParameters(*this); return new RtxParameters(*this);

View File

@ -261,6 +261,7 @@ NrIceCtx::NrIceCtx(const std::string& name)
gathering_state_(ICE_CTX_GATHER_INIT), gathering_state_(ICE_CTX_GATHER_INIT),
name_(name), name_(name),
ice_controlling_set_(false), ice_controlling_set_(false),
streams_(),
ctx_(nullptr), ctx_(nullptr),
peer_(nullptr), peer_(nullptr),
ice_handler_vtbl_(nullptr), ice_handler_vtbl_(nullptr),

View File

@ -57,7 +57,10 @@ extern "C" {
namespace mozilla { namespace mozilla {
NrIceResolverFake::NrIceResolverFake() NrIceResolverFake::NrIceResolverFake()
: vtbl_(new nr_resolver_vtbl), delay_ms_(100), allocated_resolvers_(0) { : vtbl_(new nr_resolver_vtbl),
addrs_(),
delay_ms_(100),
allocated_resolvers_(0) {
vtbl_->destroy = &NrIceResolverFake::destroy; vtbl_->destroy = &NrIceResolverFake::destroy;
vtbl_->resolve = &NrIceResolverFake::resolve; vtbl_->resolve = &NrIceResolverFake::resolve;
vtbl_->cancel = &NrIceResolverFake::cancel; vtbl_->cancel = &NrIceResolverFake::cancel;

View File

@ -17,7 +17,10 @@ namespace {
class LocalAddress { class LocalAddress {
public: public:
LocalAddress() LocalAddress()
: is_vpn_(-1), : ifname_(),
addr_(),
key_(),
is_vpn_(-1),
estimated_speed_(-1), estimated_speed_(-1),
type_preference_(-1), type_preference_(-1),
ip_version_(-1) {} ip_version_(-1) {}
@ -161,7 +164,7 @@ class LocalAddress {
class InterfacePrioritizer { class InterfacePrioritizer {
public: public:
InterfacePrioritizer() : sorted_(false) {} InterfacePrioritizer() : local_addrs_(), preference_map_(), sorted_(false) {}
int add(const nr_local_addr* iface) { int add(const nr_local_addr* iface) {
LocalAddress addr; LocalAddress addr;

View File

@ -100,7 +100,7 @@ static std::ostream& operator<<(std::ostream& aStream, UINT12 aId) {
class STUNUDPSocketFilter : public nsISocketFilter { class STUNUDPSocketFilter : public nsISocketFilter {
public: public:
STUNUDPSocketFilter() = default; STUNUDPSocketFilter() : white_list_(), pending_requests_() {}
// Allocated/freed and used on the PBackground IPC thread // Allocated/freed and used on the PBackground IPC thread
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
@ -287,7 +287,8 @@ class PendingSTUNId {
class STUNTCPSocketFilter : public nsISocketFilter { class STUNTCPSocketFilter : public nsISocketFilter {
public: public:
STUNTCPSocketFilter() : white_listed_(false) {} STUNTCPSocketFilter()
: white_listed_(false), pending_request_ids_(), response_allowed_ids_() {}
// Allocated/freed and used on the PBackground IPC thread // Allocated/freed and used on the PBackground IPC thread
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS

View File

@ -33,7 +33,8 @@ static size_t kStunMessageLen = sizeof(kStunMessage);
class BufferedStunSocketTest : public MtransportTest { class BufferedStunSocketTest : public MtransportTest {
public: public:
BufferedStunSocketTest() : dummy_(nullptr), test_socket_(nullptr) {} BufferedStunSocketTest()
: MtransportTest(), dummy_(nullptr), test_socket_(nullptr) {}
~BufferedStunSocketTest() { nr_socket_destroy(&test_socket_); } ~BufferedStunSocketTest() { nr_socket_destroy(&test_socket_); }

View File

@ -115,7 +115,7 @@ static std::string Resolve(const std::string& fqdn, int address_family) {
class StunTest : public MtransportTest { class StunTest : public MtransportTest {
public: public:
StunTest() = default; StunTest() : MtransportTest() {}
void SetUp() override { void SetUp() override {
MtransportTest::SetUp(); MtransportTest::SetUp();
@ -353,6 +353,7 @@ class IceTestPeer : public sigslot::has_slots<> {
: name_(name), : name_(name),
ice_ctx_(NrIceCtx::Create(name)), ice_ctx_(NrIceCtx::Create(name)),
offerer_(offerer), offerer_(offerer),
candidates_(),
stream_counter_(0), stream_counter_(0),
shutting_down_(false), shutting_down_(false),
gathering_complete_(false), gathering_complete_(false),
@ -362,6 +363,7 @@ class IceTestPeer : public sigslot::has_slots<> {
ice_reached_checking_(false), ice_reached_checking_(false),
received_(0), received_(0),
sent_(0), sent_(0),
fake_resolver_(),
dns_resolver_(new NrIceResolver()), dns_resolver_(new NrIceResolver()),
remote_(nullptr), remote_(nullptr),
candidate_filter_(nullptr), candidate_filter_(nullptr),

View File

@ -32,7 +32,8 @@ namespace {
class MultiTcpSocketTest : public MtransportTest { class MultiTcpSocketTest : public MtransportTest {
public: public:
MultiTcpSocketTest() : socks(3, nullptr), readable(false) {} MultiTcpSocketTest()
: MtransportTest(), socks(3, nullptr), readable(false), ice_ctx_() {}
void SetUp() { void SetUp() {
MtransportTest::SetUp(); MtransportTest::SetUp();

View File

@ -26,7 +26,7 @@ namespace {
class TimerTest : public MtransportTest { class TimerTest : public MtransportTest {
public: public:
TimerTest() : handle_(nullptr), fired_(false) {} TimerTest() : MtransportTest(), handle_(nullptr), fired_(false) {}
virtual ~TimerTest() = default; virtual ~TimerTest() = default;
int ArmTimer(int timeout) { int ArmTimer(int timeout) {

View File

@ -128,7 +128,7 @@ class TargetClass {
class RunnableArgsTest : public MtransportTest { class RunnableArgsTest : public MtransportTest {
public: public:
RunnableArgsTest() : ran_(0), cl_(&ran_) {} RunnableArgsTest() : MtransportTest(), ran_(0), cl_(&ran_) {}
void Test1Arg() { void Test1Arg() {
Runnable* r = WrapRunnable(&cl_, &TargetClass::m1, 1); Runnable* r = WrapRunnable(&cl_, &TargetClass::m1, 1);
@ -149,7 +149,7 @@ class RunnableArgsTest : public MtransportTest {
class DispatchTest : public MtransportTest { class DispatchTest : public MtransportTest {
public: public:
DispatchTest() : ran_(0), cl_(&ran_) {} DispatchTest() : MtransportTest(), ran_(0), cl_(&ran_) {}
void SetUp() { void SetUp() {
MtransportTest::SetUp(); MtransportTest::SetUp();

View File

@ -28,7 +28,8 @@ namespace {
class SocketTransportServiceTest : public MtransportTest { class SocketTransportServiceTest : public MtransportTest {
public: public:
SocketTransportServiceTest() SocketTransportServiceTest()
: received_(0), : MtransportTest(),
received_(0),
readpipe_(nullptr), readpipe_(nullptr),
writepipe_(nullptr), writepipe_(nullptr),
registered_(false) {} registered_(false) {}

View File

@ -386,7 +386,7 @@ void TestStunServer::ShutdownInstance() {
struct DeferredStunOperation { struct DeferredStunOperation {
DeferredStunOperation(TestStunServer* server, const char* data, size_t len, DeferredStunOperation(TestStunServer* server, const char* data, size_t len,
nr_transport_addr* addr, nr_socket* sock) nr_transport_addr* addr, nr_socket* sock)
: server_(server), sock_(sock) { : server_(server), buffer_(), sock_(sock) {
buffer_.Copy(reinterpret_cast<const uint8_t*>(data), len); buffer_.Copy(reinterpret_cast<const uint8_t*>(data), len);
nr_transport_addr_copy(&addr_, addr); nr_transport_addr_copy(&addr_, addr);
} }

View File

@ -32,7 +32,13 @@ namespace mozilla {
class TestNrSocketTest : public MtransportTest { class TestNrSocketTest : public MtransportTest {
public: public:
TestNrSocketTest() : wait_done_for_main_(false) {} TestNrSocketTest()
: MtransportTest(),
wait_done_for_main_(false),
sts_(),
public_addrs_(),
private_addrs_(),
nats_() {}
void SetUp() override { void SetUp() override {
MtransportTest::SetUp(); MtransportTest::SetUp();

View File

@ -167,7 +167,7 @@ class TransportLayerLossy : public TransportLayer {
class TlsParser { class TlsParser {
public: public:
TlsParser(const unsigned char* data, size_t len) : offset_(0) { TlsParser(const unsigned char* data, size_t len) : buffer_(), offset_(0) {
buffer_.Copy(data, len); buffer_.Copy(data, len);
} }
@ -221,7 +221,8 @@ class TlsParser {
class DtlsRecordParser { class DtlsRecordParser {
public: public:
DtlsRecordParser(const unsigned char* data, size_t len) : offset_(0) { DtlsRecordParser(const unsigned char* data, size_t len)
: buffer_(), offset_(0) {
buffer_.Copy(data, len); buffer_.Copy(data, len);
} }
@ -323,7 +324,7 @@ class DtlsInspectorInjector : public DtlsRecordInspector {
class DtlsInspectorRecordHandshakeMessage : public DtlsRecordInspector { class DtlsInspectorRecordHandshakeMessage : public DtlsRecordInspector {
public: public:
explicit DtlsInspectorRecordHandshakeMessage(uint8_t handshake_type) explicit DtlsInspectorRecordHandshakeMessage(uint8_t handshake_type)
: handshake_type_(handshake_type) {} : handshake_type_(handshake_type), buffer_() {}
virtual void OnRecord(TransportLayer* layer, uint8_t content_type, virtual void OnRecord(TransportLayer* layer, uint8_t content_type,
const unsigned char* data, size_t len) { const unsigned char* data, size_t len) {
@ -439,9 +440,13 @@ class TransportTestPeer : public sigslot::has_slots<> {
lossy_(new TransportLayerLossy()), lossy_(new TransportLayerLossy()),
dtls_(new TransportLayerDtls()), dtls_(new TransportLayerDtls()),
identity_(DtlsIdentity::Generate()), identity_(DtlsIdentity::Generate()),
ice_ctx_(),
streams_(),
peer_(nullptr), peer_(nullptr),
gathering_complete_(false), gathering_complete_(false),
digest_("sha-1"_ns), digest_("sha-1"_ns),
enabled_cipersuites_(),
disabled_cipersuites_(),
test_utils_(utils) { test_utils_(utils) {
NrIceCtx::InitializeGlobals(NrIceCtx::GlobalConfig()); NrIceCtx::InitializeGlobals(NrIceCtx::GlobalConfig());
ice_ctx_ = NrIceCtx::Create(name); ice_ctx_ = NrIceCtx::Create(name);

View File

@ -71,7 +71,8 @@ static std::string kDummyTurnServer("192.0.2.1"); // From RFC 5737
class TurnClient : public MtransportTest { class TurnClient : public MtransportTest {
public: public:
TurnClient() TurnClient()
: real_socket_(nullptr), : MtransportTest(),
real_socket_(nullptr),
net_socket_(nullptr), net_socket_(nullptr),
buffered_socket_(nullptr), buffered_socket_(nullptr),
net_fd_(nullptr), net_fd_(nullptr),

View File

@ -504,7 +504,8 @@ void FakeWebrtcTCPSocket::InvokeOnRead(nsTArray<uint8_t>&& aReadData) {
class WebrtcTCPSocketTest : public MtransportTest { class WebrtcTCPSocketTest : public MtransportTest {
public: public:
WebrtcTCPSocketTest() WebrtcTCPSocketTest()
: mSocketThread(nullptr), : MtransportTest(),
mSocketThread(nullptr),
mSocketTransport(nullptr), mSocketTransport(nullptr),
mInputStream(nullptr), mInputStream(nullptr),
mOutputStream(nullptr), mOutputStream(nullptr),

View File

@ -159,7 +159,8 @@ class TestNat {
block_tls_(false), block_tls_(false),
error_code_for_drop_(0), error_code_for_drop_(0),
delay_stun_resp_ms_(0), delay_stun_resp_ms_(0),
nat_delegate_(nullptr) {} nat_delegate_(nullptr),
sockets_() {}
bool has_port_mappings() const; bool has_port_mappings() const;
@ -292,7 +293,10 @@ class TestNrSocket : public NrSocketBase {
DeferredPacket(TestNrSocket* sock, const void* data, size_t len, int flags, DeferredPacket(TestNrSocket* sock, const void* data, size_t len, int flags,
const nr_transport_addr* addr, const nr_transport_addr* addr,
RefPtr<NrSocketBase> internal_socket) RefPtr<NrSocketBase> internal_socket)
: socket_(sock), flags_(flags), internal_socket_(internal_socket) { : socket_(sock),
buffer_(),
flags_(flags),
internal_socket_(internal_socket) {
buffer_.Copy(reinterpret_cast<const uint8_t*>(data), len); buffer_.Copy(reinterpret_cast<const uint8_t*>(data), len);
nr_transport_addr_copy(&to_, addr); nr_transport_addr_copy(&to_, addr);
} }

View File

@ -37,7 +37,7 @@ class TransportLayer : public sigslot::has_slots<> {
enum State { TS_NONE, TS_INIT, TS_CONNECTING, TS_OPEN, TS_CLOSED, TS_ERROR }; enum State { TS_NONE, TS_INIT, TS_CONNECTING, TS_OPEN, TS_CLOSED, TS_ERROR };
// Is this a stream or datagram flow // Is this a stream or datagram flow
TransportLayer() : state_(TS_NONE), downward_(nullptr) {} TransportLayer() : state_(TS_NONE), flow_id_(), downward_(nullptr) {}
virtual ~TransportLayer() = default; virtual ~TransportLayer() = default;

View File

@ -43,7 +43,7 @@ struct Packet;
class TransportLayerNSPRAdapter { class TransportLayerNSPRAdapter {
public: public:
explicit TransportLayerNSPRAdapter(TransportLayer* output) explicit TransportLayerNSPRAdapter(TransportLayer* output)
: output_(output), enabled_(true) {} : output_(output), input_(), enabled_(true) {}
void PacketReceived(MediaPacket& packet); void PacketReceived(MediaPacket& packet);
int32_t Recv(void* buf, int32_t buflen); int32_t Recv(void* buf, int32_t buflen);

View File

@ -28,6 +28,7 @@ class TransportLayerLoopback : public TransportLayer {
TransportLayerLoopback() TransportLayerLoopback()
: peer_(nullptr), : peer_(nullptr),
timer_(nullptr), timer_(nullptr),
packets_(),
packets_lock_(nullptr), packets_lock_(nullptr),
deliverer_(nullptr), deliverer_(nullptr),
combinePackets_(false) {} combinePackets_(false) {}

View File

@ -262,6 +262,7 @@ MediaPipeline::MediaPipeline(const std::string& aPc,
mRtpBytesSent(0), mRtpBytesSent(0),
mRtpBytesReceived(0), mRtpBytesReceived(0),
mPc(aPc), mPc(aPc),
mFilter(),
mRtpHeaderExtensionMap(new webrtc::RtpHeaderExtensionMap()), mRtpHeaderExtensionMap(new webrtc::RtpHeaderExtensionMap()),
mPacketDumper(PacketDumper::GetPacketDumper(mPc)) {} mPacketDumper(PacketDumper::GetPacketDumper(mPc)) {}

View File

@ -2586,7 +2586,8 @@ void EstimateOp::CloseDirectory() {
ListOriginsOp::ListOriginsOp(MovingNotNull<RefPtr<QuotaManager>> aQuotaManager) ListOriginsOp::ListOriginsOp(MovingNotNull<RefPtr<QuotaManager>> aQuotaManager)
: OpenStorageDirectoryHelper(std::move(aQuotaManager), : OpenStorageDirectoryHelper(std::move(aQuotaManager),
"dom::quota::ListOriginsOp") { "dom::quota::ListOriginsOp"),
TraverseRepositoryHelper() {
AssertIsOnOwningThread(); AssertIsOnOwningThread();
} }

View File

@ -78,6 +78,7 @@ class MOZ_STACK_CLASS OriginParser final {
explicit OriginParser(const nsACString& aOrigin) explicit OriginParser(const nsACString& aOrigin)
: mOrigin(aOrigin), : mOrigin(aOrigin),
mTokenizer(aOrigin, '+'), mTokenizer(aOrigin, '+'),
mPort(),
mSchemeType(eNone), mSchemeType(eNone),
mState(eExpectingAppIdOrScheme), mState(eExpectingAppIdOrScheme),
mInIsolatedMozBrowser(false), mInIsolatedMozBrowser(false),

View File

@ -1918,7 +1918,7 @@ using ModuleCompileTask =
class ScriptDecodeTask final : public CompileOrDecodeTask { class ScriptDecodeTask final : public CompileOrDecodeTask {
public: public:
explicit ScriptDecodeTask(const JS::TranscodeRange& aRange) explicit ScriptDecodeTask(const JS::TranscodeRange& aRange)
: mRange(aRange) {} : CompileOrDecodeTask(), mRange(aRange) {}
nsresult Init(JS::DecodeOptions& aOptions) { nsresult Init(JS::DecodeOptions& aOptions) {
nsresult rv = InitFrontendContext(); nsresult rv = InitFrontendContext();

View File

@ -643,7 +643,7 @@ AutoJSContext::AutoJSContext() : mCx(nullptr) {
AutoJSContext::operator JSContext*() const { return mCx; } AutoJSContext::operator JSContext*() const { return mCx; }
AutoSafeJSContext::AutoSafeJSContext() { AutoSafeJSContext::AutoSafeJSContext() : AutoJSAPI() {
MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(NS_IsMainThread());
DebugOnly<bool> ok = Init(xpc::UnprivilegedJunkScope()); DebugOnly<bool> ok = Init(xpc::UnprivilegedJunkScope());

View File

@ -36,7 +36,8 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ReadableStreamBYOBReader)
NS_INTERFACE_MAP_END_INHERITING(ReadableStreamGenericReader) NS_INTERFACE_MAP_END_INHERITING(ReadableStreamGenericReader)
ReadableStreamBYOBReader::ReadableStreamBYOBReader(nsISupports* aGlobal) ReadableStreamBYOBReader::ReadableStreamBYOBReader(nsISupports* aGlobal)
: ReadableStreamGenericReader(do_QueryInterface(aGlobal)) {} : ReadableStreamGenericReader(do_QueryInterface(aGlobal)),
mReadIntoRequests({}) {}
JSObject* ReadableStreamBYOBReader::WrapObject( JSObject* ReadableStreamBYOBReader::WrapObject(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) { JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {

View File

@ -48,7 +48,8 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ReadableStreamDefaultReader)
NS_INTERFACE_MAP_END_INHERITING(ReadableStreamGenericReader) NS_INTERFACE_MAP_END_INHERITING(ReadableStreamGenericReader)
ReadableStreamDefaultReader::ReadableStreamDefaultReader(nsISupports* aGlobal) ReadableStreamDefaultReader::ReadableStreamDefaultReader(nsISupports* aGlobal)
: ReadableStreamGenericReader(do_QueryInterface(aGlobal)) {} : ReadableStreamGenericReader(do_QueryInterface(aGlobal)),
nsWrapperCache() {}
ReadableStreamDefaultReader::~ReadableStreamDefaultReader() { ReadableStreamDefaultReader::~ReadableStreamDefaultReader() {
mReadRequests.clear(); mReadRequests.clear();

View File

@ -208,7 +208,7 @@ class DOMSVGPathSeg : public nsWrapperCache {
class DOMSVGPathSegClosePath : public DOMSVGPathSeg { class DOMSVGPathSegClosePath : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegClosePath() {} DOMSVGPathSegClosePath() : DOMSVGPathSeg() {}
IMPL_SVGPATHSEG_SUBCLASS_COMMON(ClosePath, IMPL_SVGPATHSEG_SUBCLASS_COMMON(ClosePath,
dom::SVGPathSeg_Binding::PATHSEG_CLOSEPATH) dom::SVGPathSeg_Binding::PATHSEG_CLOSEPATH)
@ -222,7 +222,7 @@ class DOMSVGPathSegClosePath : public DOMSVGPathSeg {
class DOMSVGPathSegMovetoAbs : public DOMSVGPathSeg { class DOMSVGPathSegMovetoAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegMovetoAbs(float x, float y) { DOMSVGPathSegMovetoAbs(float x, float y) : DOMSVGPathSeg() {
mArgs[0] = x; mArgs[0] = x;
mArgs[1] = y; mArgs[1] = y;
} }
@ -241,7 +241,7 @@ class DOMSVGPathSegMovetoAbs : public DOMSVGPathSeg {
class DOMSVGPathSegMovetoRel : public DOMSVGPathSeg { class DOMSVGPathSegMovetoRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegMovetoRel(float x, float y) { DOMSVGPathSegMovetoRel(float x, float y) : DOMSVGPathSeg() {
mArgs[0] = x; mArgs[0] = x;
mArgs[1] = y; mArgs[1] = y;
} }
@ -260,7 +260,7 @@ class DOMSVGPathSegMovetoRel : public DOMSVGPathSeg {
class DOMSVGPathSegLinetoAbs : public DOMSVGPathSeg { class DOMSVGPathSegLinetoAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegLinetoAbs(float x, float y) { DOMSVGPathSegLinetoAbs(float x, float y) : DOMSVGPathSeg() {
mArgs[0] = x; mArgs[0] = x;
mArgs[1] = y; mArgs[1] = y;
} }
@ -279,7 +279,7 @@ class DOMSVGPathSegLinetoAbs : public DOMSVGPathSeg {
class DOMSVGPathSegLinetoRel : public DOMSVGPathSeg { class DOMSVGPathSegLinetoRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegLinetoRel(float x, float y) { DOMSVGPathSegLinetoRel(float x, float y) : DOMSVGPathSeg() {
mArgs[0] = x; mArgs[0] = x;
mArgs[1] = y; mArgs[1] = y;
} }
@ -299,7 +299,8 @@ class DOMSVGPathSegLinetoRel : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoCubicAbs : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoCubicAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoCubicAbs(float x1, float y1, float x2, float y2, float x, DOMSVGPathSegCurvetoCubicAbs(float x1, float y1, float x2, float y2, float x,
float y) { float y)
: DOMSVGPathSeg() {
mArgs[0] = x1; mArgs[0] = x1;
mArgs[1] = y1; mArgs[1] = y1;
mArgs[2] = x2; mArgs[2] = x2;
@ -331,7 +332,8 @@ class DOMSVGPathSegCurvetoCubicAbs : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoCubicRel : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoCubicRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoCubicRel(float x1, float y1, float x2, float y2, float x, DOMSVGPathSegCurvetoCubicRel(float x1, float y1, float x2, float y2, float x,
float y) { float y)
: DOMSVGPathSeg() {
mArgs[0] = x1; mArgs[0] = x1;
mArgs[1] = y1; mArgs[1] = y1;
mArgs[2] = x2; mArgs[2] = x2;
@ -362,7 +364,8 @@ class DOMSVGPathSegCurvetoCubicRel : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoQuadraticAbs : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoQuadraticAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoQuadraticAbs(float x1, float y1, float x, float y) { DOMSVGPathSegCurvetoQuadraticAbs(float x1, float y1, float x, float y)
: DOMSVGPathSeg() {
mArgs[0] = x1; mArgs[0] = x1;
mArgs[1] = y1; mArgs[1] = y1;
mArgs[2] = x; mArgs[2] = x;
@ -388,7 +391,8 @@ class DOMSVGPathSegCurvetoQuadraticAbs : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoQuadraticRel : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoQuadraticRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoQuadraticRel(float x1, float y1, float x, float y) { DOMSVGPathSegCurvetoQuadraticRel(float x1, float y1, float x, float y)
: DOMSVGPathSeg() {
mArgs[0] = x1; mArgs[0] = x1;
mArgs[1] = y1; mArgs[1] = y1;
mArgs[2] = x; mArgs[2] = x;
@ -415,7 +419,8 @@ class DOMSVGPathSegCurvetoQuadraticRel : public DOMSVGPathSeg {
class DOMSVGPathSegArcAbs : public DOMSVGPathSeg { class DOMSVGPathSegArcAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegArcAbs(float r1, float r2, float angle, bool largeArcFlag, DOMSVGPathSegArcAbs(float r1, float r2, float angle, bool largeArcFlag,
bool sweepFlag, float x, float y) { bool sweepFlag, float x, float y)
: DOMSVGPathSeg() {
mArgs[0] = r1; mArgs[0] = r1;
mArgs[1] = r2; mArgs[1] = r2;
mArgs[2] = angle; mArgs[2] = angle;
@ -450,7 +455,8 @@ class DOMSVGPathSegArcAbs : public DOMSVGPathSeg {
class DOMSVGPathSegArcRel : public DOMSVGPathSeg { class DOMSVGPathSegArcRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegArcRel(float r1, float r2, float angle, bool largeArcFlag, DOMSVGPathSegArcRel(float r1, float r2, float angle, bool largeArcFlag,
bool sweepFlag, float x, float y) { bool sweepFlag, float x, float y)
: DOMSVGPathSeg() {
mArgs[0] = r1; mArgs[0] = r1;
mArgs[1] = r2; mArgs[1] = r2;
mArgs[2] = angle; mArgs[2] = angle;
@ -484,7 +490,9 @@ class DOMSVGPathSegArcRel : public DOMSVGPathSeg {
class DOMSVGPathSegLinetoHorizontalAbs : public DOMSVGPathSeg { class DOMSVGPathSegLinetoHorizontalAbs : public DOMSVGPathSeg {
public: public:
explicit DOMSVGPathSegLinetoHorizontalAbs(float x) { mArgs[0] = x; } explicit DOMSVGPathSegLinetoHorizontalAbs(float x) : DOMSVGPathSeg() {
mArgs[0] = x;
}
IMPL_SVGPATHSEG_SUBCLASS_COMMON( IMPL_SVGPATHSEG_SUBCLASS_COMMON(
LinetoHorizontalAbs, LinetoHorizontalAbs,
@ -499,7 +507,9 @@ class DOMSVGPathSegLinetoHorizontalAbs : public DOMSVGPathSeg {
class DOMSVGPathSegLinetoHorizontalRel : public DOMSVGPathSeg { class DOMSVGPathSegLinetoHorizontalRel : public DOMSVGPathSeg {
public: public:
explicit DOMSVGPathSegLinetoHorizontalRel(float x) { mArgs[0] = x; } explicit DOMSVGPathSegLinetoHorizontalRel(float x) : DOMSVGPathSeg() {
mArgs[0] = x;
}
IMPL_SVGPATHSEG_SUBCLASS_COMMON( IMPL_SVGPATHSEG_SUBCLASS_COMMON(
LinetoHorizontalRel, LinetoHorizontalRel,
@ -514,7 +524,9 @@ class DOMSVGPathSegLinetoHorizontalRel : public DOMSVGPathSeg {
class DOMSVGPathSegLinetoVerticalAbs : public DOMSVGPathSeg { class DOMSVGPathSegLinetoVerticalAbs : public DOMSVGPathSeg {
public: public:
explicit DOMSVGPathSegLinetoVerticalAbs(float y) { mArgs[0] = y; } explicit DOMSVGPathSegLinetoVerticalAbs(float y) : DOMSVGPathSeg() {
mArgs[0] = y;
}
IMPL_SVGPATHSEG_SUBCLASS_COMMON( IMPL_SVGPATHSEG_SUBCLASS_COMMON(
LinetoVerticalAbs, dom::SVGPathSeg_Binding::PATHSEG_LINETO_VERTICAL_ABS) LinetoVerticalAbs, dom::SVGPathSeg_Binding::PATHSEG_LINETO_VERTICAL_ABS)
@ -528,7 +540,9 @@ class DOMSVGPathSegLinetoVerticalAbs : public DOMSVGPathSeg {
class DOMSVGPathSegLinetoVerticalRel : public DOMSVGPathSeg { class DOMSVGPathSegLinetoVerticalRel : public DOMSVGPathSeg {
public: public:
explicit DOMSVGPathSegLinetoVerticalRel(float y) { mArgs[0] = y; } explicit DOMSVGPathSegLinetoVerticalRel(float y) : DOMSVGPathSeg() {
mArgs[0] = y;
}
IMPL_SVGPATHSEG_SUBCLASS_COMMON( IMPL_SVGPATHSEG_SUBCLASS_COMMON(
LinetoVerticalRel, dom::SVGPathSeg_Binding::PATHSEG_LINETO_VERTICAL_REL) LinetoVerticalRel, dom::SVGPathSeg_Binding::PATHSEG_LINETO_VERTICAL_REL)
@ -542,7 +556,8 @@ class DOMSVGPathSegLinetoVerticalRel : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoCubicSmoothAbs : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoCubicSmoothAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoCubicSmoothAbs(float x2, float y2, float x, float y) { DOMSVGPathSegCurvetoCubicSmoothAbs(float x2, float y2, float x, float y)
: DOMSVGPathSeg() {
mArgs[0] = x2; mArgs[0] = x2;
mArgs[1] = y2; mArgs[1] = y2;
mArgs[2] = x; mArgs[2] = x;
@ -568,7 +583,8 @@ class DOMSVGPathSegCurvetoCubicSmoothAbs : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoCubicSmoothRel : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoCubicSmoothRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoCubicSmoothRel(float x2, float y2, float x, float y) { DOMSVGPathSegCurvetoCubicSmoothRel(float x2, float y2, float x, float y)
: DOMSVGPathSeg() {
mArgs[0] = x2; mArgs[0] = x2;
mArgs[1] = y2; mArgs[1] = y2;
mArgs[2] = x; mArgs[2] = x;
@ -594,7 +610,7 @@ class DOMSVGPathSegCurvetoCubicSmoothRel : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoQuadraticSmoothAbs : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoQuadraticSmoothAbs : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y) { DOMSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y) : DOMSVGPathSeg() {
mArgs[0] = x; mArgs[0] = x;
mArgs[1] = y; mArgs[1] = y;
} }
@ -614,7 +630,7 @@ class DOMSVGPathSegCurvetoQuadraticSmoothAbs : public DOMSVGPathSeg {
class DOMSVGPathSegCurvetoQuadraticSmoothRel : public DOMSVGPathSeg { class DOMSVGPathSegCurvetoQuadraticSmoothRel : public DOMSVGPathSeg {
public: public:
DOMSVGPathSegCurvetoQuadraticSmoothRel(float x, float y) { DOMSVGPathSegCurvetoQuadraticSmoothRel(float x, float y) : DOMSVGPathSeg() {
mArgs[0] = x; mArgs[0] = x;
mArgs[1] = y; mArgs[1] = y;
} }

View File

@ -21,7 +21,9 @@ class SVGTransform {
public: public:
// Default ctor initialises to matrix type with identity matrix // Default ctor initialises to matrix type with identity matrix
SVGTransform() SVGTransform()
: mAngle(0.f), : mMatrix() // Initialises to identity
,
mAngle(0.f),
mOriginX(0.f), mOriginX(0.f),
mOriginY(0.f), mOriginY(0.f),
mType(dom::SVGTransform_Binding::SVG_TRANSFORM_MATRIX) {} mType(dom::SVGTransform_Binding::SVG_TRANSFORM_MATRIX) {}

View File

@ -20,7 +20,8 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_WITH_JS_MEMBERS(XRView,
XRView::XRView(nsISupports* aParent, const XREye& aEye) XRView::XRView(nsISupports* aParent, const XREye& aEye)
: mParent(aParent), : mParent(aParent),
mEye(aEye), mEye(aEye),
mPosition(gfx::PointDouble3D()),
mOrientation(gfx::QuaternionDouble()),
mJSProjectionMatrix(nullptr) { mJSProjectionMatrix(nullptr) {
mozilla::HoldJSObjects(this); mozilla::HoldJSObjects(this);
} }

View File

@ -36,7 +36,7 @@ class txVariableMapBase {
*/ */
class txVariableMap : public txVariableMapBase { class txVariableMap : public txVariableMapBase {
public: public:
txVariableMap() { MOZ_COUNT_CTOR(txVariableMap); } txVariableMap() : txVariableMapBase() { MOZ_COUNT_CTOR(txVariableMap); }
MOZ_COUNTED_DTOR(txVariableMap) MOZ_COUNTED_DTOR(txVariableMap)
}; };

View File

@ -50,6 +50,8 @@ ChangeStyleTransaction::ChangeStyleTransaction(nsStyledElement& aStyledElement,
: EditTransactionBase(), : EditTransactionBase(),
mStyledElement(&aStyledElement), mStyledElement(&aStyledElement),
mProperty(&aProperty), mProperty(&aProperty),
mUndoValue(),
mRedoValue(),
mRemoveProperty(aRemove), mRemoveProperty(aRemove),
mUndoAttributeWasSet(false), mUndoAttributeWasSet(false),
mRedoAttributeWasSet(false) { mRedoAttributeWasSet(false) {

View File

@ -79,7 +79,9 @@ void DOMIterator::AppendNodesToArray(
} }
} }
DOMSubtreeIterator::DOMSubtreeIterator() { mIter = &mSubtreeIter; } DOMSubtreeIterator::DOMSubtreeIterator() : DOMIterator() {
mIter = &mSubtreeIter;
}
nsresult DOMSubtreeIterator::Init(nsRange& aRange) { nsresult DOMSubtreeIterator::Init(nsRange& aRange) {
return mIter->Init(&aRange); return mIter->Init(&aRange);

View File

@ -189,13 +189,15 @@ class MOZ_STACK_CLASS MoveNodeResult final : public CaretPoint {
private: private:
explicit MoveNodeResult(const EditorDOMPoint& aNextInsertionPoint, explicit MoveNodeResult(const EditorDOMPoint& aNextInsertionPoint,
bool aHandled) bool aHandled)
: mNextInsertionPoint(aNextInsertionPoint), : CaretPoint(),
mNextInsertionPoint(aNextInsertionPoint),
mHandled(aHandled && aNextInsertionPoint.IsSet()) { mHandled(aHandled && aNextInsertionPoint.IsSet()) {
AutoEditorDOMPointChildInvalidator computeOffsetAndForgetChild( AutoEditorDOMPointChildInvalidator computeOffsetAndForgetChild(
mNextInsertionPoint); mNextInsertionPoint);
} }
explicit MoveNodeResult(EditorDOMPoint&& aNextInsertionPoint, bool aHandled) explicit MoveNodeResult(EditorDOMPoint&& aNextInsertionPoint, bool aHandled)
: mNextInsertionPoint(std::move(aNextInsertionPoint)), : CaretPoint(),
mNextInsertionPoint(std::move(aNextInsertionPoint)),
mHandled(aHandled && mNextInsertionPoint.IsSet()) { mHandled(aHandled && mNextInsertionPoint.IsSet()) {
AutoEditorDOMPointChildInvalidator computeOffsetAndForgetChild( AutoEditorDOMPointChildInvalidator computeOffsetAndForgetChild(
mNextInsertionPoint); mNextInsertionPoint);
@ -671,7 +673,8 @@ class MOZ_STACK_CLASS SplitRangeOffFromNodeResult final : public CaretPoint {
SplitRangeOffFromNodeResult(nsIContent* aLeftContent, SplitRangeOffFromNodeResult(nsIContent* aLeftContent,
nsIContent* aMiddleContent, nsIContent* aMiddleContent,
nsIContent* aRightContent) nsIContent* aRightContent)
: mLeftContent(aLeftContent), : CaretPoint(),
mLeftContent(aLeftContent),
mMiddleContent(aMiddleContent), mMiddleContent(aMiddleContent),
mRightContent(aRightContent) {} mRightContent(aRightContent) {}
@ -749,7 +752,8 @@ class MOZ_STACK_CLASS SplitRangeOffResult final : public CaretPoint {
SplitRangeOffResult(EditorDOMRange&& aTrackedRange, SplitRangeOffResult(EditorDOMRange&& aTrackedRange,
SplitNodeResult&& aSplitNodeResultAtStart, SplitNodeResult&& aSplitNodeResultAtStart,
SplitNodeResult&& aSplitNodeResultAtEnd) SplitNodeResult&& aSplitNodeResultAtEnd)
: mRange(std::move(aTrackedRange)), : CaretPoint(),
mRange(std::move(aTrackedRange)),
mHandled(aSplitNodeResultAtStart.Handled() || mHandled(aSplitNodeResultAtStart.Handled() ||
aSplitNodeResultAtEnd.Handled()) { aSplitNodeResultAtEnd.Handled()) {
MOZ_ASSERT(mRange.StartRef().IsSet()); MOZ_ASSERT(mRange.StartRef().IsSet());

View File

@ -22,7 +22,8 @@ class Element;
class HTMLEditorEventListener final : public EditorEventListener { class HTMLEditorEventListener final : public EditorEventListener {
public: public:
HTMLEditorEventListener() HTMLEditorEventListener()
: mListeningToMouseMoveEventForResizers(false), : EditorEventListener(),
mListeningToMouseMoveEventForResizers(false),
mListeningToMouseMoveEventForGrabber(false), mListeningToMouseMoveEventForGrabber(false),
mListeningToResizeEvent(false) {} mListeningToResizeEvent(false) {}

View File

@ -13,7 +13,8 @@
namespace mozilla { namespace mozilla {
TransactionStack::TransactionStack(Type aType) : mType(aType) {} TransactionStack::TransactionStack(Type aType)
: nsRefPtrDeque<TransactionItem>(), mType(aType) {}
TransactionStack::~TransactionStack() { Clear(); } TransactionStack::~TransactionStack() { Clear(); }

View File

@ -540,7 +540,7 @@ void AlphaBoxBlur::Init(const Rect& aRect, const IntSize& aSpreadRadius,
AlphaBoxBlur::AlphaBoxBlur(const Rect& aRect, int32_t aStride, float aSigmaX, AlphaBoxBlur::AlphaBoxBlur(const Rect& aRect, int32_t aStride, float aSigmaX,
float aSigmaY) float aSigmaY)
: mRect(TruncatedToInt(aRect)), : mRect(TruncatedToInt(aRect)),
mSpreadRadius(),
mBlurRadius(CalculateBlurRadius(Point(aSigmaX, aSigmaY))), mBlurRadius(CalculateBlurRadius(Point(aSigmaX, aSigmaY))),
mStride(aStride), mStride(aStride),
mSurfaceAllocationSize(0), mSurfaceAllocationSize(0),

View File

@ -22,7 +22,7 @@ static double CubicRoot(double aValue) {
struct PointD : public BasePoint<double, PointD> { struct PointD : public BasePoint<double, PointD> {
typedef BasePoint<double, PointD> Super; typedef BasePoint<double, PointD> Super;
PointD() = default; PointD() : Super() {}
PointD(double aX, double aY) : Super(aX, aY) {} PointD(double aX, double aY) : Super(aX, aY) {}
MOZ_IMPLICIT PointD(const Point& aPoint) : Super(aPoint.x, aPoint.y) {} MOZ_IMPLICIT PointD(const Point& aPoint) : Super(aPoint.x, aPoint.y) {}

View File

@ -88,13 +88,18 @@ struct FrameMetrics {
mCompositionBoundsWidthIgnoringScrollbars(0), mCompositionBoundsWidthIgnoringScrollbars(0),
mDisplayPort(0, 0, 0, 0), mDisplayPort(0, 0, 0, 0),
mScrollableRect(0, 0, 0, 0), mScrollableRect(0, 0, 0, 0),
mCumulativeResolution(),
mDevPixelsPerCSSPixel(1), mDevPixelsPerCSSPixel(1),
mScrollOffset(0, 0), mScrollOffset(0, 0),
mZoom(),
mBoundingCompositionSize(0, 0), mBoundingCompositionSize(0, 0),
mPresShellId(-1), mPresShellId(-1),
mLayoutViewport(0, 0, 0, 0), mLayoutViewport(0, 0, 0, 0),
mTransformToAncestorScale(),
mPaintRequestTime(),
mVisualDestination(0, 0), mVisualDestination(0, 0),
mVisualScrollUpdateType(eNone), mVisualScrollUpdateType(eNone),
mCompositionSizeWithoutDynamicToolbar(),
mIsRootContent(false), mIsRootContent(false),
mIsScrollInfoLayer(false), mIsScrollInfoLayer(false),
mHasNonZeroDisplayPortMargins(false), mHasNonZeroDisplayPortMargins(false),
@ -735,7 +740,10 @@ struct ScrollMetadata {
sNullMetadata; // We sometimes need an empty metadata sNullMetadata; // We sometimes need an empty metadata
ScrollMetadata() ScrollMetadata()
: mScrollParentId(ScrollableLayerGuid::NULL_SCROLL_ID), : mMetrics(),
mSnapInfo(),
mScrollParentId(ScrollableLayerGuid::NULL_SCROLL_ID),
mContentDescription(),
mLineScrollAmount(0, 0), mLineScrollAmount(0, 0),
mPageScrollAmount(0, 0), mPageScrollAmount(0, 0),
mHasScrollgrab(false), mHasScrollgrab(false),
@ -747,7 +755,8 @@ struct ScrollMetadata {
mDidContentGetPainted(true), mDidContentGetPainted(true),
mForceMousewheelAutodir(false), mForceMousewheelAutodir(false),
mForceMousewheelAutodirHonourRoot(false), mForceMousewheelAutodirHonourRoot(false),
mIsPaginatedPresentation(false) {} mIsPaginatedPresentation(false),
mOverscrollBehavior() {}
bool operator==(const ScrollMetadata& aOther) const { bool operator==(const ScrollMetadata& aOther) const {
return mMetrics == aOther.mMetrics && mSnapInfo == aOther.mSnapInfo && return mMetrics == aOther.mMetrics && mSnapInfo == aOther.mSnapInfo &&

View File

@ -48,11 +48,15 @@ struct RepaintRequest {
: mScrollId(ScrollableLayerGuid::NULL_SCROLL_ID), : mScrollId(ScrollableLayerGuid::NULL_SCROLL_ID),
mPresShellResolution(1), mPresShellResolution(1),
mCompositionBounds(0, 0, 0, 0), mCompositionBounds(0, 0, 0, 0),
mCumulativeResolution(),
mDevPixelsPerCSSPixel(1), mDevPixelsPerCSSPixel(1),
mScrollOffset(0, 0), mScrollOffset(0, 0),
mZoom(),
mDisplayPortMargins(0, 0, 0, 0), mDisplayPortMargins(0, 0, 0, 0),
mPresShellId(-1), mPresShellId(-1),
mLayoutViewport(0, 0, 0, 0), mLayoutViewport(0, 0, 0, 0),
mTransformToAncestorScale(),
mPaintRequestTime(),
mScrollUpdateType(eNone), mScrollUpdateType(eNone),
mScrollAnimationType(APZScrollAnimationType::No), mScrollAnimationType(APZScrollAnimationType::No),
mIsRootContent(false), mIsRootContent(false),

View File

@ -763,6 +763,7 @@ AsyncPanZoomController::AsyncPanZoomController(
ViewportMaxScale() / ParentLayerToScreenScale(1)), ViewportMaxScale() / ParentLayerToScreenScale(1)),
mLastSampleTime(GetFrameTime()), mLastSampleTime(GetFrameTime()),
mLastCheckerboardReport(GetFrameTime()), mLastCheckerboardReport(GetFrameTime()),
mLastNotifiedZoom(),
mOverscrollEffect(MakeUnique<OverscrollEffect>(*this)), mOverscrollEffect(MakeUnique<OverscrollEffect>(*this)),
mState(NOTHING), mState(NOTHING),
mX(this), mX(this),

View File

@ -67,7 +67,7 @@ TextureData* CanvasTranslator::CreateTextureData(TextureType aTextureType,
return textureData; return textureData;
} }
CanvasTranslator::CanvasTranslator() { CanvasTranslator::CanvasTranslator() : gfx::InlineTranslator() {
// Track when remote canvas has been activated. // Track when remote canvas has been activated.
Telemetry::ScalarAdd(Telemetry::ScalarID::GFX_CANVAS_REMOTE_ACTIVATED, 1); Telemetry::ScalarAdd(Telemetry::ScalarID::GFX_CANVAS_REMOTE_ACTIVATED, 1);
} }

View File

@ -49,7 +49,8 @@ static void CreateWebRenderCommands(wr::DisplayListBuilder& aBuilder,
} }
HitTestInfoManager::HitTestInfoManager() HitTestInfoManager::HitTestInfoManager()
: mFlags(gfx::CompositorHitTestInvisibleToHit), : mArea(nsRect()),
mFlags(gfx::CompositorHitTestInvisibleToHit),
mViewId(ScrollableLayerGuid::NULL_SCROLL_ID), mViewId(ScrollableLayerGuid::NULL_SCROLL_ID),
mSpaceAndClipChain(wr::InvalidScrollNodeWithChain()) {} mSpaceAndClipChain(wr::InvalidScrollNodeWithChain()) {}

View File

@ -37,7 +37,9 @@ namespace layers {
class ISurfaceAllocator; class ISurfaceAllocator;
WebRenderImageHost::WebRenderImageHost(const TextureInfo& aTextureInfo) WebRenderImageHost::WebRenderImageHost(const TextureInfo& aTextureInfo)
: CompositableHost(aTextureInfo), mCurrentAsyncImageManager(nullptr) {} : CompositableHost(aTextureInfo),
ImageComposite(),
mCurrentAsyncImageManager(nullptr) {}
WebRenderImageHost::~WebRenderImageHost() { WebRenderImageHost::~WebRenderImageHost() {
MOZ_ASSERT(mPendingRemoteTextureWrappers.empty()); MOZ_ASSERT(mPendingRemoteTextureWrappers.empty());

View File

@ -35,7 +35,7 @@ struct nsRect : public mozilla::gfx::BaseRect<nscoord, nsRect, nsPoint, nsSize,
Super; Super;
// Constructors // Constructors
nsRect() { MOZ_COUNT_CTOR(nsRect); } nsRect() : Super() { MOZ_COUNT_CTOR(nsRect); }
nsRect(const nsRect& aRect) : Super(aRect) { MOZ_COUNT_CTOR(nsRect); } nsRect(const nsRect& aRect) : Super(aRect) { MOZ_COUNT_CTOR(nsRect); }
nsRect(const nsPoint& aOrigin, const nsSize& aSize) : Super(aOrigin, aSize) { nsRect(const nsPoint& aOrigin, const nsSize& aSize) : Super(aOrigin, aSize) {
MOZ_COUNT_CTOR(nsRect); MOZ_COUNT_CTOR(nsRect);

View File

@ -19,7 +19,7 @@ struct nsRectAbsolute
nsRect> nsRect>
Super; Super;
nsRectAbsolute() {} nsRectAbsolute() : Super() {}
nsRectAbsolute(nscoord aX1, nscoord aY1, nscoord aX2, nscoord aY2) nsRectAbsolute(nscoord aX1, nscoord aY1, nscoord aX2, nscoord aY2)
: Super(aX1, aY1, aX2, aY2) {} : Super(aX1, aY1, aX2, aY2) {}

View File

@ -19,7 +19,7 @@ typedef mozilla::gfx::IntSize nsIntSize;
struct nsSize : public mozilla::gfx::BaseSize<nscoord, nsSize> { struct nsSize : public mozilla::gfx::BaseSize<nscoord, nsSize> {
typedef mozilla::gfx::BaseSize<nscoord, nsSize> Super; typedef mozilla::gfx::BaseSize<nscoord, nsSize> Super;
constexpr nsSize() {} constexpr nsSize() : Super() {}
constexpr nsSize(nscoord aWidth, nscoord aHeight) : Super(aWidth, aHeight) {} constexpr nsSize(nscoord aWidth, nscoord aHeight) : Super(aWidth, aHeight) {}
inline mozilla::gfx::IntSize ScaleToNearestPixels( inline mozilla::gfx::IntSize ScaleToNearestPixels(

View File

@ -1222,7 +1222,8 @@ struct FontFamily {
// together with the CSS generic (if any) that was mapped to it in this // together with the CSS generic (if any) that was mapped to it in this
// particular case (so it can be reported to the DevTools font inspector). // particular case (so it can be reported to the DevTools font inspector).
struct FamilyAndGeneric final { struct FamilyAndGeneric final {
FamilyAndGeneric() : mGeneric(mozilla::StyleGenericFontFamily(0)) {} FamilyAndGeneric()
: mFamily(), mGeneric(mozilla::StyleGenericFontFamily(0)) {}
FamilyAndGeneric(const FamilyAndGeneric& aOther) = default; FamilyAndGeneric(const FamilyAndGeneric& aOther) = default;
explicit FamilyAndGeneric(gfxFontFamily* aFamily, explicit FamilyAndGeneric(gfxFontFamily* aFamily,
mozilla::StyleGenericFontFamily aGeneric = mozilla::StyleGenericFontFamily aGeneric =

View File

@ -10,7 +10,7 @@
#include "gfxPoint.h" #include "gfxPoint.h"
struct gfxLineSegment { struct gfxLineSegment {
gfxLineSegment() {} gfxLineSegment() : mStart(gfxPoint()), mEnd(gfxPoint()) {}
gfxLineSegment(const gfxPoint& aStart, const gfxPoint& aEnd) gfxLineSegment(const gfxPoint& aStart, const gfxPoint& aEnd)
: mStart(aStart), mEnd(aEnd) {} : mStart(aStart), mEnd(aEnd) {}

View File

@ -218,7 +218,8 @@ class CrashStatsLogForwarder : public mozilla::gfx::LogForwarder {
}; };
CrashStatsLogForwarder::CrashStatsLogForwarder(CrashReporter::Annotation aKey) CrashStatsLogForwarder::CrashStatsLogForwarder(CrashReporter::Annotation aKey)
: mCrashCriticalKey(aKey), : mBuffer(),
mCrashCriticalKey(aKey),
mMaxCapacity(0), mMaxCapacity(0),
mIndex(-1), mIndex(-1),
mMutex("CrashStatsLogForwarder") {} mMutex("CrashStatsLogForwarder") {}

View File

@ -1918,6 +1918,7 @@ FamilyAndGeneric gfxPlatformFontList::GetDefaultFontFamily(
ShmemCharMapHashEntry::ShmemCharMapHashEntry(const gfxSparseBitSet* aCharMap) ShmemCharMapHashEntry::ShmemCharMapHashEntry(const gfxSparseBitSet* aCharMap)
: mList(gfxPlatformFontList::PlatformFontList()->SharedFontList()), : mList(gfxPlatformFontList::PlatformFontList()->SharedFontList()),
mCharMap(),
mHash(aCharMap->GetChecksum()) { mHash(aCharMap->GetChecksum()) {
size_t len = SharedBitSet::RequiredSize(*aCharMap); size_t len = SharedBitSet::RequiredSize(*aCharMap);
mCharMap = mList->Alloc(len); mCharMap = mList->Alloc(len);

View File

@ -197,7 +197,8 @@ mozilla::gfx::VRFieldOfView SetFromTanRadians(double left, double right,
} }
OSVRSession::OSVRSession() OSVRSession::OSVRSession()
: mRuntimeLoaded(false), : VRSession(),
mRuntimeLoaded(false),
mOSVRInitialized(false), mOSVRInitialized(false),
mClientContextInitialized(false), mClientContextInitialized(false),
mDisplayConfigInitialized(false), mDisplayConfigInitialized(false),

View File

@ -183,7 +183,8 @@ bool GenerateTempFileName(nsCString& aPath) {
#endif // defined(XP_WIN) #endif // defined(XP_WIN)
OpenVRSession::OpenVRSession() OpenVRSession::OpenVRSession()
: mVRSystem(nullptr), : VRSession(),
mVRSystem(nullptr),
mVRChaperone(nullptr), mVRChaperone(nullptr),
mVRCompositor(nullptr), mVRCompositor(nullptr),
mHapticPulseRemaining{}, mHapticPulseRemaining{},

View File

@ -21,7 +21,7 @@ using namespace mozilla::gfx;
namespace mozilla::gfx { namespace mozilla::gfx {
PuppetSession::PuppetSession() = default; PuppetSession::PuppetSession() : VRSession() {}
PuppetSession::~PuppetSession() { Shutdown(); } PuppetSession::~PuppetSession() { Shutdown(); }

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