зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1376796 - Label the nsCaret::CaretBlinkCallback_timer. r=heycam
This commit is contained in:
Родитель
6b1ced62cf
Коммит
31897831a5
|
@ -654,8 +654,15 @@ void nsCaret::ResetBlinking()
|
|||
} else {
|
||||
nsresult err;
|
||||
mBlinkTimer = do_CreateInstance("@mozilla.org/timer;1", &err);
|
||||
if (NS_FAILED(err))
|
||||
if (NS_FAILED(err)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (nsCOMPtr<nsIPresShell> presShell = do_QueryReferent(mPresShell)) {
|
||||
if (nsCOMPtr<nsIDocument> doc = presShell->GetDocument()) {
|
||||
mBlinkTimer->SetTarget(doc->EventTargetFor(TaskCategory::Other));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (blinkRate > 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче