Skip to content

Commit 8a1350b

Browse files
Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG-- extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
1 parent 4f57553 commit 8a1350b

File tree

617 files changed

+3594
-6365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

617 files changed

+3594
-6365
lines changed

accessible/generic/Accessible.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,13 +1799,8 @@ Accessible::DoCommand(nsIContent *aContent, uint32_t aActionIndex)
17991799
class Runnable final : public mozilla::Runnable
18001800
{
18011801
public:
1802-
Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx)
1803-
: mozilla::Runnable("Runnable")
1804-
, mAcc(aAcc)
1805-
, mContent(aContent)
1806-
, mIdx(aIdx)
1807-
{
1808-
}
1802+
Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx) :
1803+
mAcc(aAcc), mContent(aContent), mIdx(aIdx) { }
18091804

18101805
NS_IMETHOD Run() override
18111806
{

accessible/generic/DocAccessible.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -649,12 +649,9 @@ DocAccessible::ScrollPositionDidChange(nscoord aX, nscoord aY)
649649
mScrollWatchTimer = do_CreateInstance("@mozilla.org/timer;1");
650650
if (mScrollWatchTimer) {
651651
NS_ADDREF_THIS(); // Kung fu death grip
652-
mScrollWatchTimer->InitWithNamedFuncCallback(
653-
ScrollTimerCallback,
654-
this,
655-
kScrollPosCheckWait,
656-
nsITimer::TYPE_REPEATING_SLACK,
657-
"a11y::DocAccessible::ScrollPositionDidChange");
652+
mScrollWatchTimer->InitWithFuncCallback(ScrollTimerCallback, this,
653+
kScrollPosCheckWait,
654+
nsITimer::TYPE_REPEATING_SLACK);
658655
}
659656
}
660657
mScrollPositionChangedTicks = 1;

accessible/ipc/win/HandlerProvider.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ HandlerProvider::GetAndSerializePayload(const MutexAutoLock&)
9595

9696
IA2Payload payload{};
9797

98-
if (!mscom::InvokeOnMainThread("HandlerProvider::BuildIA2Data",
99-
this, &HandlerProvider::BuildIA2Data,
98+
if (!mscom::InvokeOnMainThread(this, &HandlerProvider::BuildIA2Data,
10099
&payload.mData) ||
101100
!payload.mData.mUniqueId) {
102101
return;
@@ -237,8 +236,7 @@ HandlerProvider::put_HandlerControl(long aPid, IHandlerControl* aCtrl)
237236

238237
auto ptrProxy = mscom::ToProxyUniquePtr(aCtrl);
239238

240-
if (!mscom::InvokeOnMainThread("HandlerProvider::SetHandlerControlOnMainThread",
241-
this,
239+
if (!mscom::InvokeOnMainThread(this,
242240
&HandlerProvider::SetHandlerControlOnMainThread,
243241
static_cast<DWORD>(aPid), Move(ptrProxy))) {
244242
return E_FAIL;
@@ -252,8 +250,7 @@ HandlerProvider::Refresh(IA2Data* aOutData)
252250
{
253251
MOZ_ASSERT(mscom::IsCurrentThreadMTA());
254252

255-
if (!mscom::InvokeOnMainThread("HandlerProvider::BuildIA2Data",
256-
this, &HandlerProvider::BuildIA2Data,
253+
if (!mscom::InvokeOnMainThread(this, &HandlerProvider::BuildIA2Data,
257254
aOutData)) {
258255
return E_FAIL;
259256
}

accessible/windows/msaa/AccessibleWrap.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,7 @@ AccessibleWrap::accSelect(
841841
// is happening, so we dispatch TakeFocus from the main thread to
842842
// guarantee that we are outside any IPC.
843843
nsCOMPtr<nsIRunnable> runnable =
844-
mozilla::NewRunnableMethod("Accessible::TakeFocus",
845-
this, &Accessible::TakeFocus);
844+
mozilla::NewRunnableMethod(this, &Accessible::TakeFocus);
846845
NS_DispatchToMainThread(runnable, NS_DISPATCH_NORMAL);
847846
return S_OK;
848847
}

accessible/windows/msaa/LazyInstantiator.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ LazyInstantiator::ShouldInstantiate(const DWORD aClientTid)
251251
// Call GatherTelemetry on a background thread because it does I/O on
252252
// the executable file to retrieve version information.
253253
nsCOMPtr<nsIRunnable> runnable(
254-
NewRunnableMethod<nsCOMPtr<nsIFile>>("LazyInstantiator::GatherTelemetry",
255-
this,
254+
NewRunnableMethod<nsCOMPtr<nsIFile>>(this,
256255
&LazyInstantiator::GatherTelemetry,
257256
clientExe));
258257
NS_NewThread(getter_AddRefs(mTelemetryThread), runnable);
@@ -328,9 +327,7 @@ LazyInstantiator::GatherTelemetry(nsIFile* aClientExe)
328327

329328
// Now that we've (possibly) obtained version info, send the resulting
330329
// string back to the main thread to accumulate in telemetry.
331-
NS_DispatchToMainThread(NewNonOwningRunnableMethod<nsString>(
332-
"LazyInstantiator::AccumulateTelemetry",
333-
this,
330+
NS_DispatchToMainThread(NewNonOwningRunnableMethod<nsString>(this,
334331
&LazyInstantiator::AccumulateTelemetry, value));
335332
}
336333

accessible/xpcom/xpcAccessibilityService.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,8 @@ xpcAccessibilityService::Release(void)
7979
if (count == 1 && !mShutdownTimer) {
8080
mShutdownTimer = do_CreateInstance(NS_TIMER_CONTRACTID);
8181
if (mShutdownTimer) {
82-
mShutdownTimer->InitWithNamedFuncCallback(
83-
ShutdownCallback,
84-
this,
85-
100,
86-
nsITimer::TYPE_ONE_SHOT,
87-
"xpcAccessibilityService::Release");
82+
mShutdownTimer->InitWithFuncCallback(ShutdownCallback, this, 100,
83+
nsITimer::TYPE_ONE_SHOT);
8884
}
8985
}
9086

docshell/base/nsDocShell.cpp

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,9 @@ nsPingListener::StartTimeout(DocGroup* aDocGroup)
454454
timer->SetTarget(aDocGroup->EventTargetFor(TaskCategory::Network));
455455

456456
if (timer) {
457-
nsresult rv =
458-
timer->InitWithNamedFuncCallback(OnPingTimeout,
459-
mLoadGroup,
460-
PING_TIMEOUT,
461-
nsITimer::TYPE_ONE_SHOT,
462-
"nsPingListener::StartTimeout");
457+
nsresult rv = timer->InitWithFuncCallback(OnPingTimeout, mLoadGroup,
458+
PING_TIMEOUT,
459+
nsITimer::TYPE_ONE_SHOT);
463460
if (NS_SUCCEEDED(rv)) {
464461
mTimer = timer;
465462
return NS_OK;
@@ -1770,12 +1767,10 @@ nsDocShell::DispatchToTabGroup(const char* aName,
17701767
NS_IMETHODIMP
17711768
nsDocShell::DispatchLocationChangeEvent()
17721769
{
1773-
return DispatchToTabGroup(
1774-
"nsDocShell::FireDummyOnLocationChange",
1775-
TaskCategory::Other,
1776-
NewRunnableMethod("nsDocShell::FireDummyOnLocationChange",
1777-
this,
1778-
&nsDocShell::FireDummyOnLocationChange));
1770+
return DispatchToTabGroup("nsDocShell::FireDummyOnLocationChange",
1771+
TaskCategory::Other,
1772+
NewRunnableMethod(this,
1773+
&nsDocShell::FireDummyOnLocationChange));
17791774
}
17801775

17811776
bool
@@ -9649,20 +9644,13 @@ class InternalLoadEvent : public Runnable
96499644
bool aLoadReplace,
96509645
nsIURI* aReferrer, uint32_t aReferrerPolicy,
96519646
nsIPrincipal* aTriggeringPrincipal,
9652-
nsIPrincipal* aPrincipalToInherit,
9653-
uint32_t aFlags,
9654-
const char* aTypeHint,
9655-
nsIInputStream* aPostData,
9656-
nsIInputStream* aHeadersData,
9657-
uint32_t aLoadType,
9658-
nsISHEntry* aSHEntry,
9659-
bool aFirstParty,
9660-
const nsAString& aSrcdoc,
9661-
nsIDocShell* aSourceDocShell,
9662-
nsIURI* aBaseURI,
9663-
bool aCheckForPrerender)
9664-
: mozilla::Runnable("InternalLoadEvent")
9665-
, mSrcdoc(aSrcdoc)
9647+
nsIPrincipal* aPrincipalToInherit, uint32_t aFlags,
9648+
const char* aTypeHint, nsIInputStream* aPostData,
9649+
nsIInputStream* aHeadersData, uint32_t aLoadType,
9650+
nsISHEntry* aSHEntry, bool aFirstParty,
9651+
const nsAString& aSrcdoc, nsIDocShell* aSourceDocShell,
9652+
nsIURI* aBaseURI, bool aCheckForPrerender)
9653+
: mSrcdoc(aSrcdoc)
96669654
, mDocShell(aDocShell)
96679655
, mURI(aURI)
96689656
, mOriginalURI(aOriginalURI)
@@ -14052,8 +14040,7 @@ OnLinkClickEvent::OnLinkClickEvent(nsDocShell* aHandler,
1405214040
bool aNoOpenerImplied,
1405314041
bool aIsTrusted,
1405414042
nsIPrincipal* aTriggeringPrincipal)
14055-
: mozilla::Runnable("OnLinkClickEvent")
14056-
, mHandler(aHandler)
14043+
: mHandler(aHandler)
1405714044
, mURI(aURI)
1405814045
, mTargetSpec(aTargetSpec)
1405914046
, mFileName(aFileName)

docshell/base/nsDocShell.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,7 @@ class nsDocShell final
777777
{
778778
public:
779779
NS_DECL_NSIRUNNABLE
780-
explicit RestorePresentationEvent(nsDocShell* aDs)
781-
: mozilla::Runnable("nsDocShell::RestorePresentationEvent")
782-
, mDocShell(aDs)
783-
{
784-
}
780+
explicit RestorePresentationEvent(nsDocShell* aDs) : mDocShell(aDs) {}
785781
void Revoke() { mDocShell = nullptr; }
786782
private:
787783
RefPtr<nsDocShell> mDocShell;

docshell/base/nsDocShellTreeOwner.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,12 +1260,10 @@ ChromeTooltipListener::MouseMove(nsIDOMEvent* aMouseEvent)
12601260
}
12611261
}
12621262
if (mPossibleTooltipNode) {
1263-
nsresult rv = mTooltipTimer->InitWithNamedFuncCallback(
1264-
sTooltipCallback,
1265-
this,
1263+
nsresult rv = mTooltipTimer->InitWithFuncCallback(
1264+
sTooltipCallback, this,
12661265
LookAndFeel::GetInt(LookAndFeel::eIntID_TooltipDelay, 500),
1267-
nsITimer::TYPE_ONE_SHOT,
1268-
"ChromeTooltipListener::MouseMove");
1266+
nsITimer::TYPE_ONE_SHOT);
12691267
if (NS_FAILED(rv)) {
12701268
mPossibleTooltipNode = nullptr;
12711269
}

docshell/shistory/nsSHEntryShared.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ class DestroyViewerEvent : public mozilla::Runnable
185185
{
186186
public:
187187
DestroyViewerEvent(nsIContentViewer* aViewer, nsIDocument* aDocument)
188-
: mozilla::Runnable("DestroyViewerEvent")
189-
, mViewer(aViewer)
188+
: mViewer(aViewer)
190189
, mDocument(aDocument)
191190
{
192191
}

0 commit comments

Comments
 (0)