Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2810593002: Set plugin focus by implementing HTMLPlugInElement::SetFocused. (Closed)
Patch Set: HTMLFrameOwnerElement::SetFocused rather than Node::SetFocused Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 49364b1931cb671dded685d71bb0bffb12ffe968..b9070229df6579b2b3f795360f5c396a4e2a98e5 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4087,12 +4087,6 @@ bool Document::SetFocusedElement(Element* prp_new_focused_element,
new_focused_element = nullptr;
}
}
-
- if (IsHTMLPlugInElement(old_focused_element)) {
- if (PluginView* plugin =
- ToHTMLPlugInElement(old_focused_element)->Plugin())
- plugin->SetFocused(false, params.type);
- }
}
if (new_focused_element)
@@ -4157,11 +4151,6 @@ bool Document::SetFocusedElement(Element* prp_new_focused_element,
if (IsRootEditableElement(*focused_element_))
GetFrame()->GetSpellChecker().DidBeginEditing(focused_element_.Get());
-
- if (IsHTMLPlugInElement(focused_element_)) {
- if (PluginView* plugin = ToHTMLPlugInElement(focused_element_)->Plugin())
- plugin->SetFocused(true, params.type);
- }
}
if (!focus_change_blocked && focused_element_) {

Powered by Google App Engine
This is Rietveld 408576698