зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1817723: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
Родитель
61526de151
Коммит
a2fcfe9c7a
|
@ -1322,8 +1322,8 @@ already_AddRefed<nsPIDOMWindowInner> EventListenerManager::WindowFromListener(
|
|||
} else {
|
||||
// This ensures `window.event` can be set properly for
|
||||
// nsWindowRoot to handle KeyPress event.
|
||||
if (aListener && aListener->mEventMessage == eKeyPress &&
|
||||
mTarget && mTarget->IsRootWindow()) {
|
||||
if (aListener && aListener->mEventMessage == eKeyPress && mTarget &&
|
||||
mTarget->IsRootWindow()) {
|
||||
nsPIWindowRoot* root = mTarget->AsWindowRoot();
|
||||
if (nsPIDOMWindowOuter* outerWindow = root->GetWindow()) {
|
||||
innerWindow = outerWindow->GetCurrentInnerWindow();
|
||||
|
|
Загрузка…
Ссылка в новой задаче