mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1856795 - Remove redundant member init r=emilio
Done with: ./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix . https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html Differential Revision: https://phabricator.services.mozilla.com/D190002
This commit is contained in:
parent
081a94f56b
commit
d0f6c7fc66
@ -17,8 +17,7 @@ using namespace mozilla::a11y;
|
|||||||
|
|
||||||
// ApplicationAccessibleWrap
|
// ApplicationAccessibleWrap
|
||||||
|
|
||||||
ApplicationAccessibleWrap::ApplicationAccessibleWrap()
|
ApplicationAccessibleWrap::ApplicationAccessibleWrap() {}
|
||||||
: ApplicationAccessible() {}
|
|
||||||
|
|
||||||
ApplicationAccessibleWrap::~ApplicationAccessibleWrap() {
|
ApplicationAccessibleWrap::~ApplicationAccessibleWrap() {
|
||||||
AccessibleWrap::ShutdownAtkObject();
|
AccessibleWrap::ShutdownAtkObject();
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
@ -397,9 +397,7 @@ xpcAccessibleApplication* nsAccessibilityService::gXPCApplicationAccessible =
|
|||||||
uint32_t nsAccessibilityService::gConsumers = 0;
|
uint32_t nsAccessibilityService::gConsumers = 0;
|
||||||
|
|
||||||
nsAccessibilityService::nsAccessibilityService()
|
nsAccessibilityService::nsAccessibilityService()
|
||||||
: DocManager(),
|
: mHTMLMarkupMap(ArrayLength(sHTMLMarkupMapList)),
|
||||||
FocusManager(),
|
|
||||||
mHTMLMarkupMap(ArrayLength(sHTMLMarkupMapList)),
|
|
||||||
mMathMLMarkupMap(ArrayLength(sMathMLMarkupMapList)),
|
mMathMLMarkupMap(ArrayLength(sMathMLMarkupMapList)),
|
||||||
mXULMarkupMap(ArrayLength(sXULMarkupMapList)) {}
|
mXULMarkupMap(ArrayLength(sXULMarkupMapList)) {}
|
||||||
|
|
||||||
|
@ -101,12 +101,10 @@ 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)
|
||||||
: Accessible(),
|
: mContent(aContent),
|
||||||
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),
|
||||||
|
@ -413,8 +413,7 @@ class RemoteAccessible : public Accessible, public HyperTextAccessibleBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
explicit RemoteAccessible(DocAccessibleParent* aThisAsDoc)
|
explicit RemoteAccessible(DocAccessibleParent* aThisAsDoc)
|
||||||
: Accessible(),
|
: mParent(kNoParent),
|
||||||
mParent(kNoParent),
|
|
||||||
mDoc(aThisAsDoc),
|
mDoc(aThisAsDoc),
|
||||||
mWrapper(0),
|
mWrapper(0),
|
||||||
mID(0),
|
mID(0),
|
||||||
|
@ -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() : DeserializedStackFrame() {}
|
MockDeserializedStackFrame() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
DEF_TEST(DeserializedStackFrameUbiStackFrames, {
|
DEF_TEST(DeserializedStackFrameUbiStackFrames, {
|
||||||
|
@ -99,7 +99,7 @@ class MOZ_STACK_CLASS FakeNode {
|
|||||||
JS::Zone* zone;
|
JS::Zone* zone;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
explicit FakeNode() : edges(), compartment(nullptr), zone(nullptr), size(1) {}
|
explicit FakeNode() : compartment(nullptr), zone(nullptr), size(1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace JS {
|
namespace JS {
|
||||||
|
@ -222,7 +222,6 @@ 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),
|
||||||
|
@ -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)
|
||||||
: MicroTaskRunnable(), mAnimation(aAnimation) {}
|
: mAnimation(aAnimation) {}
|
||||||
|
|
||||||
virtual void Run(AutoSlowOperation& aAso) override {
|
virtual void Run(AutoSlowOperation& aAso) override {
|
||||||
mAnimation->DoFinishNotificationImmediately(this);
|
mAnimation->DoFinishNotificationImmediately(this);
|
||||||
|
@ -559,8 +559,7 @@ size_t nsIContent::nsExtendedContentSlots::SizeOfExcludingThis(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
FragmentOrElement::nsDOMSlots::nsDOMSlots()
|
FragmentOrElement::nsDOMSlots::nsDOMSlots() : mDataset(nullptr) {
|
||||||
: nsIContent::nsContentSlots(), mDataset(nullptr) {
|
|
||||||
MOZ_COUNT_CTOR(nsDOMSlots);
|
MOZ_COUNT_CTOR(nsDOMSlots);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,6 @@ 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) {
|
||||||
|
@ -66,7 +66,7 @@ class nsAsyncMessageToParent : public nsSameProcessAsyncMessageBase,
|
|||||||
public:
|
public:
|
||||||
explicit nsAsyncMessageToParent(
|
explicit nsAsyncMessageToParent(
|
||||||
InProcessBrowserChildMessageManager* aBrowserChild)
|
InProcessBrowserChildMessageManager* aBrowserChild)
|
||||||
: nsSameProcessAsyncMessageBase(), mBrowserChild(aBrowserChild) {}
|
: mBrowserChild(aBrowserChild) {}
|
||||||
|
|
||||||
virtual nsresult HandleMessage() override {
|
virtual nsresult HandleMessage() override {
|
||||||
RefPtr<nsFrameLoader> fl = mBrowserChild->GetFrameLoader();
|
RefPtr<nsFrameLoader> fl = mBrowserChild->GetFrameLoader();
|
||||||
|
@ -2952,8 +2952,7 @@ class nsAsyncMessageToChild : public nsSameProcessAsyncMessageBase,
|
|||||||
public Runnable {
|
public Runnable {
|
||||||
public:
|
public:
|
||||||
explicit nsAsyncMessageToChild(nsFrameLoader* aFrameLoader)
|
explicit nsAsyncMessageToChild(nsFrameLoader* aFrameLoader)
|
||||||
: nsSameProcessAsyncMessageBase(),
|
: mozilla::Runnable("nsAsyncMessageToChild"),
|
||||||
mozilla::Runnable("nsAsyncMessageToChild"),
|
|
||||||
mFrameLoader(aFrameLoader) {}
|
mFrameLoader(aFrameLoader) {}
|
||||||
|
|
||||||
NS_IMETHOD Run() override {
|
NS_IMETHOD Run() override {
|
||||||
|
@ -1403,8 +1403,7 @@ class nsAsyncMessageToSameProcessChild : public nsSameProcessAsyncMessageBase,
|
|||||||
public Runnable {
|
public Runnable {
|
||||||
public:
|
public:
|
||||||
nsAsyncMessageToSameProcessChild()
|
nsAsyncMessageToSameProcessChild()
|
||||||
: nsSameProcessAsyncMessageBase(),
|
: mozilla::Runnable("nsAsyncMessageToSameProcessChild") {}
|
||||||
mozilla::Runnable("nsAsyncMessageToSameProcessChild") {}
|
|
||||||
NS_IMETHOD Run() override {
|
NS_IMETHOD Run() override {
|
||||||
nsFrameMessageManager* ppm =
|
nsFrameMessageManager* ppm =
|
||||||
nsFrameMessageManager::GetChildProcessManager();
|
nsFrameMessageManager::GetChildProcessManager();
|
||||||
@ -1498,7 +1497,7 @@ class nsAsyncMessageToSameProcessParent
|
|||||||
: public nsSameProcessAsyncMessageBase,
|
: public nsSameProcessAsyncMessageBase,
|
||||||
public SameProcessMessageQueue::Runnable {
|
public SameProcessMessageQueue::Runnable {
|
||||||
public:
|
public:
|
||||||
nsAsyncMessageToSameProcessParent() : nsSameProcessAsyncMessageBase() {}
|
nsAsyncMessageToSameProcessParent() {}
|
||||||
nsresult HandleMessage() override {
|
nsresult HandleMessage() override {
|
||||||
nsFrameMessageManager* ppm =
|
nsFrameMessageManager* ppm =
|
||||||
nsFrameMessageManager::sSameProcessParentManager;
|
nsFrameMessageManager::sSameProcessParentManager;
|
||||||
|
@ -1261,7 +1261,7 @@ const nsOuterWindowProxy nsOuterWindowProxy::singleton;
|
|||||||
|
|
||||||
class nsChromeOuterWindowProxy : public nsOuterWindowProxy {
|
class nsChromeOuterWindowProxy : public nsOuterWindowProxy {
|
||||||
public:
|
public:
|
||||||
constexpr nsChromeOuterWindowProxy() : nsOuterWindowProxy() {}
|
constexpr nsChromeOuterWindowProxy() {}
|
||||||
|
|
||||||
const char* className(JSContext* cx,
|
const char* className(JSContext* cx,
|
||||||
JS::Handle<JSObject*> wrapper) const override;
|
JS::Handle<JSObject*> wrapper) const override;
|
||||||
|
@ -661,7 +661,7 @@ class nsIContent : public nsINode {
|
|||||||
|
|
||||||
class nsContentSlots : public nsINode::nsSlots {
|
class nsContentSlots : public nsINode::nsSlots {
|
||||||
public:
|
public:
|
||||||
nsContentSlots() : nsINode::nsSlots(), mExtendedSlots(0) {}
|
nsContentSlots() : mExtendedSlots(0) {}
|
||||||
|
|
||||||
~nsContentSlots() {
|
~nsContentSlots() {
|
||||||
if (!(mExtendedSlots & sNonOwningExtendedSlotsFlag)) {
|
if (!(mExtendedSlots & sNonOwningExtendedSlotsFlag)) {
|
||||||
|
@ -347,8 +347,7 @@ already_AddRefed<Promise> nsImageLoadingContent::QueueDecodeAsync(
|
|||||||
public:
|
public:
|
||||||
QueueDecodeTask(nsImageLoadingContent* aOwner, Promise* aPromise,
|
QueueDecodeTask(nsImageLoadingContent* aOwner, Promise* aPromise,
|
||||||
uint32_t aRequestGeneration)
|
uint32_t aRequestGeneration)
|
||||||
: MicroTaskRunnable(),
|
: mOwner(aOwner),
|
||||||
mOwner(aOwner),
|
|
||||||
mPromise(aPromise),
|
mPromise(aPromise),
|
||||||
mRequestGeneration(aRequestGeneration) {}
|
mRequestGeneration(aRequestGeneration) {}
|
||||||
|
|
||||||
|
@ -193,8 +193,6 @@ 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 {
|
||||||
|
@ -21,16 +21,10 @@
|
|||||||
#include "mozilla/BasePrincipal.h"
|
#include "mozilla/BasePrincipal.h"
|
||||||
|
|
||||||
nsScriptErrorBase::nsScriptErrorBase()
|
nsScriptErrorBase::nsScriptErrorBase()
|
||||||
: mMessage(),
|
: mSourceId(0),
|
||||||
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),
|
||||||
@ -473,11 +467,7 @@ bool nsScriptErrorBase::ComputeIsFromChromeContext(
|
|||||||
NS_IMPL_ISUPPORTS(nsScriptError, nsIConsoleMessage, nsIScriptError)
|
NS_IMPL_ISUPPORTS(nsScriptError, nsIConsoleMessage, nsIScriptError)
|
||||||
|
|
||||||
nsScriptErrorNote::nsScriptErrorNote()
|
nsScriptErrorNote::nsScriptErrorNote()
|
||||||
: mMessage(),
|
: mSourceId(0), mLineNumber(0), mColumnNumber(0) {}
|
||||||
mSourceName(),
|
|
||||||
mSourceId(0),
|
|
||||||
mLineNumber(0),
|
|
||||||
mColumnNumber(0) {}
|
|
||||||
|
|
||||||
nsScriptErrorNote::~nsScriptErrorNote() = default;
|
nsScriptErrorNote::~nsScriptErrorNote() = default;
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ 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) {}
|
||||||
|
@ -37,7 +37,7 @@ class DebuggerNotificationManager final : public nsISupports {
|
|||||||
}
|
}
|
||||||
|
|
||||||
explicit DebuggerNotificationManager(nsIGlobalObject* aDebuggeeGlobal)
|
explicit DebuggerNotificationManager(nsIGlobalObject* aDebuggeeGlobal)
|
||||||
: mDebuggeeGlobal(aDebuggeeGlobal), mNotificationObservers() {}
|
: mDebuggeeGlobal(aDebuggeeGlobal) {}
|
||||||
|
|
||||||
bool Attach(DebuggerNotificationObserver* aObserver);
|
bool Attach(DebuggerNotificationObserver* aObserver);
|
||||||
bool Detach(DebuggerNotificationObserver* aObserver);
|
bool Detach(DebuggerNotificationObserver* aObserver);
|
||||||
|
@ -39,7 +39,7 @@ DebuggerNotificationObserver::Constructor(GlobalObject& aGlobal,
|
|||||||
|
|
||||||
DebuggerNotificationObserver::DebuggerNotificationObserver(
|
DebuggerNotificationObserver::DebuggerNotificationObserver(
|
||||||
nsIGlobalObject* aOwnerGlobal)
|
nsIGlobalObject* aOwnerGlobal)
|
||||||
: mEventListenerCallbacks(), mOwnerGlobal(aOwnerGlobal) {}
|
: mOwnerGlobal(aOwnerGlobal) {}
|
||||||
|
|
||||||
JSObject* DebuggerNotificationObserver::WrapObject(
|
JSObject* DebuggerNotificationObserver::WrapObject(
|
||||||
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
|
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
|
||||||
|
@ -134,7 +134,7 @@ EventListenerManagerBase::EventListenerManagerBase()
|
|||||||
}
|
}
|
||||||
|
|
||||||
EventListenerManager::EventListenerManager(EventTarget* aTarget)
|
EventListenerManager::EventListenerManager(EventTarget* aTarget)
|
||||||
: EventListenerManagerBase(), mTarget(aTarget) {
|
: mTarget(aTarget) {
|
||||||
NS_ASSERTION(aTarget, "unexpected null pointer");
|
NS_ASSERTION(aTarget, "unexpected null pointer");
|
||||||
|
|
||||||
if (mIsMainThreadELM) {
|
if (mIsMainThreadELM) {
|
||||||
|
@ -219,7 +219,6 @@ 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>()),
|
||||||
|
@ -81,7 +81,6 @@ 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),
|
||||||
|
@ -127,10 +127,7 @@ class TestPromiseListener : public PromiseNativeHandler,
|
|||||||
public WaitablePromiseListener {
|
public WaitablePromiseListener {
|
||||||
public:
|
public:
|
||||||
TestPromiseListener()
|
TestPromiseListener()
|
||||||
: mIsDone(std::make_shared<bool>(false)),
|
: mIsDone(std::make_shared<bool>(false)), mOnSuccess(), mOnError() {
|
||||||
mTimer(),
|
|
||||||
mOnSuccess(),
|
|
||||||
mOnError() {
|
|
||||||
ClearDone();
|
ClearDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ bool ConstraintValidation::CheckValidity() {
|
|||||||
return nsIConstraintValidation::CheckValidity(*content);
|
return nsIConstraintValidation::CheckValidity(*content);
|
||||||
}
|
}
|
||||||
|
|
||||||
ConstraintValidation::ConstraintValidation() : nsIConstraintValidation() {}
|
ConstraintValidation::ConstraintValidation() {}
|
||||||
|
|
||||||
void ConstraintValidation::SetCustomValidity(const nsAString& aError) {
|
void ConstraintValidation::SetCustomValidity(const nsAString& aError) {
|
||||||
mCustomValidity.Assign(aError);
|
mCustomValidity.Assign(aError);
|
||||||
|
@ -84,8 +84,7 @@ class ImageLoadTask final : public MicroTaskRunnable {
|
|||||||
public:
|
public:
|
||||||
ImageLoadTask(HTMLImageElement* aElement, bool aAlwaysLoad,
|
ImageLoadTask(HTMLImageElement* aElement, bool aAlwaysLoad,
|
||||||
bool aUseUrgentStartForChannel)
|
bool aUseUrgentStartForChannel)
|
||||||
: MicroTaskRunnable(),
|
: mElement(aElement),
|
||||||
mElement(aElement),
|
|
||||||
mAlwaysLoad(aAlwaysLoad),
|
mAlwaysLoad(aAlwaysLoad),
|
||||||
mUseUrgentStartForChannel(aUseUrgentStartForChannel) {
|
mUseUrgentStartForChannel(aUseUrgentStartForChannel) {
|
||||||
mDocument = aElement->OwnerDoc();
|
mDocument = aElement->OwnerDoc();
|
||||||
|
@ -122,8 +122,7 @@ ImageListener::OnStartRequest(nsIRequest* request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImageDocument::ImageDocument()
|
ImageDocument::ImageDocument()
|
||||||
: MediaDocument(),
|
: mVisibleWidth(0.0),
|
||||||
mVisibleWidth(0.0),
|
|
||||||
mVisibleHeight(0.0),
|
mVisibleHeight(0.0),
|
||||||
mImageWidth(0),
|
mImageWidth(0),
|
||||||
mImageHeight(0),
|
mImageHeight(0),
|
||||||
|
@ -106,8 +106,7 @@ const char* const MediaDocument::sFormatNames[4] = {
|
|||||||
"" // eWithDimAndFile
|
"" // eWithDimAndFile
|
||||||
};
|
};
|
||||||
|
|
||||||
MediaDocument::MediaDocument()
|
MediaDocument::MediaDocument() : mDidInitialDocumentSetup(false) {
|
||||||
: nsHTMLDocument(), mDidInitialDocumentSetup(false) {
|
|
||||||
mCompatMode = eCompatibility_FullStandards;
|
mCompatMode = eCompatibility_FullStandards;
|
||||||
}
|
}
|
||||||
MediaDocument::~MediaDocument() = default;
|
MediaDocument::~MediaDocument() = default;
|
||||||
|
@ -46,7 +46,6 @@ 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),
|
||||||
|
@ -144,9 +144,7 @@ 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),
|
: mTransaction(aTransaction), mThreadLocal(nullptr) {
|
||||||
mPreviousTransaction(),
|
|
||||||
mThreadLocal(nullptr) {
|
|
||||||
if (aTransaction) {
|
if (aTransaction) {
|
||||||
BackgroundChildImpl::ThreadLocal* threadLocal =
|
BackgroundChildImpl::ThreadLocal* threadLocal =
|
||||||
BackgroundChildImpl::GetThreadLocalForCurrentThread();
|
BackgroundChildImpl::GetThreadLocalForCurrentThread();
|
||||||
|
@ -284,8 +284,6 @@ 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),
|
||||||
@ -293,10 +291,7 @@ 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),
|
||||||
|
@ -39,7 +39,7 @@ static inline void AlignTo(size_t* aOffset, size_t aAlign) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedMap::SharedMap() : DOMEventTargetHelper() {}
|
SharedMap::SharedMap() {}
|
||||||
|
|
||||||
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() : SharedMap() {
|
WritableSharedMap::WritableSharedMap() {
|
||||||
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().
|
||||||
|
@ -118,7 +118,7 @@ class FrameHeader {
|
|||||||
// header and side info.
|
// header and side info.
|
||||||
class Frame {
|
class Frame {
|
||||||
public:
|
public:
|
||||||
Frame() : mOffset(0), mHeader() {}
|
Frame() : mOffset(0) {}
|
||||||
|
|
||||||
uint64_t Offset() const { return mOffset; }
|
uint64_t Offset() const { return mOffset; }
|
||||||
size_t Length() const {
|
size_t Length() const {
|
||||||
|
@ -23,9 +23,7 @@ namespace mozilla::dom {
|
|||||||
|
|
||||||
OutputStreamDriver::OutputStreamDriver(SourceMediaTrack* aSourceStream,
|
OutputStreamDriver::OutputStreamDriver(SourceMediaTrack* aSourceStream,
|
||||||
const PrincipalHandle& aPrincipalHandle)
|
const PrincipalHandle& aPrincipalHandle)
|
||||||
: FrameCaptureListener(),
|
: mSourceStream(aSourceStream), mPrincipalHandle(aPrincipalHandle) {
|
||||||
mSourceStream(aSourceStream),
|
|
||||||
mPrincipalHandle(aPrincipalHandle) {
|
|
||||||
MOZ_ASSERT(NS_IsMainThread());
|
MOZ_ASSERT(NS_IsMainThread());
|
||||||
MOZ_ASSERT(mSourceStream);
|
MOZ_ASSERT(mSourceStream);
|
||||||
}
|
}
|
||||||
|
@ -466,8 +466,7 @@ 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());
|
||||||
|
@ -66,7 +66,7 @@ const uint32_t FIXED_FRAMESIZE = 500;
|
|||||||
|
|
||||||
class TestWebMWriter : public WebMWriter {
|
class TestWebMWriter : public WebMWriter {
|
||||||
public:
|
public:
|
||||||
TestWebMWriter() : WebMWriter() {}
|
TestWebMWriter() {}
|
||||||
|
|
||||||
// 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".
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
Sinf::Sinf(Box& aBox) : mDefaultIVSize(0), mDefaultEncryptionType() {
|
Sinf::Sinf(Box& aBox) : mDefaultIVSize(0) {
|
||||||
SinfParser parser(aBox);
|
SinfParser parser(aBox);
|
||||||
if (parser.GetSinf().IsValid()) {
|
if (parser.GetSinf().IsValid()) {
|
||||||
*this = parser.GetSinf();
|
*this = parser.GetSinf();
|
||||||
|
@ -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);
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
OggWriter::OggWriter()
|
OggWriter::OggWriter() : mOggStreamState(), mOggPage(), mPacket() {
|
||||||
: 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.");
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
: mPosition(), mFrontVector(0., 0., -1.), mRightVector(1., 0., 0.) {}
|
: 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);
|
||||||
|
@ -62,7 +62,6 @@ 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"),
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
WebMWriter::WebMWriter()
|
WebMWriter::WebMWriter() : mEbmlComposer(new EbmlComposer()) {}
|
||||||
: 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.
|
||||||
|
@ -331,7 +331,6 @@ 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),
|
||||||
|
@ -156,7 +156,6 @@ 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),
|
||||||
|
@ -738,7 +738,7 @@ class SdpImageattrAttributeList : public SdpAttribute {
|
|||||||
|
|
||||||
class Imageattr {
|
class Imageattr {
|
||||||
public:
|
public:
|
||||||
Imageattr() : pt(), sendAll(false), recvAll(false) {}
|
Imageattr() : 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);
|
||||||
|
@ -261,7 +261,6 @@ 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),
|
||||||
|
@ -57,10 +57,7 @@ extern "C" {
|
|||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
NrIceResolverFake::NrIceResolverFake()
|
NrIceResolverFake::NrIceResolverFake()
|
||||||
: vtbl_(new nr_resolver_vtbl),
|
: vtbl_(new nr_resolver_vtbl), delay_ms_(100), allocated_resolvers_(0) {
|
||||||
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;
|
||||||
|
@ -17,10 +17,7 @@ namespace {
|
|||||||
class LocalAddress {
|
class LocalAddress {
|
||||||
public:
|
public:
|
||||||
LocalAddress()
|
LocalAddress()
|
||||||
: ifname_(),
|
: is_vpn_(-1),
|
||||||
addr_(),
|
|
||||||
key_(),
|
|
||||||
is_vpn_(-1),
|
|
||||||
estimated_speed_(-1),
|
estimated_speed_(-1),
|
||||||
type_preference_(-1),
|
type_preference_(-1),
|
||||||
ip_version_(-1) {}
|
ip_version_(-1) {}
|
||||||
@ -164,7 +161,7 @@ class LocalAddress {
|
|||||||
|
|
||||||
class InterfacePrioritizer {
|
class InterfacePrioritizer {
|
||||||
public:
|
public:
|
||||||
InterfacePrioritizer() : local_addrs_(), preference_map_(), sorted_(false) {}
|
InterfacePrioritizer() : sorted_(false) {}
|
||||||
|
|
||||||
int add(const nr_local_addr* iface) {
|
int add(const nr_local_addr* iface) {
|
||||||
LocalAddress addr;
|
LocalAddress addr;
|
||||||
|
@ -100,7 +100,7 @@ static std::ostream& operator<<(std::ostream& aStream, UINT12 aId) {
|
|||||||
|
|
||||||
class STUNUDPSocketFilter : public nsISocketFilter {
|
class STUNUDPSocketFilter : public nsISocketFilter {
|
||||||
public:
|
public:
|
||||||
STUNUDPSocketFilter() : white_list_(), pending_requests_() {}
|
STUNUDPSocketFilter() {}
|
||||||
|
|
||||||
// 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,8 +287,7 @@ class PendingSTUNId {
|
|||||||
|
|
||||||
class STUNTCPSocketFilter : public nsISocketFilter {
|
class STUNTCPSocketFilter : public nsISocketFilter {
|
||||||
public:
|
public:
|
||||||
STUNTCPSocketFilter()
|
STUNTCPSocketFilter() : white_listed_(false) {}
|
||||||
: 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
|
||||||
|
@ -33,8 +33,7 @@ static size_t kStunMessageLen = sizeof(kStunMessage);
|
|||||||
|
|
||||||
class BufferedStunSocketTest : public MtransportTest {
|
class BufferedStunSocketTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
BufferedStunSocketTest()
|
BufferedStunSocketTest() : dummy_(nullptr), test_socket_(nullptr) {}
|
||||||
: MtransportTest(), dummy_(nullptr), test_socket_(nullptr) {}
|
|
||||||
|
|
||||||
~BufferedStunSocketTest() { nr_socket_destroy(&test_socket_); }
|
~BufferedStunSocketTest() { nr_socket_destroy(&test_socket_); }
|
||||||
|
|
||||||
|
@ -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() : MtransportTest() {}
|
StunTest() {}
|
||||||
|
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
MtransportTest::SetUp();
|
MtransportTest::SetUp();
|
||||||
@ -353,7 +353,6 @@ 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),
|
||||||
@ -363,7 +362,6 @@ 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),
|
||||||
|
@ -32,8 +32,7 @@ namespace {
|
|||||||
|
|
||||||
class MultiTcpSocketTest : public MtransportTest {
|
class MultiTcpSocketTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
MultiTcpSocketTest()
|
MultiTcpSocketTest() : socks(3, nullptr), readable(false) {}
|
||||||
: MtransportTest(), socks(3, nullptr), readable(false), ice_ctx_() {}
|
|
||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
MtransportTest::SetUp();
|
MtransportTest::SetUp();
|
||||||
|
@ -26,7 +26,7 @@ namespace {
|
|||||||
|
|
||||||
class TimerTest : public MtransportTest {
|
class TimerTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
TimerTest() : MtransportTest(), handle_(nullptr), fired_(false) {}
|
TimerTest() : handle_(nullptr), fired_(false) {}
|
||||||
virtual ~TimerTest() = default;
|
virtual ~TimerTest() = default;
|
||||||
|
|
||||||
int ArmTimer(int timeout) {
|
int ArmTimer(int timeout) {
|
||||||
|
@ -128,7 +128,7 @@ class TargetClass {
|
|||||||
|
|
||||||
class RunnableArgsTest : public MtransportTest {
|
class RunnableArgsTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
RunnableArgsTest() : MtransportTest(), ran_(0), cl_(&ran_) {}
|
RunnableArgsTest() : 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() : MtransportTest(), ran_(0), cl_(&ran_) {}
|
DispatchTest() : ran_(0), cl_(&ran_) {}
|
||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
MtransportTest::SetUp();
|
MtransportTest::SetUp();
|
||||||
|
@ -28,8 +28,7 @@ namespace {
|
|||||||
class SocketTransportServiceTest : public MtransportTest {
|
class SocketTransportServiceTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
SocketTransportServiceTest()
|
SocketTransportServiceTest()
|
||||||
: MtransportTest(),
|
: received_(0),
|
||||||
received_(0),
|
|
||||||
readpipe_(nullptr),
|
readpipe_(nullptr),
|
||||||
writepipe_(nullptr),
|
writepipe_(nullptr),
|
||||||
registered_(false) {}
|
registered_(false) {}
|
||||||
|
@ -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), buffer_(), sock_(sock) {
|
: server_(server), 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);
|
||||||
}
|
}
|
||||||
|
@ -32,13 +32,7 @@ namespace mozilla {
|
|||||||
|
|
||||||
class TestNrSocketTest : public MtransportTest {
|
class TestNrSocketTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
TestNrSocketTest()
|
TestNrSocketTest() : wait_done_for_main_(false) {}
|
||||||
: MtransportTest(),
|
|
||||||
wait_done_for_main_(false),
|
|
||||||
sts_(),
|
|
||||||
public_addrs_(),
|
|
||||||
private_addrs_(),
|
|
||||||
nats_() {}
|
|
||||||
|
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
MtransportTest::SetUp();
|
MtransportTest::SetUp();
|
||||||
|
@ -167,7 +167,7 @@ class TransportLayerLossy : public TransportLayer {
|
|||||||
|
|
||||||
class TlsParser {
|
class TlsParser {
|
||||||
public:
|
public:
|
||||||
TlsParser(const unsigned char* data, size_t len) : buffer_(), offset_(0) {
|
TlsParser(const unsigned char* data, size_t len) : offset_(0) {
|
||||||
buffer_.Copy(data, len);
|
buffer_.Copy(data, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,8 +221,7 @@ class TlsParser {
|
|||||||
|
|
||||||
class DtlsRecordParser {
|
class DtlsRecordParser {
|
||||||
public:
|
public:
|
||||||
DtlsRecordParser(const unsigned char* data, size_t len)
|
DtlsRecordParser(const unsigned char* data, size_t len) : offset_(0) {
|
||||||
: buffer_(), offset_(0) {
|
|
||||||
buffer_.Copy(data, len);
|
buffer_.Copy(data, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,7 +323,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), buffer_() {}
|
: handshake_type_(handshake_type) {}
|
||||||
|
|
||||||
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) {
|
||||||
@ -440,13 +439,9 @@ 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);
|
||||||
|
@ -71,8 +71,7 @@ static std::string kDummyTurnServer("192.0.2.1"); // From RFC 5737
|
|||||||
class TurnClient : public MtransportTest {
|
class TurnClient : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
TurnClient()
|
TurnClient()
|
||||||
: MtransportTest(),
|
: real_socket_(nullptr),
|
||||||
real_socket_(nullptr),
|
|
||||||
net_socket_(nullptr),
|
net_socket_(nullptr),
|
||||||
buffered_socket_(nullptr),
|
buffered_socket_(nullptr),
|
||||||
net_fd_(nullptr),
|
net_fd_(nullptr),
|
||||||
|
@ -504,8 +504,7 @@ void FakeWebrtcTCPSocket::InvokeOnRead(nsTArray<uint8_t>&& aReadData) {
|
|||||||
class WebrtcTCPSocketTest : public MtransportTest {
|
class WebrtcTCPSocketTest : public MtransportTest {
|
||||||
public:
|
public:
|
||||||
WebrtcTCPSocketTest()
|
WebrtcTCPSocketTest()
|
||||||
: MtransportTest(),
|
: mSocketThread(nullptr),
|
||||||
mSocketThread(nullptr),
|
|
||||||
mSocketTransport(nullptr),
|
mSocketTransport(nullptr),
|
||||||
mInputStream(nullptr),
|
mInputStream(nullptr),
|
||||||
mOutputStream(nullptr),
|
mOutputStream(nullptr),
|
||||||
|
@ -159,8 +159,7 @@ 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;
|
||||||
|
|
||||||
@ -293,10 +292,7 @@ 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),
|
: socket_(sock), flags_(flags), internal_socket_(internal_socket) {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
@ -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), flow_id_(), downward_(nullptr) {}
|
TransportLayer() : state_(TS_NONE), downward_(nullptr) {}
|
||||||
|
|
||||||
virtual ~TransportLayer() = default;
|
virtual ~TransportLayer() = default;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ struct Packet;
|
|||||||
class TransportLayerNSPRAdapter {
|
class TransportLayerNSPRAdapter {
|
||||||
public:
|
public:
|
||||||
explicit TransportLayerNSPRAdapter(TransportLayer* output)
|
explicit TransportLayerNSPRAdapter(TransportLayer* output)
|
||||||
: output_(output), input_(), enabled_(true) {}
|
: output_(output), 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);
|
||||||
|
@ -28,7 +28,6 @@ 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) {}
|
||||||
|
@ -262,7 +262,6 @@ 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)) {}
|
||||||
|
|
||||||
|
@ -2586,8 +2586,7 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ 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),
|
||||||
|
@ -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)
|
||||||
: CompileOrDecodeTask(), mRange(aRange) {}
|
: mRange(aRange) {}
|
||||||
|
|
||||||
nsresult Init(JS::DecodeOptions& aOptions) {
|
nsresult Init(JS::DecodeOptions& aOptions) {
|
||||||
nsresult rv = InitFrontendContext();
|
nsresult rv = InitFrontendContext();
|
||||||
|
@ -643,7 +643,7 @@ AutoJSContext::AutoJSContext() : mCx(nullptr) {
|
|||||||
|
|
||||||
AutoJSContext::operator JSContext*() const { return mCx; }
|
AutoJSContext::operator JSContext*() const { return mCx; }
|
||||||
|
|
||||||
AutoSafeJSContext::AutoSafeJSContext() : AutoJSAPI() {
|
AutoSafeJSContext::AutoSafeJSContext() {
|
||||||
MOZ_ASSERT(NS_IsMainThread());
|
MOZ_ASSERT(NS_IsMainThread());
|
||||||
|
|
||||||
DebugOnly<bool> ok = Init(xpc::UnprivilegedJunkScope());
|
DebugOnly<bool> ok = Init(xpc::UnprivilegedJunkScope());
|
||||||
|
@ -36,8 +36,7 @@ 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) {
|
||||||
|
@ -48,8 +48,7 @@ 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();
|
||||||
|
@ -208,7 +208,7 @@ class DOMSVGPathSeg : public nsWrapperCache {
|
|||||||
|
|
||||||
class DOMSVGPathSegClosePath : public DOMSVGPathSeg {
|
class DOMSVGPathSegClosePath : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
DOMSVGPathSegClosePath() : DOMSVGPathSeg() {}
|
DOMSVGPathSegClosePath() {}
|
||||||
|
|
||||||
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) : DOMSVGPathSeg() {
|
DOMSVGPathSegMovetoAbs(float x, float y) {
|
||||||
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) : DOMSVGPathSeg() {
|
DOMSVGPathSegMovetoRel(float x, float y) {
|
||||||
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) : DOMSVGPathSeg() {
|
DOMSVGPathSegLinetoAbs(float x, float y) {
|
||||||
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) : DOMSVGPathSeg() {
|
DOMSVGPathSegLinetoRel(float x, float y) {
|
||||||
mArgs[0] = x;
|
mArgs[0] = x;
|
||||||
mArgs[1] = y;
|
mArgs[1] = y;
|
||||||
}
|
}
|
||||||
@ -299,8 +299,7 @@ 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;
|
||||||
@ -332,8 +331,7 @@ 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;
|
||||||
@ -364,8 +362,7 @@ 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;
|
||||||
@ -391,8 +388,7 @@ 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;
|
||||||
@ -419,8 +415,7 @@ 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;
|
||||||
@ -455,8 +450,7 @@ 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;
|
||||||
@ -490,9 +484,7 @@ class DOMSVGPathSegArcRel : public DOMSVGPathSeg {
|
|||||||
|
|
||||||
class DOMSVGPathSegLinetoHorizontalAbs : public DOMSVGPathSeg {
|
class DOMSVGPathSegLinetoHorizontalAbs : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
explicit DOMSVGPathSegLinetoHorizontalAbs(float x) : DOMSVGPathSeg() {
|
explicit DOMSVGPathSegLinetoHorizontalAbs(float x) { mArgs[0] = x; }
|
||||||
mArgs[0] = x;
|
|
||||||
}
|
|
||||||
|
|
||||||
IMPL_SVGPATHSEG_SUBCLASS_COMMON(
|
IMPL_SVGPATHSEG_SUBCLASS_COMMON(
|
||||||
LinetoHorizontalAbs,
|
LinetoHorizontalAbs,
|
||||||
@ -507,9 +499,7 @@ class DOMSVGPathSegLinetoHorizontalAbs : public DOMSVGPathSeg {
|
|||||||
|
|
||||||
class DOMSVGPathSegLinetoHorizontalRel : public DOMSVGPathSeg {
|
class DOMSVGPathSegLinetoHorizontalRel : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
explicit DOMSVGPathSegLinetoHorizontalRel(float x) : DOMSVGPathSeg() {
|
explicit DOMSVGPathSegLinetoHorizontalRel(float x) { mArgs[0] = x; }
|
||||||
mArgs[0] = x;
|
|
||||||
}
|
|
||||||
|
|
||||||
IMPL_SVGPATHSEG_SUBCLASS_COMMON(
|
IMPL_SVGPATHSEG_SUBCLASS_COMMON(
|
||||||
LinetoHorizontalRel,
|
LinetoHorizontalRel,
|
||||||
@ -524,9 +514,7 @@ class DOMSVGPathSegLinetoHorizontalRel : public DOMSVGPathSeg {
|
|||||||
|
|
||||||
class DOMSVGPathSegLinetoVerticalAbs : public DOMSVGPathSeg {
|
class DOMSVGPathSegLinetoVerticalAbs : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
explicit DOMSVGPathSegLinetoVerticalAbs(float y) : DOMSVGPathSeg() {
|
explicit DOMSVGPathSegLinetoVerticalAbs(float y) { mArgs[0] = y; }
|
||||||
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)
|
||||||
@ -540,9 +528,7 @@ class DOMSVGPathSegLinetoVerticalAbs : public DOMSVGPathSeg {
|
|||||||
|
|
||||||
class DOMSVGPathSegLinetoVerticalRel : public DOMSVGPathSeg {
|
class DOMSVGPathSegLinetoVerticalRel : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
explicit DOMSVGPathSegLinetoVerticalRel(float y) : DOMSVGPathSeg() {
|
explicit DOMSVGPathSegLinetoVerticalRel(float y) { mArgs[0] = y; }
|
||||||
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)
|
||||||
@ -556,8 +542,7 @@ 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;
|
||||||
@ -583,8 +568,7 @@ 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;
|
||||||
@ -610,7 +594,7 @@ class DOMSVGPathSegCurvetoCubicSmoothRel : public DOMSVGPathSeg {
|
|||||||
|
|
||||||
class DOMSVGPathSegCurvetoQuadraticSmoothAbs : public DOMSVGPathSeg {
|
class DOMSVGPathSegCurvetoQuadraticSmoothAbs : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
DOMSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y) : DOMSVGPathSeg() {
|
DOMSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y) {
|
||||||
mArgs[0] = x;
|
mArgs[0] = x;
|
||||||
mArgs[1] = y;
|
mArgs[1] = y;
|
||||||
}
|
}
|
||||||
@ -630,7 +614,7 @@ class DOMSVGPathSegCurvetoQuadraticSmoothAbs : public DOMSVGPathSeg {
|
|||||||
|
|
||||||
class DOMSVGPathSegCurvetoQuadraticSmoothRel : public DOMSVGPathSeg {
|
class DOMSVGPathSegCurvetoQuadraticSmoothRel : public DOMSVGPathSeg {
|
||||||
public:
|
public:
|
||||||
DOMSVGPathSegCurvetoQuadraticSmoothRel(float x, float y) : DOMSVGPathSeg() {
|
DOMSVGPathSegCurvetoQuadraticSmoothRel(float x, float y) {
|
||||||
mArgs[0] = x;
|
mArgs[0] = x;
|
||||||
mArgs[1] = y;
|
mArgs[1] = y;
|
||||||
}
|
}
|
||||||
|
@ -21,9 +21,7 @@ class SVGTransform {
|
|||||||
public:
|
public:
|
||||||
// Default ctor initialises to matrix type with identity matrix
|
// Default ctor initialises to matrix type with identity matrix
|
||||||
SVGTransform()
|
SVGTransform()
|
||||||
: mMatrix() // Initialises to identity
|
: mAngle(0.f),
|
||||||
,
|
|
||||||
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) {}
|
||||||
|
@ -20,8 +20,7 @@ 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);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ class txVariableMapBase {
|
|||||||
*/
|
*/
|
||||||
class txVariableMap : public txVariableMapBase {
|
class txVariableMap : public txVariableMapBase {
|
||||||
public:
|
public:
|
||||||
txVariableMap() : txVariableMapBase() { MOZ_COUNT_CTOR(txVariableMap); }
|
txVariableMap() { MOZ_COUNT_CTOR(txVariableMap); }
|
||||||
MOZ_COUNTED_DTOR(txVariableMap)
|
MOZ_COUNTED_DTOR(txVariableMap)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,8 +50,6 @@ 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) {
|
||||||
|
@ -79,9 +79,7 @@ void DOMIterator::AppendNodesToArray(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DOMSubtreeIterator::DOMSubtreeIterator() : DOMIterator() {
|
DOMSubtreeIterator::DOMSubtreeIterator() { mIter = &mSubtreeIter; }
|
||||||
mIter = &mSubtreeIter;
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult DOMSubtreeIterator::Init(nsRange& aRange) {
|
nsresult DOMSubtreeIterator::Init(nsRange& aRange) {
|
||||||
return mIter->Init(&aRange);
|
return mIter->Init(&aRange);
|
||||||
|
@ -189,15 +189,13 @@ class MOZ_STACK_CLASS MoveNodeResult final : public CaretPoint {
|
|||||||
private:
|
private:
|
||||||
explicit MoveNodeResult(const EditorDOMPoint& aNextInsertionPoint,
|
explicit MoveNodeResult(const EditorDOMPoint& aNextInsertionPoint,
|
||||||
bool aHandled)
|
bool aHandled)
|
||||||
: CaretPoint(),
|
: mNextInsertionPoint(aNextInsertionPoint),
|
||||||
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)
|
||||||
: CaretPoint(),
|
: mNextInsertionPoint(std::move(aNextInsertionPoint)),
|
||||||
mNextInsertionPoint(std::move(aNextInsertionPoint)),
|
|
||||||
mHandled(aHandled && mNextInsertionPoint.IsSet()) {
|
mHandled(aHandled && mNextInsertionPoint.IsSet()) {
|
||||||
AutoEditorDOMPointChildInvalidator computeOffsetAndForgetChild(
|
AutoEditorDOMPointChildInvalidator computeOffsetAndForgetChild(
|
||||||
mNextInsertionPoint);
|
mNextInsertionPoint);
|
||||||
@ -673,8 +671,7 @@ class MOZ_STACK_CLASS SplitRangeOffFromNodeResult final : public CaretPoint {
|
|||||||
SplitRangeOffFromNodeResult(nsIContent* aLeftContent,
|
SplitRangeOffFromNodeResult(nsIContent* aLeftContent,
|
||||||
nsIContent* aMiddleContent,
|
nsIContent* aMiddleContent,
|
||||||
nsIContent* aRightContent)
|
nsIContent* aRightContent)
|
||||||
: CaretPoint(),
|
: mLeftContent(aLeftContent),
|
||||||
mLeftContent(aLeftContent),
|
|
||||||
mMiddleContent(aMiddleContent),
|
mMiddleContent(aMiddleContent),
|
||||||
mRightContent(aRightContent) {}
|
mRightContent(aRightContent) {}
|
||||||
|
|
||||||
@ -752,8 +749,7 @@ class MOZ_STACK_CLASS SplitRangeOffResult final : public CaretPoint {
|
|||||||
SplitRangeOffResult(EditorDOMRange&& aTrackedRange,
|
SplitRangeOffResult(EditorDOMRange&& aTrackedRange,
|
||||||
SplitNodeResult&& aSplitNodeResultAtStart,
|
SplitNodeResult&& aSplitNodeResultAtStart,
|
||||||
SplitNodeResult&& aSplitNodeResultAtEnd)
|
SplitNodeResult&& aSplitNodeResultAtEnd)
|
||||||
: CaretPoint(),
|
: mRange(std::move(aTrackedRange)),
|
||||||
mRange(std::move(aTrackedRange)),
|
|
||||||
mHandled(aSplitNodeResultAtStart.Handled() ||
|
mHandled(aSplitNodeResultAtStart.Handled() ||
|
||||||
aSplitNodeResultAtEnd.Handled()) {
|
aSplitNodeResultAtEnd.Handled()) {
|
||||||
MOZ_ASSERT(mRange.StartRef().IsSet());
|
MOZ_ASSERT(mRange.StartRef().IsSet());
|
||||||
|
@ -22,8 +22,7 @@ class Element;
|
|||||||
class HTMLEditorEventListener final : public EditorEventListener {
|
class HTMLEditorEventListener final : public EditorEventListener {
|
||||||
public:
|
public:
|
||||||
HTMLEditorEventListener()
|
HTMLEditorEventListener()
|
||||||
: EditorEventListener(),
|
: mListeningToMouseMoveEventForResizers(false),
|
||||||
mListeningToMouseMoveEventForResizers(false),
|
|
||||||
mListeningToMouseMoveEventForGrabber(false),
|
mListeningToMouseMoveEventForGrabber(false),
|
||||||
mListeningToResizeEvent(false) {}
|
mListeningToResizeEvent(false) {}
|
||||||
|
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
TransactionStack::TransactionStack(Type aType)
|
TransactionStack::TransactionStack(Type aType) : mType(aType) {}
|
||||||
: nsRefPtrDeque<TransactionItem>(), mType(aType) {}
|
|
||||||
|
|
||||||
TransactionStack::~TransactionStack() { Clear(); }
|
TransactionStack::~TransactionStack() { Clear(); }
|
||||||
|
|
||||||
|
@ -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),
|
||||||
|
@ -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() : Super() {}
|
PointD() {}
|
||||||
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) {}
|
||||||
|
|
||||||
|
@ -88,18 +88,13 @@ 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),
|
||||||
@ -740,10 +735,7 @@ struct ScrollMetadata {
|
|||||||
sNullMetadata; // We sometimes need an empty metadata
|
sNullMetadata; // We sometimes need an empty metadata
|
||||||
|
|
||||||
ScrollMetadata()
|
ScrollMetadata()
|
||||||
: mMetrics(),
|
: mScrollParentId(ScrollableLayerGuid::NULL_SCROLL_ID),
|
||||||
mSnapInfo(),
|
|
||||||
mScrollParentId(ScrollableLayerGuid::NULL_SCROLL_ID),
|
|
||||||
mContentDescription(),
|
|
||||||
mLineScrollAmount(0, 0),
|
mLineScrollAmount(0, 0),
|
||||||
mPageScrollAmount(0, 0),
|
mPageScrollAmount(0, 0),
|
||||||
mHasScrollgrab(false),
|
mHasScrollgrab(false),
|
||||||
@ -755,8 +747,7 @@ 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 &&
|
||||||
|
@ -48,15 +48,11 @@ 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),
|
||||||
|
@ -763,7 +763,6 @@ 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),
|
||||||
|
@ -67,7 +67,7 @@ TextureData* CanvasTranslator::CreateTextureData(TextureType aTextureType,
|
|||||||
return textureData;
|
return textureData;
|
||||||
}
|
}
|
||||||
|
|
||||||
CanvasTranslator::CanvasTranslator() : gfx::InlineTranslator() {
|
CanvasTranslator::CanvasTranslator() {
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
|
@ -49,8 +49,7 @@ static void CreateWebRenderCommands(wr::DisplayListBuilder& aBuilder,
|
|||||||
}
|
}
|
||||||
|
|
||||||
HitTestInfoManager::HitTestInfoManager()
|
HitTestInfoManager::HitTestInfoManager()
|
||||||
: mArea(nsRect()),
|
: mFlags(gfx::CompositorHitTestInvisibleToHit),
|
||||||
mFlags(gfx::CompositorHitTestInvisibleToHit),
|
|
||||||
mViewId(ScrollableLayerGuid::NULL_SCROLL_ID),
|
mViewId(ScrollableLayerGuid::NULL_SCROLL_ID),
|
||||||
mSpaceAndClipChain(wr::InvalidScrollNodeWithChain()) {}
|
mSpaceAndClipChain(wr::InvalidScrollNodeWithChain()) {}
|
||||||
|
|
||||||
|
@ -37,9 +37,7 @@ namespace layers {
|
|||||||
class ISurfaceAllocator;
|
class ISurfaceAllocator;
|
||||||
|
|
||||||
WebRenderImageHost::WebRenderImageHost(const TextureInfo& aTextureInfo)
|
WebRenderImageHost::WebRenderImageHost(const TextureInfo& aTextureInfo)
|
||||||
: CompositableHost(aTextureInfo),
|
: CompositableHost(aTextureInfo), mCurrentAsyncImageManager(nullptr) {}
|
||||||
ImageComposite(),
|
|
||||||
mCurrentAsyncImageManager(nullptr) {}
|
|
||||||
|
|
||||||
WebRenderImageHost::~WebRenderImageHost() {
|
WebRenderImageHost::~WebRenderImageHost() {
|
||||||
MOZ_ASSERT(mPendingRemoteTextureWrappers.empty());
|
MOZ_ASSERT(mPendingRemoteTextureWrappers.empty());
|
||||||
|
@ -35,7 +35,7 @@ struct nsRect : public mozilla::gfx::BaseRect<nscoord, nsRect, nsPoint, nsSize,
|
|||||||
Super;
|
Super;
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
nsRect() : Super() { MOZ_COUNT_CTOR(nsRect); }
|
nsRect() { 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);
|
||||||
|
@ -19,7 +19,7 @@ struct nsRectAbsolute
|
|||||||
nsRect>
|
nsRect>
|
||||||
Super;
|
Super;
|
||||||
|
|
||||||
nsRectAbsolute() : Super() {}
|
nsRectAbsolute() {}
|
||||||
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) {}
|
||||||
|
|
||||||
|
@ -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() : Super() {}
|
constexpr nsSize() {}
|
||||||
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(
|
||||||
|
@ -1222,8 +1222,7 @@ 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()
|
FamilyAndGeneric() : mGeneric(mozilla::StyleGenericFontFamily(0)) {}
|
||||||
: 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 =
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "gfxPoint.h"
|
#include "gfxPoint.h"
|
||||||
|
|
||||||
struct gfxLineSegment {
|
struct gfxLineSegment {
|
||||||
gfxLineSegment() : mStart(gfxPoint()), mEnd(gfxPoint()) {}
|
gfxLineSegment() {}
|
||||||
gfxLineSegment(const gfxPoint& aStart, const gfxPoint& aEnd)
|
gfxLineSegment(const gfxPoint& aStart, const gfxPoint& aEnd)
|
||||||
: mStart(aStart), mEnd(aEnd) {}
|
: mStart(aStart), mEnd(aEnd) {}
|
||||||
|
|
||||||
|
@ -218,8 +218,7 @@ class CrashStatsLogForwarder : public mozilla::gfx::LogForwarder {
|
|||||||
};
|
};
|
||||||
|
|
||||||
CrashStatsLogForwarder::CrashStatsLogForwarder(CrashReporter::Annotation aKey)
|
CrashStatsLogForwarder::CrashStatsLogForwarder(CrashReporter::Annotation aKey)
|
||||||
: mBuffer(),
|
: mCrashCriticalKey(aKey),
|
||||||
mCrashCriticalKey(aKey),
|
|
||||||
mMaxCapacity(0),
|
mMaxCapacity(0),
|
||||||
mIndex(-1),
|
mIndex(-1),
|
||||||
mMutex("CrashStatsLogForwarder") {}
|
mMutex("CrashStatsLogForwarder") {}
|
||||||
|
@ -1918,7 +1918,6 @@ 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);
|
||||||
|
@ -197,8 +197,7 @@ mozilla::gfx::VRFieldOfView SetFromTanRadians(double left, double right,
|
|||||||
}
|
}
|
||||||
|
|
||||||
OSVRSession::OSVRSession()
|
OSVRSession::OSVRSession()
|
||||||
: VRSession(),
|
: mRuntimeLoaded(false),
|
||||||
mRuntimeLoaded(false),
|
|
||||||
mOSVRInitialized(false),
|
mOSVRInitialized(false),
|
||||||
mClientContextInitialized(false),
|
mClientContextInitialized(false),
|
||||||
mDisplayConfigInitialized(false),
|
mDisplayConfigInitialized(false),
|
||||||
|
@ -183,8 +183,7 @@ bool GenerateTempFileName(nsCString& aPath) {
|
|||||||
#endif // defined(XP_WIN)
|
#endif // defined(XP_WIN)
|
||||||
|
|
||||||
OpenVRSession::OpenVRSession()
|
OpenVRSession::OpenVRSession()
|
||||||
: VRSession(),
|
: mVRSystem(nullptr),
|
||||||
mVRSystem(nullptr),
|
|
||||||
mVRChaperone(nullptr),
|
mVRChaperone(nullptr),
|
||||||
mVRCompositor(nullptr),
|
mVRCompositor(nullptr),
|
||||||
mHapticPulseRemaining{},
|
mHapticPulseRemaining{},
|
||||||
|
@ -21,7 +21,7 @@ using namespace mozilla::gfx;
|
|||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla::gfx {
|
||||||
|
|
||||||
PuppetSession::PuppetSession() : VRSession() {}
|
PuppetSession::PuppetSession() {}
|
||||||
|
|
||||||
PuppetSession::~PuppetSession() { Shutdown(); }
|
PuppetSession::~PuppetSession() { Shutdown(); }
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user