зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1376628 - Don't use 'else' after 'break' or 'return' in dom/base/ (clang-tidy: readability-else-after-return). r=ehsan
This commit is contained in:
Родитель
13fee0b758
Коммит
e6fb1d5091
|
@ -2716,7 +2716,8 @@ nsDOMWindowUtils::ZoomToFocusedInput()
|
|||
while (currentFrame) {
|
||||
if (currentFrame == rootFrame) {
|
||||
break;
|
||||
} else if (currentFrame == scrolledFrame) {
|
||||
}
|
||||
if (currentFrame == scrolledFrame) {
|
||||
// we are in the rootScrollFrame so this element is not fixed
|
||||
isFixedPos = false;
|
||||
break;
|
||||
|
|
|
@ -10757,7 +10757,9 @@ void nsGlobalWindow::SetIsBackground(bool aIsBackground)
|
|||
inner->StopGamepadHaptics();
|
||||
}
|
||||
return;
|
||||
} else if (inner) {
|
||||
}
|
||||
|
||||
if (inner) {
|
||||
inner->SyncGamepadState();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче