Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium

Updated with clang-format version 14.0.5 (taskcluster-DydCt-ryTuKvBYw1HQOugw)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D154661
This commit is contained in:
Andi-Bogdan Postelnicu 2022-08-16 07:08:27 +00:00
parent efd406d7c1
commit eeac3728d2
9 changed files with 30 additions and 25 deletions

View File

@ -215,9 +215,7 @@ already_AddRefed<EventTarget> 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) {

View File

@ -295,15 +295,17 @@ class WorkerStreamOwner final {
RefPtr<WorkerStreamOwner> 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;

View File

@ -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"

View File

@ -56,9 +56,10 @@ struct ParamTraits<mozilla::wr::ImageDescriptor> {
template <>
struct ParamTraits<mozilla::wr::GeckoDisplayListType::Tag>
: public ContiguousEnumSerializer<mozilla::wr::GeckoDisplayListType::Tag,
mozilla::wr::GeckoDisplayListType::Tag::None,
mozilla::wr::GeckoDisplayListType::Tag::Sentinel> {};
: public ContiguousEnumSerializer<
mozilla::wr::GeckoDisplayListType::Tag,
mozilla::wr::GeckoDisplayListType::Tag::None,
mozilla::wr::GeckoDisplayListType::Tag::Sentinel> {};
template <>
struct ParamTraits<mozilla::wr::GeckoDisplayListType> {

View File

@ -258,7 +258,8 @@ static nsresult GetIconHandleFromPathInfo(const IconPathInfo& aPathInfo,
}
// Match stock icons with names
static mozilla::Maybe<SHSTOCKICONID> GetStockIconIDForName(const nsACString& aStockName) {
static mozilla::Maybe<SHSTOCKICONID> GetStockIconIDForName(
const nsACString& aStockName) {
return aStockName.EqualsLiteral("uac-shield") ? Some(SIID_SHIELD) : Nothing();
}

View File

@ -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;

View File

@ -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;
}

View File

@ -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);

View File

@ -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; }