зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg) # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D168658
This commit is contained in:
Родитель
6d92ad74a8
Коммит
d7e8a09c21
|
@ -101,7 +101,8 @@ void HTMLRadioButtonAccessible::DOMAttributeChanged(
|
|||
} else {
|
||||
// Otherwise, handle this attribute change the way our parent
|
||||
// class wants us to handle it.
|
||||
RadioButtonAccessible::DOMAttributeChanged(aNameSpaceID, aAttribute, aModType, aOldValue, aOldState);
|
||||
RadioButtonAccessible::DOMAttributeChanged(aNameSpaceID, aAttribute,
|
||||
aModType, aOldValue, aOldState);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -586,5 +586,5 @@ bool GeckoTextMarkerRange::Crop(Accessible* aContainer) {
|
|||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -165,5 +165,5 @@ enum AXTextSelectionGranularity {
|
|||
AXTextSelectionGranularityDocument,
|
||||
AXTextSelectionGranularityAll
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -44,8 +44,8 @@ NSString* LocalizedString(const nsString& aString);
|
|||
* nil if no attribute is found.
|
||||
*/
|
||||
NSString* GetAccAttr(mozAccessible* aNativeAccessible, nsAtom* aAttrName);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace utils
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
||||
#endif
|
||||
|
|
|
@ -44,6 +44,6 @@ NSString* GetAccAttr(mozAccessible* aNativeAccessible, nsAtom* aAttrName) {
|
|||
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace utils
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -39,8 +39,8 @@ inline mozAccessible* GetNativeFromGeckoAccessible(
|
|||
return reinterpret_cast<mozAccessible*>(proxy->GetWrapper());
|
||||
}
|
||||
|
||||
} // a11y
|
||||
} // mozilla
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
||||
@interface mozAccessible : MOXAccessibleBase {
|
||||
/**
|
||||
|
|
|
@ -28,8 +28,7 @@ int main(int argc, char** argv) {
|
|||
hr = ieHist->AddUrl(L"http://www.mozilla.org/1", L"Mozilla HTTP Test", 0);
|
||||
if (FAILED(hr)) return -3;
|
||||
|
||||
hr = ieHist->AddUrl(L"https://www.mozilla.org/2", L"Mozilla HTTPS Test 🦊",
|
||||
0);
|
||||
hr = ieHist->AddUrl(L"https://www.mozilla.org/2", L"Mozilla HTTPS Test 🦊", 0);
|
||||
if (FAILED(hr)) return -4;
|
||||
|
||||
CoUninitialize();
|
||||
|
|
|
@ -89,7 +89,7 @@ DEF(times)
|
|||
# include <stdlib.h>
|
||||
# include <stdio.h>
|
||||
|
||||
# define DEF(w) static const char str_##w[] = # w;
|
||||
# define DEF(w) static const char str_##w[] = #w;
|
||||
# include "test.c"
|
||||
# undef DEF
|
||||
|
||||
|
|
|
@ -96,8 +96,8 @@ nsresult JSExecutionContext::JoinOffThread(
|
|||
MOZ_ASSERT(!mWantsReturnValue);
|
||||
|
||||
JS::Rooted<JS::InstantiationStorage> storage(mCx);
|
||||
RefPtr<JS::Stencil> stencil = JS::FinishOffThreadStencil(
|
||||
mCx, *aOffThreadToken, storage.address());
|
||||
RefPtr<JS::Stencil> stencil =
|
||||
JS::FinishOffThreadStencil(mCx, *aOffThreadToken, storage.address());
|
||||
*aOffThreadToken = nullptr; // Mark the token as having been finished.
|
||||
if (!stencil) {
|
||||
mSkip = true;
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace {
|
|||
|
||||
// We can't do always_inline, becasue -Werror -Wattribute will trigger
|
||||
// a "might not be able to inline" warning.
|
||||
//#define FORCE_INLINE __attribute__((always_inline))
|
||||
// #define FORCE_INLINE __attribute__((always_inline))
|
||||
# define FORCE_INLINE inline
|
||||
|
||||
inline uint32_t rotl32(uint32_t x, int8_t r) {
|
||||
|
|
|
@ -144,7 +144,7 @@ static_assert(AreAllBytesTiedFields<Eel>());
|
|||
|
||||
// -
|
||||
|
||||
//#define LETS_USE_BIT_FIELDS
|
||||
// #define LETS_USE_BIT_FIELDS
|
||||
#ifdef LETS_USE_BIT_FIELDS
|
||||
# undef LETS_USE_BIT_FIELDS
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ using namespace mozilla::dom;
|
|||
|
||||
#include "prtime.h"
|
||||
|
||||
//#define DEBUG_charset
|
||||
// #define DEBUG_charset
|
||||
|
||||
// ==================================================================
|
||||
// =
|
||||
|
|
|
@ -31,7 +31,7 @@ extern mozilla::LazyLogModule gMediaDemuxerLog;
|
|||
__func__, ##__VA_ARGS__)
|
||||
|
||||
// Un-comment to enable logging of seek bisections.
|
||||
//#define SEEK_LOGGING
|
||||
// #define SEEK_LOGGING
|
||||
#ifdef SEEK_LOGGING
|
||||
# define SEEK_LOG(type, msg) MOZ_LOG(gMediaDemuxerLog, type, msg)
|
||||
#else
|
||||
|
|
|
@ -288,7 +288,6 @@ class OscillatorNodeEngine final : public AudioNodeEngine {
|
|||
MOZ_ASSERT(mSource == aTrack, "Invalid source track");
|
||||
TRACE("OscillatorNodeEngine::ProcessBlock");
|
||||
|
||||
|
||||
TrackTime ticks = mDestination->GraphTimeToTrackTime(aFrom);
|
||||
if (mStart == -1) {
|
||||
ComputeSilence(aOutput);
|
||||
|
|
|
@ -248,8 +248,10 @@ nsresult OSFileConstantsService::InitOSFileConstants() {
|
|||
*
|
||||
* Produces a |ConstantSpec|.
|
||||
*/
|
||||
#define INT_CONSTANT(name) \
|
||||
{ #name, JS::Int32Value(name) }
|
||||
#define INT_CONSTANT(name) \
|
||||
{ \
|
||||
# name, JS::Int32Value(name) \
|
||||
}
|
||||
|
||||
/**
|
||||
* Define a simple read-only property holding an unsigned integer.
|
||||
|
@ -259,8 +261,10 @@ nsresult OSFileConstantsService::InitOSFileConstants() {
|
|||
*
|
||||
* Produces a |ConstantSpec|.
|
||||
*/
|
||||
#define UINT_CONSTANT(name) \
|
||||
{ #name, JS::NumberValue(name) }
|
||||
#define UINT_CONSTANT(name) \
|
||||
{ \
|
||||
# name, JS::NumberValue(name) \
|
||||
}
|
||||
|
||||
/**
|
||||
* End marker for ConstantSpec
|
||||
|
|
|
@ -118,8 +118,8 @@ Maybe<nsSize> XULResizerElement::GetCurrentSize() const {
|
|||
return Nothing();
|
||||
}
|
||||
return Some(frame->StylePosition()->mBoxSizing == StyleBoxSizing::Content
|
||||
? frame->GetContentRect().Size()
|
||||
: frame->GetRect().Size());
|
||||
? frame->GetContentRect().Size()
|
||||
: frame->GetRect().Size());
|
||||
}
|
||||
|
||||
void XULResizerElement::PostHandleEventInternal(
|
||||
|
|
|
@ -175,7 +175,7 @@ typedef struct gss_channel_bindings_struct {
|
|||
OM_uint32 acceptor_addrtype;
|
||||
gss_buffer_desc acceptor_address;
|
||||
gss_buffer_desc application_data;
|
||||
} * gss_channel_bindings_t;
|
||||
}* gss_channel_bindings_t;
|
||||
|
||||
/*
|
||||
* Flag bits for context-level services.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "nsString.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
//#define DEBUG_SPELLCHECK
|
||||
// #define DEBUG_SPELLCHECK
|
||||
|
||||
class nsRange;
|
||||
class nsINode;
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
#ifndef __MMI_HELPERS_H__
|
||||
#define __MMI_HELPERS_H__
|
||||
|
||||
#define __mm_packxxxx(_f, _D, _d, _s, _t) \
|
||||
# _f " %[" # _t "], %[" # _d "h], %[" # _s "h] \n\t" # _f " %[" # _D \
|
||||
"l], %[" # _d "l], %[" # _s \
|
||||
"l] \n\t" \
|
||||
"punpckhwd %[" # _D "h], %[" # _D "l], %[" # _t \
|
||||
"] \n\t" \
|
||||
"punpcklwd %[" # _D "l], %[" # _D "l], %[" # _t "] \n\t"
|
||||
#define __mm_packxxxx(_f, _D, _d, _s, _t) \
|
||||
# _f " %[" #_t "], %[" #_d "h], %[" #_s "h] \n\t" #_f " %[" #_D "l], %[" #_d \
|
||||
"l], %[" #_s \
|
||||
"l] \n\t" \
|
||||
"punpckhwd %[" #_D "h], %[" #_D "l], %[" #_t \
|
||||
"] \n\t" \
|
||||
"punpcklwd %[" #_D "l], %[" #_D "l], %[" #_t "] \n\t"
|
||||
|
||||
#define _mm_or(_D, _d, _s) \
|
||||
"or %[" #_D "h], %[" #_d "h], %[" #_s \
|
||||
|
|
|
@ -23,9 +23,9 @@ namespace mozilla {
|
|||
namespace layers {
|
||||
|
||||
using gfx::IntPoint;
|
||||
using gfx::IntSize;
|
||||
using gfx::IntRect;
|
||||
using gfx::IntRegion;
|
||||
using gfx::IntSize;
|
||||
using gl::GLContext;
|
||||
using gl::GLContextCGL;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "nsComponentManagerUtils.h"
|
||||
|
||||
#define TCP_LOG(...)
|
||||
//#define TCP_LOG(...) printf_stderr(__VA_ARGS__);
|
||||
// #define TCP_LOG(...) printf_stderr(__VA_ARGS__);
|
||||
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "pixman.h"
|
||||
|
||||
// Uncomment this line to get additional integrity checking.
|
||||
//#define DEBUG_REGIONS
|
||||
// #define DEBUG_REGIONS
|
||||
#ifdef DEBUG_REGIONS
|
||||
# include <sstream>
|
||||
#endif
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
//#define REGION_RANDOM_STRESS_TESTS
|
||||
// #define REGION_RANDOM_STRESS_TESTS
|
||||
|
||||
class TestLargestRegion {
|
||||
public:
|
||||
|
|
|
@ -55,10 +55,17 @@ namespace image {
|
|||
* NOT_SUPPORTED: The requested operation is not supported, but the image is
|
||||
* otherwise valid.
|
||||
*/
|
||||
enum class [[nodiscard]] ImgDrawResult : uint8_t{
|
||||
SUCCESS, SUCCESS_NOT_COMPLETE, INCOMPLETE, WRONG_SIZE,
|
||||
NOT_READY, TEMPORARY_ERROR, BAD_IMAGE, BAD_ARGS,
|
||||
NOT_SUPPORTED};
|
||||
enum class [[nodiscard]] ImgDrawResult : uint8_t {
|
||||
SUCCESS,
|
||||
SUCCESS_NOT_COMPLETE,
|
||||
INCOMPLETE,
|
||||
WRONG_SIZE,
|
||||
NOT_READY,
|
||||
TEMPORARY_ERROR,
|
||||
BAD_IMAGE,
|
||||
BAD_ARGS,
|
||||
NOT_SUPPORTED
|
||||
};
|
||||
|
||||
/**
|
||||
* You can combine ImgDrawResults with &. By analogy to bitwise-&, the result is
|
||||
|
|
|
@ -1151,8 +1151,9 @@ already_AddRefed<imgRequestProxy> imgRequestProxy::GetStaticRequest(
|
|||
bool hadCrossOriginRedirects = true;
|
||||
GetHadCrossOriginRedirects(&hadCrossOriginRedirects);
|
||||
nsCOMPtr<nsIPrincipal> triggeringPrincipal = GetTriggeringPrincipal();
|
||||
RefPtr<imgRequestProxy> req = new imgRequestProxyStatic(
|
||||
frozenImage, currentPrincipal, triggeringPrincipal, hadCrossOriginRedirects);
|
||||
RefPtr<imgRequestProxy> req =
|
||||
new imgRequestProxyStatic(frozenImage, currentPrincipal,
|
||||
triggeringPrincipal, hadCrossOriginRedirects);
|
||||
req->Init(nullptr, nullptr, aLoadingDocument, mURI, nullptr);
|
||||
|
||||
return req.forget();
|
||||
|
|
|
@ -285,8 +285,7 @@ TEST(IntlDisplayNames, Calendar)
|
|||
|
||||
{
|
||||
// Code with non-ascii alpha letters.
|
||||
auto err =
|
||||
displayNames->GetCalendar(buffer, MakeStringSpan("🥸 not ascii"));
|
||||
auto err = displayNames->GetCalendar(buffer, MakeStringSpan("🥸 not ascii"));
|
||||
ASSERT_TRUE(err.isErr());
|
||||
ASSERT_EQ(err.unwrapErr(), DisplayNamesError::InvalidOption);
|
||||
}
|
||||
|
|
|
@ -54,6 +54,6 @@ class ScopedSendingEvent {
|
|||
DISALLOW_COPY_AND_ASSIGN(ScopedSendingEvent);
|
||||
};
|
||||
|
||||
} // chrome_application_mac
|
||||
} // namespace chrome_application_mac
|
||||
|
||||
#endif // BASE_CHROME_APPLICATION_MAC_H_
|
||||
|
|
|
@ -302,7 +302,7 @@ class JS_PUBLIC_API TransitiveCompileOptions {
|
|||
#if defined(DEBUG) || defined(JS_JITSPEW)
|
||||
template <typename Printer>
|
||||
void dumpWith(Printer& print) const {
|
||||
# define PrintFields_(Name) print(# Name, Name)
|
||||
# define PrintFields_(Name) print(#Name, Name)
|
||||
PrintFields_(filename_);
|
||||
PrintFields_(introducerFilename_);
|
||||
PrintFields_(sourceMapURL_);
|
||||
|
@ -381,7 +381,7 @@ class JS_PUBLIC_API ReadOnlyCompileOptions : public TransitiveCompileOptions {
|
|||
template <typename Printer>
|
||||
void dumpWith(Printer& print) const {
|
||||
this->TransitiveCompileOptions::dumpWith(print);
|
||||
# define PrintFields_(Name) print(# Name, Name)
|
||||
# define PrintFields_(Name) print(#Name, Name)
|
||||
PrintFields_(lineno);
|
||||
PrintFields_(column);
|
||||
PrintFields_(scriptSourceOffset);
|
||||
|
|
|
@ -642,13 +642,13 @@ typedef mozilla::UniquePtr<JS::Latin1Char[], JS::FreePolicy> UniqueLatin1Chars;
|
|||
#ifndef HAVE_STATIC_ANNOTATIONS
|
||||
# define HAVE_STATIC_ANNOTATIONS
|
||||
# ifdef XGILL_PLUGIN
|
||||
# define STATIC_PRECONDITION(COND) __attribute__((precondition(# COND)))
|
||||
# define STATIC_PRECONDITION(COND) __attribute__((precondition(#COND)))
|
||||
# define STATIC_PRECONDITION_ASSUME(COND) \
|
||||
__attribute__((precondition_assume(#COND)))
|
||||
# define STATIC_POSTCONDITION(COND) __attribute__((postcondition(# COND)))
|
||||
# define STATIC_POSTCONDITION(COND) __attribute__((postcondition(#COND)))
|
||||
# define STATIC_POSTCONDITION_ASSUME(COND) \
|
||||
__attribute__((postcondition_assume(#COND)))
|
||||
# define STATIC_INVARIANT(COND) __attribute__((invariant(# COND)))
|
||||
# define STATIC_INVARIANT(COND) __attribute__((invariant(#COND)))
|
||||
# define STATIC_INVARIANT_ASSUME(COND) \
|
||||
__attribute__((invariant_assume(#COND)))
|
||||
# define STATIC_ASSUME(COND) \
|
||||
|
|
|
@ -21,8 +21,8 @@ static void cProbe(void* vprofID) {
|
|||
}
|
||||
|
||||
//__declspec (thread) boolean cv;
|
||||
//#define if(c) cv = (c); _vprof (cv); if (cv)
|
||||
//#define if(c) cv = (c); _vprof (cv, cProbe); if (cv)
|
||||
// #define if(c) cv = (c); _vprof (cv); if (cv)
|
||||
// #define if(c) cv = (c); _vprof (cv, cProbe); if (cv)
|
||||
|
||||
#define THREADS 1
|
||||
#define COUNT 100000
|
||||
|
|
|
@ -86,7 +86,7 @@ uint64_t readTimestampCounter();
|
|||
}
|
||||
#endif
|
||||
|
||||
//#define DOPROF
|
||||
// #define DOPROF
|
||||
|
||||
#ifndef DOPROF
|
||||
# define _nvprof(e, v)
|
||||
|
@ -216,7 +216,7 @@ typedef struct hist {
|
|||
int nbins;
|
||||
int64_t* lb;
|
||||
int64_t* count;
|
||||
} * hist_t;
|
||||
}* hist_t;
|
||||
|
||||
typedef struct entry entry;
|
||||
|
||||
|
@ -242,7 +242,7 @@ typedef struct entry {
|
|||
//
|
||||
|
||||
char pad[128]; // avoid false sharing
|
||||
} * entry_t;
|
||||
}* entry_t;
|
||||
|
||||
#define _VAL ((entry_t)vprofID)->value
|
||||
#define _COUNT ((entry_t)vprofID)->count
|
||||
|
|
|
@ -71,7 +71,7 @@ static uint64_t LoggingBits = 0;
|
|||
static mozilla::Atomic<uint32_t, mozilla::Relaxed> filteredOutCompilations(0);
|
||||
|
||||
static const char* const ChannelNames[] = {
|
||||
# define JITSPEW_CHANNEL(name) # name,
|
||||
# define JITSPEW_CHANNEL(name) #name,
|
||||
JITSPEW_CHANNEL_LIST(JITSPEW_CHANNEL)
|
||||
# undef JITSPEW_CHANNEL
|
||||
};
|
||||
|
|
|
@ -103,7 +103,7 @@ void WarpScriptSnapshot::dump(GenericPrinter& out) const {
|
|||
|
||||
static const char* OpSnapshotKindString(WarpOpSnapshot::Kind kind) {
|
||||
static const char* const names[] = {
|
||||
# define NAME(x) # x,
|
||||
# define NAME(x) #x,
|
||||
WARP_OP_SNAPSHOT_LIST(NAME)
|
||||
# undef NAME
|
||||
};
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
// and earlier, and probably for Clang 3.1, should we need to use those
|
||||
// versions. Firefox no longer supports compilers that old.
|
||||
|
||||
//#define ATOMICS_IMPLEMENTED_WITH_SYNC_INTRINSICS
|
||||
// #define ATOMICS_IMPLEMENTED_WITH_SYNC_INTRINSICS
|
||||
|
||||
// Sanity check.
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "js/Utility.h"
|
||||
#include "jsapi-tests/tests.h"
|
||||
|
||||
//#define FUZZ
|
||||
// #define FUZZ
|
||||
|
||||
typedef js::HashMap<uint32_t, uint32_t, js::DefaultHasher<uint32_t>,
|
||||
js::SystemAllocPolicy>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
using namespace js;
|
||||
|
||||
const StructuredSpewer::NameArray StructuredSpewer::names_ = {
|
||||
# define STRUCTURED_CHANNEL(name) # name,
|
||||
# define STRUCTURED_CHANNEL(name) #name,
|
||||
STRUCTURED_CHANNEL_LIST(STRUCTURED_CHANNEL)
|
||||
# undef STRUCTURED_CHANNEL
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ using namespace mozilla;
|
|||
using namespace mozilla::dom;
|
||||
using namespace JS;
|
||||
|
||||
//#define STRICT_CHECK_OF_UNICODE
|
||||
// #define STRICT_CHECK_OF_UNICODE
|
||||
#ifdef STRICT_CHECK_OF_UNICODE
|
||||
# define ILLEGAL_RANGE(c) (0 != ((c)&0xFF80))
|
||||
#else // STRICT_CHECK_OF_UNICODE
|
||||
|
|
|
@ -345,7 +345,7 @@ already_AddRefed<XPCNativeInterface> XPCNativeInterface::NewInstance(
|
|||
// static
|
||||
void XPCNativeInterface::DestroyInstance(XPCNativeInterface* inst) {
|
||||
inst->~XPCNativeInterface();
|
||||
delete[](char*) inst;
|
||||
delete[] (char*)inst;
|
||||
}
|
||||
|
||||
size_t XPCNativeInterface::SizeOfIncludingThis(MallocSizeOf mallocSizeOf) {
|
||||
|
@ -703,7 +703,7 @@ already_AddRefed<XPCNativeSet> XPCNativeSet::NewInstanceMutate(
|
|||
// static
|
||||
void XPCNativeSet::DestroyInstance(XPCNativeSet* inst) {
|
||||
inst->~XPCNativeSet();
|
||||
delete[](char*) inst;
|
||||
delete[] (char*)inst;
|
||||
}
|
||||
|
||||
size_t XPCNativeSet::SizeOfIncludingThis(MallocSizeOf mallocSizeOf) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
using namespace mozilla;
|
||||
using mozilla::dom::HTMLInputElement;
|
||||
|
||||
//#define FCF_NOISY
|
||||
// #define FCF_NOISY
|
||||
|
||||
nsCheckboxRadioFrame* NS_NewCheckboxRadioFrame(PresShell* aPresShell,
|
||||
ComputedStyle* aStyle) {
|
||||
|
|
|
@ -8,15 +8,15 @@
|
|||
#define nsComboboxControlFrame_h___
|
||||
|
||||
#ifdef DEBUG_evaughan
|
||||
//#define DEBUG_rods
|
||||
// #define DEBUG_rods
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_rods
|
||||
//#define DO_REFLOW_DEBUG
|
||||
//#define DO_REFLOW_COUNTER
|
||||
//#define DO_UNCONSTRAINED_CHECK
|
||||
//#define DO_PIXELS
|
||||
//#define DO_NEW_REFLOW
|
||||
// #define DO_REFLOW_DEBUG
|
||||
// #define DO_REFLOW_COUNTER
|
||||
// #define DO_UNCONSTRAINED_CHECK
|
||||
// #define DO_PIXELS
|
||||
// #define DO_NEW_REFLOW
|
||||
#endif
|
||||
|
||||
// Mark used to indicate when onchange has been fired for current combobox item
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
//#define SHOW_BOUNDING_BOX 1
|
||||
// #define SHOW_BOUNDING_BOX 1
|
||||
#ifndef nsIMathMLFrame_h___
|
||||
#define nsIMathMLFrame_h___
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ using namespace mozilla;
|
|||
using namespace mozilla::gfx;
|
||||
using namespace mozilla::image;
|
||||
|
||||
//#define NOISY_SEARCH 1
|
||||
// #define NOISY_SEARCH 1
|
||||
|
||||
// BUG 848725 Drawing failure with stretchy horizontal parenthesis when no fonts
|
||||
// are installed. "kMaxScaleFactor" is required to limit the scale for the
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace nsStyleTransformMatrix {
|
|||
// correctly, since when the frames are initially being reflowed, their
|
||||
// continuations all compute their bounding rects independently of each other
|
||||
// and consequently get the wrong value.
|
||||
//#define UNIFIED_CONTINUATIONS
|
||||
// #define UNIFIED_CONTINUATIONS
|
||||
|
||||
void TransformReferenceBox::EnsureDimensionsAreCached() {
|
||||
if (mIsCached) {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
using namespace mozilla;
|
||||
|
||||
//#define DEBUG_SPANNING_CELL_SORTER
|
||||
// #define DEBUG_SPANNING_CELL_SORTER
|
||||
|
||||
SpanningCellSorter::SpanningCellSorter()
|
||||
: mState(ADDING),
|
||||
|
|
|
@ -378,15 +378,15 @@ static void TestDecodeOneValidUtf8CodePoint() {
|
|||
ExpectValidCodePoint(u8"ͼ", 0x37C); // GREEK SMALL DOTTED LUNATE SIGMA SYMBOL
|
||||
ExpectValidCodePoint(u8"Ӝ",
|
||||
0x4DC); // CYRILLIC CAPITAL LETTER ZHE WITTH DIAERESIS
|
||||
ExpectValidCodePoint(u8"۩", 0x6E9); // ARABIC PLACE OF SAJDAH
|
||||
ExpectValidCodePoint(u8"۩", 0x6E9); // ARABIC PLACE OF SAJDAH
|
||||
ExpectValidCodePoint(u8"߿", 0x7FF); // <not assigned>
|
||||
|
||||
// Length three.
|
||||
|
||||
ExpectValidCodePoint(u8"ࠀ", 0x800); // SAMARITAN LETTER ALAF
|
||||
ExpectValidCodePoint(u8"ࡁ", 0x841); // MANDAIC LETTER AB
|
||||
ExpectValidCodePoint(u8"ࠀ", 0x800); // SAMARITAN LETTER ALAF
|
||||
ExpectValidCodePoint(u8"ࡁ", 0x841); // MANDAIC LETTER AB
|
||||
ExpectValidCodePoint(u8"ࣿ", 0x8FF); // ARABIC MARK SIDEWAYS NOON GHUNNA
|
||||
ExpectValidCodePoint(u8"ஆ", 0xB86); // TAMIL LETTER AA
|
||||
ExpectValidCodePoint(u8"ஆ", 0xB86); // TAMIL LETTER AA
|
||||
ExpectValidCodePoint(u8"༃",
|
||||
0xF03); // TIBETAN MARK GTER YIG MGO -UM GTER TSHEG MA
|
||||
ExpectValidCodePoint(
|
||||
|
@ -404,7 +404,7 @@ static void TestDecodeOneValidUtf8CodePoint() {
|
|||
ExpectValidCodePoint(u8"ꔄ", 0xA504); // VAI SYLLABLE WEEN
|
||||
ExpectValidCodePoint(u8"ퟕ", 0xD7D5); // HANGUL JONGSEONG RIEUL-SSANGKIYEOK
|
||||
ExpectValidCodePoint(u8"", 0xD7FF); // <not assigned>
|
||||
ExpectValidCodePoint(u8"", 0xE000); // <Private Use>
|
||||
ExpectValidCodePoint(u8"", 0xE000); // <Private Use>
|
||||
ExpectValidCodePoint(u8"鱗", 0xF9F2); // CJK COMPATIBILITY IDEOGRAPH-F9F
|
||||
ExpectValidCodePoint(
|
||||
u8"﷽", 0xFDFD); // ARABIC LIGATURE BISMILLAH AR-RAHMAN AR-RAHHHEEEEM
|
||||
|
@ -412,17 +412,17 @@ static void TestDecodeOneValidUtf8CodePoint() {
|
|||
|
||||
// Length four.
|
||||
ExpectValidCodePoint(u8"𐀀", 0x10000); // LINEAR B SYLLABLE B008 A
|
||||
ExpectValidCodePoint(u8"𔑀", 0x14440); // ANATOLIAN HIEROGLYPH A058
|
||||
ExpectValidCodePoint(u8"𔑀", 0x14440); // ANATOLIAN HIEROGLYPH A058
|
||||
ExpectValidCodePoint(u8"𝛗", 0x1D6D7); // MATHEMATICAL BOLD SMALL PHI
|
||||
ExpectValidCodePoint(u8"💩", 0x1F4A9); // PILE OF POO
|
||||
ExpectValidCodePoint(u8"🔫", 0x1F52B); // PISTOL
|
||||
ExpectValidCodePoint(u8"🥌", 0x1F94C); // CURLING STONE
|
||||
ExpectValidCodePoint(u8"🥏", 0x1F94F); // FLYING DISC
|
||||
ExpectValidCodePoint(u8"🥌", 0x1F94C); // CURLING STONE
|
||||
ExpectValidCodePoint(u8"🥏", 0x1F94F); // FLYING DISC
|
||||
ExpectValidCodePoint(u8"𠍆", 0x20346); // CJK UNIFIED IDEOGRAPH-20346
|
||||
ExpectValidCodePoint(u8"𡠺", 0x2183A); // CJK UNIFIED IDEOGRAPH-2183A
|
||||
ExpectValidCodePoint(u8"", 0x417F6); // <not assigned>
|
||||
ExpectValidCodePoint(u8"", 0x7E836); // <not assigned>
|
||||
ExpectValidCodePoint(u8"", 0xFEF67); // <Plane 15 Private Use>
|
||||
ExpectValidCodePoint(u8"", 0xFEF67); // <Plane 15 Private Use>
|
||||
ExpectValidCodePoint(u8"", 0x10FFFF); //
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ static void FreeArgv(char** argv, int argc) {
|
|||
// String was allocated with strndup, so need to use free to deallocate.
|
||||
free(argv[ix]);
|
||||
}
|
||||
delete[](argv);
|
||||
delete[] (argv);
|
||||
}
|
||||
|
||||
extern "C" APKOPEN_EXPORT void MOZ_JNICALL
|
||||
|
|
|
@ -74,9 +74,7 @@ class RacyRegisteredThread final {
|
|||
|
||||
BaseProfilerThreadId ThreadId() const { return mThreadId; }
|
||||
|
||||
class ProfilingStack& ProfilingStack() {
|
||||
return mProfilingStack;
|
||||
}
|
||||
class ProfilingStack& ProfilingStack() { return mProfilingStack; }
|
||||
const class ProfilingStack& ProfilingStack() const { return mProfilingStack; }
|
||||
|
||||
private:
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <atomic>
|
||||
|
||||
// Uncomment to printf ProcessLogger updates.
|
||||
//#define DEBUG_PROCESSLOGGER
|
||||
// #define DEBUG_PROCESSLOGGER
|
||||
|
||||
#ifdef DEBUG_PROCESSLOGGER
|
||||
# include "mozilla/BaseProfilerUtils.h"
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
# define R_RELATIVE R_386_RELATIVE
|
||||
# define RELOC(n) DT_REL##n
|
||||
# define UNSUPPORTED_RELOC(n) DT_RELA##n
|
||||
# define STR_RELOC(n) "DT_REL" # n
|
||||
# define STR_RELOC(n) "DT_REL" #n
|
||||
# define Reloc Rel
|
||||
|
||||
#elif defined(__x86_64__)
|
||||
|
@ -84,7 +84,7 @@
|
|||
# define R_RELATIVE R_X86_64_RELATIVE
|
||||
# define RELOC(n) DT_RELA##n
|
||||
# define UNSUPPORTED_RELOC(n) DT_REL##n
|
||||
# define STR_RELOC(n) "DT_RELA" # n
|
||||
# define STR_RELOC(n) "DT_RELA" #n
|
||||
# define Reloc Rela
|
||||
|
||||
#elif defined(__arm__)
|
||||
|
@ -109,7 +109,7 @@
|
|||
# define R_RELATIVE R_ARM_RELATIVE
|
||||
# define RELOC(n) DT_REL##n
|
||||
# define UNSUPPORTED_RELOC(n) DT_RELA##n
|
||||
# define STR_RELOC(n) "DT_REL" # n
|
||||
# define STR_RELOC(n) "DT_REL" #n
|
||||
# define Reloc Rel
|
||||
|
||||
#elif defined(__aarch64__)
|
||||
|
@ -121,7 +121,7 @@
|
|||
# define R_RELATIVE R_AARCH64_RELATIVE
|
||||
# define RELOC(n) DT_RELA##n
|
||||
# define UNSUPPORTED_RELOC(n) DT_REL##n
|
||||
# define STR_RELOC(n) "DT_RELA" # n
|
||||
# define STR_RELOC(n) "DT_RELA" #n
|
||||
# define Reloc Rela
|
||||
|
||||
#else
|
||||
|
|
|
@ -5615,7 +5615,8 @@ void TestPredefinedMarkers() {
|
|||
|
||||
MOZ_RELEASE_ASSERT(mozilla::baseprofiler::AddMarkerToBuffer(
|
||||
buffer, std::string_view("media"), mozilla::baseprofiler::category::OTHER,
|
||||
{}, mozilla::baseprofiler::markers::VideoFallingBehindMarker{}, 123, 456));
|
||||
{}, mozilla::baseprofiler::markers::VideoFallingBehindMarker{}, 123,
|
||||
456));
|
||||
|
||||
# ifdef DEBUG
|
||||
buffer.Dump();
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "nsTHashtable.h"
|
||||
#include "prio.h"
|
||||
|
||||
//#define DEBUG_HANDLES 1
|
||||
// #define DEBUG_HANDLES 1
|
||||
|
||||
class nsIFile;
|
||||
class nsITimer;
|
||||
|
|
|
@ -64,9 +64,7 @@ class OutgoingMsg {
|
|||
~OutgoingMsg() = default;
|
||||
;
|
||||
void Advance(size_t offset);
|
||||
struct sctp_sendv_spa& GetInfo() {
|
||||
return *mInfo;
|
||||
};
|
||||
struct sctp_sendv_spa& GetInfo() { return *mInfo; };
|
||||
size_t GetLength() const { return mLength; };
|
||||
size_t GetLeft() const { return mLength - mPos; };
|
||||
const uint8_t* GetData() { return (const uint8_t*)(mData + mPos); };
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//#define __INCREMENTAL 1
|
||||
// #define __INCREMENTAL 1
|
||||
|
||||
#include "nsScanner.h"
|
||||
|
||||
|
|
|
@ -1473,35 +1473,35 @@ int parseConfigFile(const char* filePath) {
|
|||
}
|
||||
|
||||
int freeHostCertHashItems(PLHashEntry* he, int i, void* arg) {
|
||||
delete[](char*) he->key;
|
||||
delete[](char*) he->value;
|
||||
delete[] (char*)he->key;
|
||||
delete[] (char*)he->value;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
int freeHostRedirHashItems(PLHashEntry* he, int i, void* arg) {
|
||||
delete[](char*) he->key;
|
||||
delete[](char*) he->value;
|
||||
delete[] (char*)he->key;
|
||||
delete[] (char*)he->value;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
int freeClientAuthHashItems(PLHashEntry* he, int i, void* arg) {
|
||||
delete[](char*) he->key;
|
||||
delete[] (char*)he->key;
|
||||
delete (client_auth_option*)he->value;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
int freeSSL3HashItems(PLHashEntry* he, int i, void* arg) {
|
||||
delete[](char*) he->key;
|
||||
delete[] (char*)he->key;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
int freeTLSHashItems(PLHashEntry* he, int i, void* arg) {
|
||||
delete[](char*) he->key;
|
||||
delete[] (char*)he->key;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
int free3DESHashItems(PLHashEntry* he, int i, void* arg) {
|
||||
delete[](char*) he->key;
|
||||
delete[] (char*)he->key;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
#include <fcntl.h>
|
||||
#include <sstream>
|
||||
|
||||
using std::ostringstream;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::ostringstream;
|
||||
|
||||
using namespace CrashReporter;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class IntCount {
|
|||
struct IntPair {
|
||||
int idx;
|
||||
int cnt;
|
||||
} * iPair;
|
||||
}* iPair;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -68,7 +68,8 @@ struct UprofilerFuncPtrs {
|
|||
static void register_thread_noop(const char* aName, void* aGuessStackTop) {
|
||||
/* no-op */
|
||||
}
|
||||
static void unregister_thread_noop() { /* no-op */ }
|
||||
static void unregister_thread_noop() { /* no-op */
|
||||
}
|
||||
static void simple_event_marker_noop(const char* name, char phase, int num_args,
|
||||
const char** arg_names,
|
||||
const unsigned char* arg_types,
|
||||
|
|
|
@ -353,11 +353,12 @@ class Section {
|
|||
Section &L16(uint16_t), &L32(uint32_t), &L64(uint64_t), &B16(uint16_t),
|
||||
&B32(uint32_t), &B64(uint64_t), &D16(uint16_t), &D32(uint32_t),
|
||||
&D64(uint64_t);
|
||||
Section &L8(const Label&label), &L16(const Label&label),
|
||||
&L32(const Label&label), &L64(const Label&label), &B8(const Label&label),
|
||||
&B16(const Label&label), &B32(const Label&label), &B64(const Label&label),
|
||||
&D8(const Label&label), &D16(const Label&label), &D32(const Label&label),
|
||||
&D64(const Label&label);
|
||||
Section &L8(const Label& label), &L16(const Label& label),
|
||||
&L32(const Label& label), &L64(const Label& label),
|
||||
&B8(const Label& label), &B16(const Label& label),
|
||||
&B32(const Label& label), &B64(const Label& label),
|
||||
&D8(const Label& label), &D16(const Label& label),
|
||||
&D32(const Label& label), &D64(const Label& label);
|
||||
|
||||
// Append VALUE in a signed LEB128 (Little-Endian Base 128) form.
|
||||
//
|
||||
|
|
|
@ -168,5 +168,5 @@ void MediaHardwareKeysEventSourceMacMediaCenter::SetMediaMetadata(
|
|||
[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = nowPlayingInfo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace widget
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
using namespace mozilla;
|
||||
|
||||
using mozilla::dom::Event;
|
||||
using mozilla::dom::CallerType;
|
||||
using mozilla::dom::Event;
|
||||
|
||||
nsMenuItemX::nsMenuItemX(nsMenuX* aParent, const nsString& aLabel, EMenuItemType aItemType,
|
||||
nsMenuGroupOwnerX* aMenuGroupOwner, nsIContent* aNode)
|
||||
|
|
|
@ -20,8 +20,8 @@ namespace mozilla {
|
|||
namespace widget {
|
||||
// This constructor should really be shared with all platforms.
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(GfxInfo, Init)
|
||||
}
|
||||
}
|
||||
} // namespace widget
|
||||
} // namespace mozilla
|
||||
|
||||
NS_DEFINE_NAMED_CID(NS_APPSHELL_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_SCREENMANAGER_CID);
|
||||
|
|
|
@ -13,17 +13,17 @@
|
|||
#include "nsWindowDefs.h"
|
||||
|
||||
// Enables debug output for popup rollup hooks
|
||||
//#define POPUP_ROLLUP_DEBUG_OUTPUT
|
||||
// #define POPUP_ROLLUP_DEBUG_OUTPUT
|
||||
|
||||
// Enable window size and state debug output
|
||||
//#define WINSTATE_DEBUG_OUTPUT
|
||||
// #define WINSTATE_DEBUG_OUTPUT
|
||||
|
||||
// nsIWidget defines a set of debug output statements
|
||||
// that are called in various places within the code.
|
||||
//#define WIDGET_DEBUG_OUTPUT
|
||||
// #define WIDGET_DEBUG_OUTPUT
|
||||
|
||||
// Enable IS_VK_DOWN debug output
|
||||
//#define DEBUG_VK
|
||||
// #define DEBUG_VK
|
||||
|
||||
namespace mozilla::widget {
|
||||
// Windows message debugging data
|
||||
|
|
|
@ -29,4 +29,4 @@ nsresult GetSelectedCityInfo(nsAString& aCountryCode) {
|
|||
NS_OBJC_END_TRY_BLOCK_RETURN(NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
} // namespace Mozilla
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -15,6 +15,6 @@ namespace mozilla {
|
|||
|
||||
nsresult CopyCocoaStringToXPCOMString(NSString* aFrom, nsAString& aTo);
|
||||
|
||||
} // namespace Mozilla
|
||||
} // namespace mozilla
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,4 +31,4 @@ nsresult CopyCocoaStringToXPCOMString(NSString* aFrom, nsAString& aTo) {
|
|||
NS_OBJC_END_TRY_BLOCK_RETURN(NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
} // namespace Mozilla
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -162,13 +162,13 @@ inline void MOZ_PretendNoReturn() MOZ_PRETEND_NORETURN_FOR_STATIC_ANALYSIS {}
|
|||
|
||||
# ifdef XGILL_PLUGIN
|
||||
|
||||
# define STATIC_PRECONDITION(COND) __attribute__((precondition(# COND)))
|
||||
# define STATIC_PRECONDITION(COND) __attribute__((precondition(#COND)))
|
||||
# define STATIC_PRECONDITION_ASSUME(COND) \
|
||||
__attribute__((precondition_assume(#COND)))
|
||||
# define STATIC_POSTCONDITION(COND) __attribute__((postcondition(# COND)))
|
||||
# define STATIC_POSTCONDITION(COND) __attribute__((postcondition(#COND)))
|
||||
# define STATIC_POSTCONDITION_ASSUME(COND) \
|
||||
__attribute__((postcondition_assume(#COND)))
|
||||
# define STATIC_INVARIANT(COND) __attribute__((invariant(# COND)))
|
||||
# define STATIC_INVARIANT(COND) __attribute__((invariant(#COND)))
|
||||
# define STATIC_INVARIANT_ASSUME(COND) \
|
||||
__attribute__((invariant_assume(#COND)))
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace mozilla {
|
|||
// Called when an exception bubbles up to the native event loop.
|
||||
bool ShouldIgnoreObjCException(NSException* aException);
|
||||
|
||||
}
|
||||
} // namespace mozilla
|
||||
|
||||
// For wrapping blocks of Obj-C calls which are not expected to throw exception.
|
||||
// Causes a MOZ_CRASH if an Obj-C exception is encountered.
|
||||
|
|
|
@ -39,7 +39,9 @@ static bool test_consume_stream() {
|
|||
|
||||
typedef bool (*TestFunc)();
|
||||
#define DECL_TEST(name) \
|
||||
{ #name, name }
|
||||
{ \
|
||||
# name, name \
|
||||
}
|
||||
|
||||
static const struct Test {
|
||||
const char* name;
|
||||
|
|
|
@ -172,7 +172,9 @@ static bool test_random8() { return test_random<8>(); }
|
|||
|
||||
typedef bool (*TestFunc)();
|
||||
#define DECL_TEST(name) \
|
||||
{ #name, name }
|
||||
{ \
|
||||
# name, name \
|
||||
}
|
||||
|
||||
static const struct Test {
|
||||
const char* name;
|
||||
|
|
Загрузка…
Ссылка в новой задаче