Bug 1339543 part 6 PBrowser::RequestNativeKeyBindings() should retrieves edit commands only for specified type r=smaug

PBrowser::RequestNativeKeyBindings() is used only when somebody tries to
execute native key bindings for synthesized keyboard events.  Therefore, it
doesn't need to retrieve edit commands for all editor types.  Instead, it
should take the editor type and just return the edit commands for it.

MozReview-Commit-ID: HF4Gz99SBQP
This commit is contained in:
Masayuki Nakano
2017-05-19 18:46:02 +09:00
parent bab8a1738c
commit c6e34e8c96
9 changed files with 52 additions and 59 deletions

View File

@@ -552,7 +552,7 @@ PuppetWidget::GetEditCommands(NativeKeyBindingsType aType,
// Validate the arguments.
nsIWidget::GetEditCommands(aType, aEvent, aCommands);
mTabChild->RequestNativeKeyBindings(aType, aEvent, aCommands);
mTabChild->RequestEditCommands(aType, aEvent, aCommands);
}
LayerManager*