diff --git a/dom/events/MouseEvent.cpp b/dom/events/MouseEvent.cpp index aad19014ae66..c18aea91f629 100644 --- a/dom/events/MouseEvent.cpp +++ b/dom/events/MouseEvent.cpp @@ -215,9 +215,7 @@ already_AddRefed MouseEvent::GetRelatedTarget() { return EnsureWebAccessibleRelatedTarget(relatedTarget); } -void MouseEvent::GetRegion(nsAString& aRegion) { - SetDOMStringToNull(aRegion); -} +void MouseEvent::GetRegion(nsAString& aRegion) { SetDOMStringToNull(aRegion); } CSSIntPoint MouseEvent::ScreenPoint(CallerType aCallerType) const { if (mEvent->mFlags.mIsPositionless) { diff --git a/dom/fetch/FetchUtil.cpp b/dom/fetch/FetchUtil.cpp index 35489b6bb636..f8efb0f666ab 100644 --- a/dom/fetch/FetchUtil.cpp +++ b/dom/fetch/FetchUtil.cpp @@ -295,15 +295,17 @@ class WorkerStreamOwner final { RefPtr self = new WorkerStreamOwner(aStream, std::move(target)); - self->mWorkerRef = StrongWorkerRef::Create(aWorker, "JSStreamConsumer", [self]() { - if (self->mStream) { - // If this Close() calls JSStreamConsumer::OnInputStreamReady and drops - // the last reference to the JSStreamConsumer, 'this' will not be - // destroyed since ~JSStreamConsumer() only enqueues a release proxy. - self->mStream->Close(); - self->mStream = nullptr; - } - }); + self->mWorkerRef = + StrongWorkerRef::Create(aWorker, "JSStreamConsumer", [self]() { + if (self->mStream) { + // If this Close() calls JSStreamConsumer::OnInputStreamReady and + // drops the last reference to the JSStreamConsumer, 'this' will not + // be destroyed since ~JSStreamConsumer() only enqueues a release + // proxy. + self->mStream->Close(); + self->mStream = nullptr; + } + }); if (!self->mWorkerRef) { return nullptr; diff --git a/gfx/layers/AnimationStorageData.h b/gfx/layers/AnimationStorageData.h index f0acfa0720d8..f2bfee10b464 100644 --- a/gfx/layers/AnimationStorageData.h +++ b/gfx/layers/AnimationStorageData.h @@ -8,10 +8,10 @@ #define mozilla_layers_AnimationStorageData_h #include "mozilla/dom/Nullable.h" -#include "mozilla/ServoStyleConsts.h" // for ComputedTimingFunction -#include "mozilla/layers/LayersMessages.h" // for TransformData, etc -#include "mozilla/layers/LayersTypes.h" // for LayersId -#include "mozilla/TimeStamp.h" // for TimeStamp +#include "mozilla/ServoStyleConsts.h" // for ComputedTimingFunction +#include "mozilla/layers/LayersMessages.h" // for TransformData, etc +#include "mozilla/layers/LayersTypes.h" // for LayersId +#include "mozilla/TimeStamp.h" // for TimeStamp #include "mozilla/TimingParams.h" #include "X11UndefineNone.h" diff --git a/gfx/layers/wr/WebRenderMessageUtils.h b/gfx/layers/wr/WebRenderMessageUtils.h index 73f7928a2821..40edf6676dff 100644 --- a/gfx/layers/wr/WebRenderMessageUtils.h +++ b/gfx/layers/wr/WebRenderMessageUtils.h @@ -56,9 +56,10 @@ struct ParamTraits { template <> struct ParamTraits - : public ContiguousEnumSerializer {}; + : public ContiguousEnumSerializer< + mozilla::wr::GeckoDisplayListType::Tag, + mozilla::wr::GeckoDisplayListType::Tag::None, + mozilla::wr::GeckoDisplayListType::Tag::Sentinel> {}; template <> struct ParamTraits { diff --git a/image/decoders/icon/win/nsIconChannel.cpp b/image/decoders/icon/win/nsIconChannel.cpp index 9dea64f7504b..6d9585b1a4ef 100644 --- a/image/decoders/icon/win/nsIconChannel.cpp +++ b/image/decoders/icon/win/nsIconChannel.cpp @@ -258,7 +258,8 @@ static nsresult GetIconHandleFromPathInfo(const IconPathInfo& aPathInfo, } // Match stock icons with names -static mozilla::Maybe GetStockIconIDForName(const nsACString& aStockName) { +static mozilla::Maybe GetStockIconIDForName( + const nsACString& aStockName) { return aStockName.EqualsLiteral("uac-shield") ? Some(SIID_SHIELD) : Nothing(); } diff --git a/layout/style/nsAnimationManager.h b/layout/style/nsAnimationManager.h index 06fc8cb42e44..f37fa0a7d1e3 100644 --- a/layout/style/nsAnimationManager.h +++ b/layout/style/nsAnimationManager.h @@ -77,8 +77,8 @@ class nsAnimationManager final return false; } return keyframe.mTimingFunction - ? *keyframe.mTimingFunction == aTimingFunctionToMatch - : aTimingFunctionToMatch.IsLinearKeyword(); + ? *keyframe.mTimingFunction == aTimingFunctionToMatch + : aTimingFunctionToMatch.IsLinearKeyword(); }(); if (matches) { return true; diff --git a/uriloader/exthandler/ExternalHelperAppParent.cpp b/uriloader/exthandler/ExternalHelperAppParent.cpp index 47297709c34d..3c1d98ff14c9 100644 --- a/uriloader/exthandler/ExternalHelperAppParent.cpp +++ b/uriloader/exthandler/ExternalHelperAppParent.cpp @@ -64,7 +64,7 @@ bool ExternalHelperAppParent::Init( nsIURI* aReferrer, BrowsingContext* aContext, const bool& aShouldCloseWindow) { nsresult rv = mozilla::ipc::LoadInfoArgsToLoadInfo(aLoadInfoArgs, - getter_AddRefs(mLoadInfo)); + getter_AddRefs(mLoadInfo)); if (NS_FAILED(rv)) { return false; } diff --git a/widget/windows/nsWindow.h b/widget/windows/nsWindow.h index b0855cf50604..42747415971c 100644 --- a/widget/windows/nsWindow.h +++ b/widget/windows/nsWindow.h @@ -608,7 +608,8 @@ class nsWindow final : public nsBaseWidget { DWORD WindowStyle(); DWORD WindowExStyle(); - static const wchar_t* ChooseWindowClass(nsWindowType, bool aForMenupopupFrame); + static const wchar_t* ChooseWindowClass(nsWindowType, + bool aForMenupopupFrame); // This method registers the given window class, and returns the class name. static const wchar_t* RegisterWindowClass(const wchar_t* aClassName, UINT aExtraStyle, LPWSTR aIconID); diff --git a/xpcom/base/Logging.cpp b/xpcom/base/Logging.cpp index ba967c4e16d1..0fd148434eda 100644 --- a/xpcom/base/Logging.cpp +++ b/xpcom/base/Logging.cpp @@ -520,7 +520,9 @@ class LogModuleManager { void SetIsSync(bool aIsSync) { mIsSync = aIsSync; } - void SetRecordMarkers(bool aRecordMarkers) { mAddProfilerMarker = aRecordMarkers; } + void SetRecordMarkers(bool aRecordMarkers) { + mAddProfilerMarker = aRecordMarkers; + } void SetAddTimestamp(bool aAddTimestamp) { mAddTimestamp = aAddTimestamp; }