Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
@@ -542,7 +542,10 @@ class nsBeforeFirstPaintDispatcher : public Runnable
|
||||
{
|
||||
public:
|
||||
explicit nsBeforeFirstPaintDispatcher(nsIDocument* aDocument)
|
||||
: mDocument(aDocument) {}
|
||||
: mozilla::Runnable("nsBeforeFirstPaintDispatcher")
|
||||
, mDocument(aDocument)
|
||||
{
|
||||
}
|
||||
|
||||
// Fires the "before-first-paint" event so that interested parties (right now, the
|
||||
// mobile browser) are aware of it.
|
||||
@@ -2019,8 +2022,8 @@ PresShell::ResizeReflowIgnoreOverride(nscoord aWidth, nscoord aHeight, nscoord a
|
||||
"AsyncResizeEventCallback");
|
||||
}
|
||||
} else {
|
||||
RefPtr<nsRunnableMethod<PresShell>> event =
|
||||
NewRunnableMethod(this, &PresShell::FireResizeEvent);
|
||||
RefPtr<nsRunnableMethod<PresShell>> event = NewRunnableMethod(
|
||||
"PresShell::FireResizeEvent", this, &PresShell::FireResizeEvent);
|
||||
nsresult rv = mDocument->Dispatch("PresShell::FireResizeEvent",
|
||||
TaskCategory::Other,
|
||||
do_AddRef(event));
|
||||
@@ -6197,7 +6200,9 @@ PresShell::ScheduleApproximateFrameVisibilityUpdateNow()
|
||||
}
|
||||
|
||||
RefPtr<nsRunnableMethod<PresShell>> event =
|
||||
NewRunnableMethod(this, &PresShell::UpdateApproximateFrameVisibility);
|
||||
NewRunnableMethod("PresShell::UpdateApproximateFrameVisibility",
|
||||
this,
|
||||
&PresShell::UpdateApproximateFrameVisibility);
|
||||
nsresult rv =
|
||||
mDocument->Dispatch("PresShell::UpdateApproximateFrameVisibility",
|
||||
TaskCategory::Other,
|
||||
|
||||
Reference in New Issue
Block a user