Bug 1455674 part 16. Remove most use of nsIDOMElement in dom. r=qdot

This commit is contained in:
Boris Zbarsky
2018-04-26 23:37:34 -04:00
parent 5378e40459
commit 599ef690cf
57 changed files with 67 additions and 134 deletions

View File

@@ -26,7 +26,6 @@
#include "nsNPAPIPluginInstance.h"
#include "nsPluginInstanceOwner.h"
#include "nsFocusManager.h"
#include "nsIDOMElement.h"
#ifdef MOZ_X11
#include "gfxXlibSurface.h"
#endif
@@ -2222,11 +2221,10 @@ PluginInstanceParent::AnswerPluginFocusChange(const bool& gotFocus)
nsPluginInstanceOwner* owner = GetOwner();
if (owner) {
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
nsCOMPtr<nsIDOMElement> element;
RefPtr<dom::Element> element;
owner->GetDOMElement(getter_AddRefs(element));
if (fm && element) {
nsCOMPtr<dom::Element> domElement(do_QueryInterface(element));
fm->SetFocus(domElement, 0);
fm->SetFocus(element, 0);
}
}
}