Bug 1519636 - First reformat with clang-format 13.0.0. r=firefox-build-system-reviewers,sylvestre,mhentges

Updated with clang-format version 13.0.0 (taskcluster-OgjH5lasS5K_fvefdRcJVg)

Depends on D131114

Differential Revision: https://phabricator.services.mozilla.com/D129119
This commit is contained in:
Andi-Bogdan Postelnicu 2021-11-16 08:07:30 +00:00
Родитель 1faa3d40cf
Коммит c8e0f87391
31 изменённых файлов: 101 добавлений и 122 удалений

Просмотреть файл

@ -143,9 +143,10 @@ void HyperTextAccessibleBase::TextSubstring(int32_t aStartOffset,
}
bool HyperTextAccessibleBase::CharAt(int32_t aOffset, nsAString& aChar,
int32_t* aStartOffset, int32_t* aEndOffset) {
int32_t* aStartOffset,
int32_t* aEndOffset) {
MOZ_ASSERT(!aStartOffset == !aEndOffset,
"Offsets should be both defined or both undefined!");
"Offsets should be both defined or both undefined!");
int32_t childIdx = GetChildIndexAtOffset(aOffset);
if (childIdx == -1) {

Просмотреть файл

@ -110,9 +110,9 @@ using namespace mozilla::a11y;
static const uint64_t kCachedStates =
states::CHECKED | states::PRESSED | states::MIXED | states::EXPANDED |
states::EXPANDABLE | states::CURRENT | states::SELECTED | states::TRAVERSED |
states::LINKED | states::HASPOPUP | states::BUSY | states::MULTI_LINE |
states::CHECKABLE;
states::EXPANDABLE | states::CURRENT | states::SELECTED |
states::TRAVERSED | states::LINKED | states::HASPOPUP | states::BUSY |
states::MULTI_LINE | states::CHECKABLE;
static const uint64_t kCacheInitialized = ((uint64_t)0x1) << 63;
- (uint64_t)state {

Просмотреть файл

@ -123,7 +123,6 @@ class FlattenedChildIterator : public ExplicitChildIterator {
const nsIContent* Parent() const { return mOriginalContent; }
protected:
const nsIContent* mOriginalContent;
private:

Просмотреть файл

@ -80,8 +80,7 @@ class ProducerView {
public:
using Producer = _Producer;
explicit ProducerView(Producer* aProducer)
: mProducer(aProducer) {}
explicit ProducerView(Producer* aProducer) : mProducer(aProducer) {}
template <typename T>
bool WriteFromRange(const Range<const T>& src) {
@ -133,8 +132,7 @@ class ConsumerView {
public:
using Consumer = _Consumer;
explicit ConsumerView(Consumer* aConsumer)
: mConsumer(aConsumer) {}
explicit ConsumerView(Consumer* aConsumer) : mConsumer(aConsumer) {}
/**
* Read bytes from the consumer if there is enough data. aBuffer may
@ -223,8 +221,7 @@ struct QueueParamTraits<bool> {
using ParamType = bool;
template <typename U>
static auto Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static auto Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
uint8_t temp = aArg ? 1 : 0;
return aProducerView.WriteParam(temp);
}
@ -251,8 +248,7 @@ struct EnumSerializer {
using DataType = typename std::underlying_type<E>::type;
template <typename U>
static auto Write(ProducerView<U>& aProducerView,
const ParamType& aValue) {
static auto Write(ProducerView<U>& aProducerView, const ParamType& aValue) {
MOZ_RELEASE_ASSERT(
EnumValidator::IsLegalValue(static_cast<DataType>(aValue)));
return aProducerView.WriteParam(DataType(aValue));
@ -372,8 +368,7 @@ struct QueueParamTraits<nsACString> {
using ParamType = nsACString;
template <typename U>
static bool Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static bool Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
if ((!aProducerView.WriteParam(aArg.IsVoid())) || aArg.IsVoid()) {
return false;
}
@ -425,8 +420,7 @@ struct QueueParamTraits<nsAString> {
using ParamType = nsAString;
template <typename U>
static bool Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static bool Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
if ((!aProducerView.WriteParam(aArg.IsVoid())) || (aArg.IsVoid())) {
return false;
}
@ -503,8 +497,7 @@ struct NSArrayQueueParamTraits<nsTArray<_ElementType>, false> {
using ParamType = nsTArray<ElementType>;
template <typename U>
static bool Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static bool Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
aProducerView.WriteParam(aArg.Length());
for (auto& elt : aArg) {
aProducerView.WriteParam(elt);
@ -539,8 +532,7 @@ struct NSArrayQueueParamTraits<nsTArray<_ElementType>, true> {
// TODO: Are there alignment issues?
template <typename U>
static bool Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static bool Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
size_t arrayLen = aArg.Length();
aProducerView.WriteParam(arrayLen);
return aProducerView.Write(&aArg[0], aArg.Length() * sizeof(ElementType));
@ -581,8 +573,7 @@ struct ArrayQueueParamTraits<Array<_ElementType, Length>, false> {
using ParamType = Array<ElementType, Length>;
template <typename U>
static auto Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static auto Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
for (const auto& elt : aArg) {
aProducerView.WriteParam(elt);
}
@ -605,8 +596,7 @@ struct ArrayQueueParamTraits<Array<_ElementType, Length>, true> {
using ParamType = Array<ElementType, Length>;
template <typename U>
static auto Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static auto Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
return aProducerView.Write(aArg.begin(), sizeof(ElementType[Length]));
}
@ -629,8 +619,7 @@ struct QueueParamTraits<Maybe<ElementType>> {
using ParamType = Maybe<ElementType>;
template <typename U>
static bool Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static bool Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
aProducerView.WriteParam(static_cast<bool>(aArg));
if (aArg) {
aProducerView.WriteParam(aArg.ref());
@ -662,8 +651,7 @@ struct QueueParamTraits<std::pair<TypeA, TypeB>> {
using ParamType = std::pair<TypeA, TypeB>;
template <typename U>
static bool Write(ProducerView<U>& aProducerView,
const ParamType& aArg) {
static bool Write(ProducerView<U>& aProducerView, const ParamType& aArg) {
aProducerView.WriteParam(aArg.first());
return aProducerView.WriteParam(aArg.second());
}

Просмотреть файл

@ -25,9 +25,7 @@ class RangeConsumerView final : public webgl::ConsumerView<RangeConsumerView> {
auto Remaining() const { return *MaybeAs<size_t>(mSrcEnd - mSrcItr); }
explicit RangeConsumerView(const Range<const uint8_t> range)
: ConsumerView(this),
mSrcItr(range.begin()),
mSrcEnd(range.end()) {
: ConsumerView(this), mSrcItr(range.begin()), mSrcEnd(range.end()) {
(void)Remaining(); // assert size non-negative
}

Просмотреть файл

@ -1264,7 +1264,7 @@ ScopedDrawCallWrapper::ScopedDrawCallWrapper(WebGLContext& webgl)
if (!fb) {
if (mWebGL.mDefaultFB_DrawBuffer0 == LOCAL_GL_NONE) {
driverColorMask0 = 0; // Is this well-optimized enough for depth-first
// rendering?
// rendering?
} else {
driverColorMask0 &= ~(uint8_t(mWebGL.mNeedsFakeNoAlpha) << 3);
}

Просмотреть файл

@ -16,7 +16,7 @@
#include "audio_thread_priority.h"
#ifdef MOZ_WIDGET_ANDROID
# include "AndroidProcess.h"
#endif // MOZ_WIDGET_ANDROID
#endif // MOZ_WIDGET_ANDROID
namespace mozilla {
@ -110,8 +110,8 @@ void PromoteRenderingThreadAndroid() {
("GraphRunner promoted thread priority: %d",
java::sdk::Process::GetThreadPriority(java::sdk::Process::MyTid())));
}
}; // namespace
#endif // MOZ_WIDGET_ANDROID
}; // namespace
#endif // MOZ_WIDGET_ANDROID
NS_IMETHODIMP GraphRunner::Run() {
#ifndef XP_LINUX
@ -121,7 +121,7 @@ NS_IMETHODIMP GraphRunner::Run() {
#ifdef MOZ_WIDGET_ANDROID
PromoteRenderingThreadAndroid();
#endif // MOZ_WIDGET_ANDROID
#endif // MOZ_WIDGET_ANDROID
nsCOMPtr<nsIThreadInternal> threadInternal = do_QueryInterface(mThread);
threadInternal->SetObserver(mGraph);

Просмотреть файл

@ -259,7 +259,8 @@ void DesktopDeviceInfoImpl::InitializeWindowList() {
_snprintf_s(idStr, sizeof(idStr), sizeof(idStr) - 1, "%ld",
static_cast<long>(pWinDevice->getScreenId()));
#else
SprintfLiteral(idStr, "%ld", static_cast<long>(pWinDevice->getScreenId()));
SprintfLiteral(idStr, "%ld",
static_cast<long>(pWinDevice->getScreenId()));
#endif
pWinDevice->setUniqueIdName(idStr);
desktop_window_list_[pWinDevice->getScreenId()] = pWinDevice;

Просмотреть файл

@ -242,8 +242,8 @@ void AnalyserNode::GetByteFrequencyData(const Uint8Array& aArray) {
WebAudioUtils::ConvertLinearToDecibels(mOutputBuffer[i], mMinDecibels);
// scale down the value to the range of [0, UCHAR_MAX]
const double scaled = std::max(
0.0, std::min(double(UCHAR_MAX),
UCHAR_MAX*(decibels - mMinDecibels) * rangeScaleFactor));
0.0, std::min(double(UCHAR_MAX), UCHAR_MAX * (decibels - mMinDecibels) *
rangeScaleFactor));
buffer[i] = static_cast<unsigned char>(scaled);
}
}

Просмотреть файл

@ -64,17 +64,17 @@ nsresult AudioWorkletImpl::SendControlMessage(
void AudioWorkletImpl::OnAddModuleStarted() const {
#ifdef MOZ_GECKO_PROFILER
profiler_add_marker(
ProfilerStringView("AudioWorklet.addModule"),
geckoprofiler::category::MEDIA_RT, {MarkerTiming::IntervalStart()});
profiler_add_marker(ProfilerStringView("AudioWorklet.addModule"),
geckoprofiler::category::MEDIA_RT,
{MarkerTiming::IntervalStart()});
#endif
}
void AudioWorkletImpl::OnAddModulePromiseSettled() const {
#ifdef MOZ_GECKO_PROFILER
profiler_add_marker(
ProfilerStringView("AudioWorklet.addModule"),
geckoprofiler::category::MEDIA_RT, {MarkerTiming::IntervalEnd()});
profiler_add_marker(ProfilerStringView("AudioWorklet.addModule"),
geckoprofiler::category::MEDIA_RT,
{MarkerTiming::IntervalEnd()});
#endif
}

Просмотреть файл

@ -64,7 +64,7 @@ JSObject* SourceElementCallback(JSContext* aCx, JS::HandleValue aPrivateValue) {
JS::Rooted<JS::Value> elementValue(aCx);
{
nsCOMPtr<Element> domElement = script->GetFetchOptions()->mElement;
if (!domElement) {
if (!domElement) {
return nullptr;
}
@ -73,7 +73,7 @@ JSObject* SourceElementCallback(JSContext* aCx, JS::HandleValue aPrivateValue) {
JSAutoRealm ar(aCx, globalObject);
nsresult rv = nsContentUtils::WrapNative(aCx, domElement, &elementValue,
/* aAllowWrapping = */ true);
/* aAllowWrapping = */ true);
if (NS_FAILED(rv)) {
return nullptr;
}

Просмотреть файл

@ -2420,9 +2420,8 @@ RecordedFillGlyphs::RecordedFillGlyphs(S& aStream)
mGlyphs = new (fallible) Glyph[mNumGlyphs];
if (!mGlyphs) {
gfxCriticalNote
<< "RecordedFillGlyphs failed to allocate glyphs of size "
<< mNumGlyphs;
gfxCriticalNote << "RecordedFillGlyphs failed to allocate glyphs of size "
<< mNumGlyphs;
aStream.SetIsBad();
} else {
aStream.read((char*)mGlyphs, sizeof(Glyph) * mNumGlyphs);

Просмотреть файл

@ -80,11 +80,11 @@ interface DWRITE_DECLARE_INTERFACE("27F2A904-4EB8-441D-9678-0563F53E3E2F")
STDMETHOD_(DWRITE_GLYPH_IMAGE_FORMATS, GetGlyphImageFormats)() PURE;
STDMETHOD(GetGlyphImageFormats)
(UINT16 glyphId, UINT32 pixelsPerEmFirst, UINT32 pixelsPerEmLast,
_Out_ DWRITE_GLYPH_IMAGE_FORMATS * glyphImageFormats) PURE;
_Out_ DWRITE_GLYPH_IMAGE_FORMATS* glyphImageFormats) PURE;
STDMETHOD(GetGlyphImageData)
(_In_ UINT16 glyphId, UINT32 pixelsPerEm,
DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat,
_Out_ DWRITE_GLYPH_IMAGE_DATA * glyphData,
_Out_ DWRITE_GLYPH_IMAGE_DATA* glyphData,
_Outptr_result_maybenull_ void** glyphDataContext) PURE;
STDMETHOD_(void, ReleaseGlyphImageData)(void* glyphDataContext) PURE;
};
@ -93,34 +93,34 @@ interface DWRITE_DECLARE_INTERFACE("98EFF3A5-B667-479A-B145-E2FA5B9FDC29")
IDWriteFontFace5 : public IDWriteFontFace4 {
STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE;
STDMETHOD(GetFontAxisValues)
(_Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE * fontAxisValues,
(_Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues,
UINT32 fontAxisValueCount) PURE;
STDMETHOD_(BOOL, HasVariations)() PURE;
STDMETHOD(GetFontResource)
(_COM_Outptr_ IDWriteFontResource * *fontResource) PURE;
STDMETHOD_(BOOL, Equals)(IDWriteFontFace * fontFace) PURE;
(_COM_Outptr_ IDWriteFontResource** fontResource) PURE;
STDMETHOD_(BOOL, Equals)(IDWriteFontFace* fontFace) PURE;
};
interface DWRITE_DECLARE_INTERFACE("1F803A76-6871-48E8-987F-B975551C50F2")
IDWriteFontResource : public IUnknown {
STDMETHOD(GetFontFile)(_COM_Outptr_ IDWriteFontFile * *fontFile) PURE;
STDMETHOD(GetFontFile)(_COM_Outptr_ IDWriteFontFile** fontFile) PURE;
STDMETHOD_(UINT32, GetFontFaceIndex)() PURE;
STDMETHOD_(UINT32, GetFontAxisCount)() PURE;
STDMETHOD(GetDefaultFontAxisValues)
(_Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE * fontAxisValues,
(_Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues,
UINT32 fontAxisValueCount) PURE;
STDMETHOD(GetFontAxisRanges)
(_Out_writes_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE * fontAxisRanges,
(_Out_writes_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges,
UINT32 fontAxisRangeCount) PURE;
STDMETHOD_(DWRITE_FONT_AXIS_ATTRIBUTES, GetFontAxisAttributes)
(UINT32 axisIndex) PURE;
STDMETHOD(GetAxisNames)
(UINT32 axisIndex, _COM_Outptr_ IDWriteLocalizedStrings * *names) PURE;
(UINT32 axisIndex, _COM_Outptr_ IDWriteLocalizedStrings** names) PURE;
STDMETHOD_(UINT32, GetAxisValueNameCount)(UINT32 axisIndex) PURE;
STDMETHOD(GetAxisValueNames)
(UINT32 axisIndex, UINT32 axisValueIndex,
_Out_ DWRITE_FONT_AXIS_RANGE * fontAxisRange,
_COM_Outptr_ IDWriteLocalizedStrings * *names) PURE;
_Out_ DWRITE_FONT_AXIS_RANGE* fontAxisRange,
_COM_Outptr_ IDWriteLocalizedStrings** names) PURE;
STDMETHOD_(BOOL, HasVariations)() PURE;
STDMETHOD(CreateFontFace)
(DWRITE_FONT_SIMULATIONS fontSimulations,

Просмотреть файл

@ -50,12 +50,9 @@ namespace gl {
// should match the order of EGLExtensions, and be null-terminated.
static const char* sEGLLibraryExtensionNames[] = {
"EGL_ANDROID_get_native_client_buffer",
"EGL_ANGLE_device_creation",
"EGL_ANGLE_device_creation_d3d11",
"EGL_ANGLE_platform_angle",
"EGL_ANGLE_platform_angle_d3d",
"EGL_EXT_device_query"};
"EGL_ANDROID_get_native_client_buffer", "EGL_ANGLE_device_creation",
"EGL_ANGLE_device_creation_d3d11", "EGL_ANGLE_platform_angle",
"EGL_ANGLE_platform_angle_d3d", "EGL_EXT_device_query"};
// should match the order of EGLExtensions, and be null-terminated.
static const char* sEGLExtensionNames[] = {

Просмотреть файл

@ -121,8 +121,7 @@ bool AnimationInfo::StartPendingAnimations(const TimeStamp& aReadyTime) {
return updated;
}
void AnimationInfo::TransferMutatedFlagToLayer(Layer* aLayer) {
}
void AnimationInfo::TransferMutatedFlagToLayer(Layer* aLayer) {}
bool AnimationInfo::ApplyPendingUpdatesForThisTransaction() {
if (mPendingAnimations) {

Просмотреть файл

@ -23,11 +23,11 @@
#include "mozilla/TimeStamp.h" // for TimeStamp
#include "mozilla/UniquePtr.h" // for UniquePtr, MakeUnique
#include "mozilla/gfx/BasePoint.h" // for BasePoint<>::(anonymous union)::(anonymous), BasePoin...
#include "mozilla/gfx/BaseSize.h" // for BaseSize
#include "mozilla/gfx/Matrix.h" // for Matrix4x4, Matrix, Matrix4x4Typed
#include "mozilla/gfx/Point.h" // for Point, PointTyped
#include "mozilla/gfx/Polygon.h" // for Polygon
#include "mozilla/gfx/Rect.h" // for IntRectTyped, IntRect
#include "mozilla/gfx/BaseSize.h" // for BaseSize
#include "mozilla/gfx/Matrix.h" // for Matrix4x4, Matrix, Matrix4x4Typed
#include "mozilla/gfx/Point.h" // for Point, PointTyped
#include "mozilla/gfx/Polygon.h" // for Polygon
#include "mozilla/gfx/Rect.h" // for IntRectTyped, IntRect
#include "mozilla/gfx/Types.h" // for CompositionOp, DeviceColor, SamplingFilter, SideBits
#include "mozilla/gfx/UserData.h" // for UserData, UserDataKey (ptr only)
#include "mozilla/layers/AnimationInfo.h" // for AnimationInfo
@ -69,7 +69,7 @@ class TransformData;
struct PropertyAnimationGroup;
class Layer {
public:
public:
enum {
/**
* If this is set, the caller is promising that by the end of this

Просмотреть файл

@ -31,10 +31,11 @@ class APZTaskRunnable final : public Runnable {
MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_DECL_NSIRUNNABLE
// Queue a RepaintRequest.
// If there's already a RepaintRequest having the same scroll id, the old
// one will be discarded.
void QueueRequest(const RepaintRequest& aRequest);
// Queue a RepaintRequest.
// If there's already a RepaintRequest having the same scroll id, the old
// one will be discarded.
void
QueueRequest(const RepaintRequest& aRequest);
void QueueFlushCompleteNotification();
void Revoke() {
mController = nullptr;

Просмотреть файл

@ -422,9 +422,10 @@ void AsyncImagePipelineManager::ApplyAsyncImageForPipeline(
float(aPipeline->mCurrentTexture->GetSize().width),
float(aPipeline->mCurrentTexture->GetSize().height)};
computedTransform.rotation = ToWrRotation(aPipeline->mRotation);
// We don't have a frame / per-frame key here, but we can use the pipeline id and
// the key kind to create a unique stable key.
computedTransform.key = wr::SpatialKey(aPipelineId.mNamespace, aPipelineId.mHandle, wr::SpatialKeyKind::APZ);
// We don't have a frame / per-frame key here, but we can use the pipeline id
// and the key kind to create a unique stable key.
computedTransform.key = wr::SpatialKey(
aPipelineId.mNamespace, aPipelineId.mHandle, wr::SpatialKeyKind::APZ);
params.computed_transform = &computedTransform;
Maybe<wr::WrSpatialId> referenceFrameId =

Просмотреть файл

@ -29,10 +29,10 @@
#include "mozilla/layers/WebRenderCommandBuilder.h" // for WebRenderCommandBuilder
#include "mozilla/layers/WebRenderScrollData.h" // for WebRenderScrollData
#include "WindowRenderer.h"
#include "nsHashKeys.h" // for nsRefPtrHashKey
#include "nsRegion.h" // for nsIntRegion
#include "nsStringFwd.h" // for nsCString, nsAString
#include "nsTArray.h" // for nsTArray
#include "nsHashKeys.h" // for nsRefPtrHashKey
#include "nsRegion.h" // for nsIntRegion
#include "nsStringFwd.h" // for nsCString, nsAString
#include "nsTArray.h" // for nsTArray
#include "nsTHashSet.h"
class gfxContext;

Просмотреть файл

@ -99,7 +99,8 @@ ID3D11Device* RenderCompositorANGLE::GetDeviceOfEGLDisplay(nsACString& aError) {
const auto& gle = gl::GLContextEGL::Cast(gl);
const auto& egl = gle->mEgl;
MOZ_ASSERT(egl);
if (!egl || !egl->mLib->IsExtensionSupported(gl::EGLLibExtension::EXT_device_query)) {
if (!egl ||
!egl->mLib->IsExtensionSupported(gl::EGLLibExtension::EXT_device_query)) {
aError.Assign("RcANGLE(no EXT_device_query support)"_ns);
return nullptr;
}

Просмотреть файл

@ -103,10 +103,10 @@ inline gfx::SurfaceFormat ImageFormatToSurfaceFormat(ImageFormat aFormat) {
}
// This extra piece of data is used to differentiate when spatial nodes that are
// created by Gecko that have the same mFrame and PerFrameKey. This currently only
// occurs with sticky display list items that are also zoomable, which results in
// Gecko creating both a sticky spatial node, and then a property animated reference
// frame for APZ
// created by Gecko that have the same mFrame and PerFrameKey. This currently
// only occurs with sticky display list items that are also zoomable, which
// results in Gecko creating both a sticky spatial node, and then a property
// animated reference frame for APZ
enum class SpatialKeyKind : uint32_t {
Transform,
Perspective,
@ -116,9 +116,10 @@ enum class SpatialKeyKind : uint32_t {
APZ,
};
// Construct a unique, persistent spatial key based on the frame tree pointer, per-frame key
// and a spatial key kind. For now, this covers all the ways Gecko creates spatial nodes.
// In future, we may need to be more clever with the SpatialKeyKind.
// Construct a unique, persistent spatial key based on the frame tree pointer,
// per-frame key and a spatial key kind. For now, this covers all the ways Gecko
// creates spatial nodes. In future, we may need to be more clever with the
// SpatialKeyKind.
inline wr::SpatialTreeItemKey SpatialKey(uint64_t aFrame, uint32_t aPerFrameKey,
SpatialKeyKind aKind) {
return wr::SpatialTreeItemKey{

Просмотреть файл

@ -41,15 +41,14 @@
# define DECLARE_SYMBOL_VISIBILITY(name)
#endif
#define DEFINE_COMPILERRT_FUNCTION(name) \
.globl SYMBOL_NAME(name) SEPARATOR DECLARE_SYMBOL_VISIBILITY(name) \
SYMBOL_NAME(name) \
:
#define DEFINE_COMPILERRT_FUNCTION(name) \
.globl SYMBOL_NAME(name) \
SEPARATOR DECLARE_SYMBOL_VISIBILITY(name) SYMBOL_NAME(name) :
#define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \
.globl SYMBOL_NAME(name) SEPARATOR HIDDEN_DIRECTIVE SYMBOL_NAME(name) \
SEPARATOR SYMBOL_NAME(name) \
:
#define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \
.globl SYMBOL_NAME(name) \
SEPARATOR HIDDEN_DIRECTIVE SYMBOL_NAME(name) \
SEPARATOR SYMBOL_NAME(name) :
#define DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(name) \
.globl name SEPARATOR HIDDEN_DIRECTIVE name SEPARATOR name:

Просмотреть файл

@ -3623,8 +3623,8 @@ void PresShell::DoScrollContentIntoView() {
// Reuse the same line iterator across calls to AccumulateFrameBounds.
// We set it every time we detect a new block (stored in prevBlock).
nsAutoLineIterator lines;
// The last line we found a continuation on in |lines|. We assume that later
// continuations cannot come on earlier lines.
// The last line we found a continuation on in |lines|. We assume that
// later continuations cannot come on earlier lines.
int32_t curLine = 0;
do {
AccumulateFrameBounds(container, frame, useWholeLineHeightForInlines,

Просмотреть файл

@ -244,8 +244,7 @@ bool nsProgressFrame::ShouldUseNativeStyle() const {
// background.
return StyleDisplay()->EffectiveAppearance() ==
StyleAppearance::ProgressBar &&
!Style()->HasAuthorSpecifiedBorderOrBackground() &&
barFrame &&
!Style()->HasAuthorSpecifiedBorderOrBackground() && barFrame &&
barFrame->StyleDisplay()->EffectiveAppearance() ==
StyleAppearance::Progresschunk &&
!barFrame->Style()->HasAuthorSpecifiedBorderOrBackground();

Просмотреть файл

@ -1641,9 +1641,7 @@ class nsLineIterator final : public nsILineIterator {
mIndex = 0;
}
}
~nsLineIterator() {
MOZ_DIAGNOSTIC_ASSERT(!mMutationGuard.Mutated(0));
};
~nsLineIterator() { MOZ_DIAGNOSTIC_ASSERT(!mMutationGuard.Mutated(0)); };
void DisposeLineIterator() final { delete this; }

Просмотреть файл

@ -95,7 +95,7 @@ const char* gInaccessibleProperties[] = {
"-x-text-zoom",
"-moz-default-appearance",
"-moz-inert",
"-moz-script-level", // parsed by UA sheets only
"-moz-script-level", // parsed by UA sheets only
"-moz-script-size-multiplier",
"-moz-script-min-size",
"-moz-math-variant",

Просмотреть файл

@ -275,9 +275,9 @@ void SVGForeignObjectFrame::PaintSVG(gfxContext& aContext,
if (aImgParams.imageFlags & imgIContainer::FLAG_HIGH_QUALITY_SCALING) {
flags |= PaintFrameFlags::UseHighQualityScaling;
}
nsLayoutUtils::PaintFrame(
&aContext, kid, nsRegion(kidDirtyRect), NS_RGBA(0, 0, 0, 0),
nsDisplayListBuilderMode::Painting, flags);
nsLayoutUtils::PaintFrame(&aContext, kid, nsRegion(kidDirtyRect),
NS_RGBA(0, 0, 0, 0),
nsDisplayListBuilderMode::Painting, flags);
aContext.Restore();
}

Просмотреть файл

@ -366,9 +366,7 @@ NS_IMETHODIMP FuzzySecurityInfo::GetIsBuiltCertChainRootBuiltInRoot(
return NS_OK;
}
NS_IMETHODIMP FuzzySecurityInfo::DisableEarlyData(void) {
return NS_OK;
}
NS_IMETHODIMP FuzzySecurityInfo::DisableEarlyData(void) { return NS_OK; }
NS_IMETHODIMP FuzzySecurityInfo::SetHandshakeCallbackListener(
nsITlsHandshakeCallbackListener* callback) {

Просмотреть файл

@ -2311,7 +2311,6 @@ nsresult HttpBaseChannel::ProcessCrossOriginResourcePolicyHeader() {
return NS_OK;
}
// See https://gist.github.com/annevk/6f2dd8c79c77123f39797f6bdac43f3e
// This method runs steps 1-4 of the algorithm to compare
// cross-origin-opener policies

Просмотреть файл

@ -33,8 +33,8 @@ enum {
kCharsetFromOtherComponent,
kCharsetFromInitialUserForcedAutoDetection,
kCharsetFromFinalUserForcedAutoDetection,
kCharsetFromXmlDeclarationUtf16, // This one is overridden by
// kCharsetFromChannel
kCharsetFromXmlDeclarationUtf16, // This one is overridden by
// kCharsetFromChannel
kCharsetFromByteOrderMark,
kCharsetFromUtf8OnlyMime, // For JSON, WebVTT and such
kCharsetFromBuiltIn, // resource: URLs

Просмотреть файл

@ -102,7 +102,7 @@ inline void CommandLineArg<uint64_t>::Put(uint64_t aValue,
}
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunused-variable"
# pragma GCC diagnostic ignored "-Wunused-variable"
#endif
static CommandLineArg<const char*> sParentBuildID{"-parentBuildID",