mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA) # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D108334
This commit is contained in:
parent
8565b0c719
commit
81b14e2ac7
@ -954,8 +954,8 @@ AccessibleWrap::accHitTest(
|
||||
|
||||
if (IsDefunct()) return CO_E_OBJNOTCONNECTED;
|
||||
|
||||
LocalAccessible* accessible =
|
||||
LocalChildAtPoint(xLeft, yTop, Accessible::EWhichChildAtPoint::DirectChild);
|
||||
LocalAccessible* accessible = LocalChildAtPoint(
|
||||
xLeft, yTop, Accessible::EWhichChildAtPoint::DirectChild);
|
||||
|
||||
// if we got a child
|
||||
if (accessible) {
|
||||
|
@ -4928,9 +4928,8 @@ nsDocShell::GetVisibility(bool* aVisibility) {
|
||||
}
|
||||
|
||||
nsIFrame* frame = view ? view->GetFrame() : nullptr;
|
||||
if (frame &&
|
||||
!frame->IsVisibleConsideringAncestors(
|
||||
nsIFrame::VISIBILITY_CROSS_CHROME_CONTENT_BOUNDARY)) {
|
||||
if (frame && !frame->IsVisibleConsideringAncestors(
|
||||
nsIFrame::VISIBILITY_CROSS_CHROME_CONTENT_BOUNDARY)) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -200,10 +200,10 @@ bool AboutToCheckerboard(const FrameMetrics& aPaintedMetrics,
|
||||
const FrameMetrics& aCompositorMetrics);
|
||||
|
||||
/**
|
||||
* Wrapper around StaticPrefs::layers_progressive_paint that takes into account
|
||||
* whether the platform is supported or sandboxed. We should prefer this over
|
||||
* using the StaticPrefs getter directly.
|
||||
*/
|
||||
* Wrapper around StaticPrefs::layers_progressive_paint that takes into account
|
||||
* whether the platform is supported or sandboxed. We should prefer this over
|
||||
* using the StaticPrefs getter directly.
|
||||
*/
|
||||
bool ShouldUseProgressivePaint();
|
||||
} // namespace apz
|
||||
|
||||
|
@ -1528,9 +1528,9 @@ void gfxDWriteFontList::InitSharedFontListForPlatform() {
|
||||
TimeStamp start2 = TimeStamp::Now();
|
||||
AppendFamiliesFromCollection(mBundledFonts, families);
|
||||
TimeStamp end2 = TimeStamp::Now();
|
||||
Telemetry::Accumulate(Telemetry::FONTLIST_BUNDLEDFONTS_ACTIVATE,
|
||||
(end1 - start1).ToMilliseconds() +
|
||||
(end2 - start2).ToMilliseconds());
|
||||
Telemetry::Accumulate(
|
||||
Telemetry::FONTLIST_BUNDLEDFONTS_ACTIVATE,
|
||||
(end1 - start1).ToMilliseconds() + (end2 - start2).ToMilliseconds());
|
||||
}
|
||||
#endif
|
||||
SharedFontList()->SetFamilyNames(families);
|
||||
|
@ -246,9 +246,7 @@ void StackShape::trace(JSTracer* trc) {
|
||||
}
|
||||
}
|
||||
|
||||
void StackBaseShape::trace(JSTracer* trc) {
|
||||
proto.trace(trc);
|
||||
}
|
||||
void StackBaseShape::trace(JSTracer* trc) { proto.trace(trc); }
|
||||
|
||||
void PropertyDescriptor::trace(JSTracer* trc) {
|
||||
if (obj) {
|
||||
|
@ -131,8 +131,9 @@ class MOZ_STACK_CLASS CallInfo {
|
||||
setThis(thisVal);
|
||||
|
||||
MOZ_ASSERT(numActuals <= ArgumentsObject::MaxInlinedArgs);
|
||||
static_assert(ArgumentsObject::MaxInlinedArgs <= decltype(args_)::InlineLength,
|
||||
"Actual arguments can be infallibly stored inline");
|
||||
static_assert(
|
||||
ArgumentsObject::MaxInlinedArgs <= decltype(args_)::InlineLength,
|
||||
"Actual arguments can be infallibly stored inline");
|
||||
MOZ_ALWAYS_TRUE(args_.reserve(numActuals));
|
||||
}
|
||||
|
||||
|
@ -2852,7 +2852,8 @@ static bool GenerateThrowStub(MacroAssembler& masm, Label* throwLabel,
|
||||
masm.loadPtr(Address(ReturnReg, offsetof(ResumeFromException, target)),
|
||||
scratch);
|
||||
// Now it's safe to reload stackPointer.
|
||||
masm.loadStackPtr(Address(ReturnReg, offsetof(ResumeFromException, stackPointer)));
|
||||
masm.loadStackPtr(
|
||||
Address(ReturnReg, offsetof(ResumeFromException, stackPointer)));
|
||||
// This move must come after the SP is reloaded because WasmExceptionReg may
|
||||
// alias ReturnReg.
|
||||
masm.movePtr(obj, WasmExceptionReg);
|
||||
|
@ -610,8 +610,8 @@ nsresult Http3Session::ProcessOutput(nsIUDPSocket* socket) {
|
||||
nsAutoCString remoteAddrStr;
|
||||
uint16_t port = 0;
|
||||
uint64_t timeout = 0;
|
||||
if (!mHttp3Connection->ProcessOutput(&remoteAddrStr, &port,
|
||||
packetToSend, &timeout)) {
|
||||
if (!mHttp3Connection->ProcessOutput(&remoteAddrStr, &port, packetToSend,
|
||||
&timeout)) {
|
||||
SetupTimer(timeout);
|
||||
break;
|
||||
}
|
||||
|
@ -42,8 +42,7 @@ class NeqoHttp3Conn final {
|
||||
}
|
||||
|
||||
bool ProcessOutput(nsACString* aRemoteAddr, uint16_t* aPort,
|
||||
nsTArray<uint8_t>& aData, uint64_t* aTimeout)
|
||||
{
|
||||
nsTArray<uint8_t>& aData, uint64_t* aTimeout) {
|
||||
aData.TruncateLength(0);
|
||||
return neqo_http3conn_process_output(this, aRemoteAddr, aPort, &aData,
|
||||
aTimeout);
|
||||
|
@ -69,8 +69,8 @@ class ScrollbarDrawingMac final {
|
||||
|
||||
using ScrollCornerRects = Array<FillRect, 7>;
|
||||
static bool GetScrollCornerRects(const gfx::Rect& aRect,
|
||||
const ScrollbarParams& aParams,
|
||||
float aScale, ScrollCornerRects&);
|
||||
const ScrollbarParams& aParams, float aScale,
|
||||
ScrollCornerRects&);
|
||||
};
|
||||
|
||||
} // namespace widget
|
||||
|
@ -31,20 +31,19 @@ class nsNativeBasicThemeCocoa : public nsNativeBasicTheme {
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aElementState,
|
||||
const EventStates& aDocumentState,
|
||||
DPIRatio);
|
||||
const EventStates& aDocumentState, DPIRatio);
|
||||
bool PaintScrollbarThumb(DrawTarget&, const LayoutDeviceRect& aRect,
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aElementState,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio) override;
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio) override;
|
||||
bool PaintScrollbarThumb(WebRenderBackendData&, const LayoutDeviceRect& aRect,
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aElementState,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio) override;
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio) override;
|
||||
|
||||
template <typename PaintBackendData>
|
||||
void DoPaintScrollbarTrack(PaintBackendData&, const LayoutDeviceRect& aRect,
|
||||
@ -55,27 +54,27 @@ class nsNativeBasicThemeCocoa : public nsNativeBasicTheme {
|
||||
bool PaintScrollbarTrack(DrawTarget&, const LayoutDeviceRect& aRect,
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio) override;
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio) override;
|
||||
bool PaintScrollbarTrack(WebRenderBackendData&, const LayoutDeviceRect& aRect,
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio) override;
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio) override;
|
||||
|
||||
bool PaintScrollbar(DrawTarget&, const LayoutDeviceRect& aRect,
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio) override {
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio) override {
|
||||
// Draw nothing; the scrollbar track is drawn in PaintScrollbarTrack.
|
||||
return true;
|
||||
}
|
||||
bool PaintScrollbar(WebRenderBackendData&, const LayoutDeviceRect& aRect,
|
||||
bool aHorizontal, nsIFrame* aFrame,
|
||||
const ComputedStyle& aStyle,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio) override {
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio) override {
|
||||
// Draw nothing; the scrollbar track is drawn in PaintScrollbarTrack.
|
||||
return true;
|
||||
}
|
||||
@ -88,12 +87,12 @@ class nsNativeBasicThemeCocoa : public nsNativeBasicTheme {
|
||||
|
||||
bool PaintScrollCorner(DrawTarget&, const LayoutDeviceRect& aRect,
|
||||
nsIFrame* aFrame, const ComputedStyle& aStyle,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio aDpiRatio) override;
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio aDpiRatio) override;
|
||||
bool PaintScrollCorner(WebRenderBackendData&, const LayoutDeviceRect& aRect,
|
||||
nsIFrame* aFrame, const ComputedStyle& aStyle,
|
||||
const EventStates& aDocumentState,
|
||||
UseSystemColors, DPIRatio aDpiRatio) override;
|
||||
const EventStates& aDocumentState, UseSystemColors,
|
||||
DPIRatio aDpiRatio) override;
|
||||
|
||||
ThemeGeometryType ThemeGeometryTypeForWidget(nsIFrame*,
|
||||
StyleAppearance) override;
|
||||
|
Loading…
Reference in New Issue
Block a user