Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8
This commit is contained in:
@@ -192,12 +192,8 @@ HTMLObjectElement::HandlePluginInstantiated(Element* aElement)
|
||||
// to initiate a call to nsIWidget::SetPluginFocused(true). Otherwise
|
||||
// keyboard input won't work in a click-to-play plugin until aElement
|
||||
// loses focus and regains it.
|
||||
nsIContent* focusedContent = nullptr;
|
||||
nsFocusManager *fm = nsFocusManager::GetFocusManager();
|
||||
if (fm) {
|
||||
focusedContent = fm->GetFocusedContent();
|
||||
}
|
||||
if (SameCOMIdentity(focusedContent, aElement)) {
|
||||
if (fm && fm->GetFocusedElement() == aElement) {
|
||||
OnFocusBlurPlugin(aElement, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user