Bug 1348738 - (Part 3) Add a string-label arg to nsRepeatService::Start and upgrade to InitWithNamedFuncCallback from InitWithFuncCallback. r=dholbert

In the new architecture of Quantum DOM, all runnables need a name label.
So, we add the new string-label arg to Start function, and update all
callers.

MozReview-Commit-ID: G9LXFjtFcQv
This commit is contained in:
KuoE0
2017-03-29 16:32:52 +08:00
parent 5de2ff75ce
commit 42636fe2e3
6 changed files with 25 additions and 10 deletions

View File

@@ -4129,7 +4129,8 @@ HTMLInputElement::StartNumberControlSpinnerSpin()
mNumberControlSpinnerIsSpinning = true;
nsRepeatService::GetInstance()->Start(HandleNumberControlSpin, this);
nsRepeatService::GetInstance()->Start(HandleNumberControlSpin, this,
NS_LITERAL_CSTRING("HandleNumberControlSpin"));
// Capture the mouse so that we can tell if the pointer moves from one
// spin button to the other, or to some other element: