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

Unified Diff: Source/core/dom/Element.cpp

Issue 1177373002: Change API name and return type of findFocusableNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: *recursively Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 29b4db06fdf6d4fd32fe08c5276991ba52010a8a..8463fade32682daf55374a142ba914802c5e9762 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2209,9 +2209,9 @@ void Element::focus(bool restorePreviousSelection, WebFocusType type)
return;
// Slide the focus to its inner node.
- Node* next = document().page()->focusController().findFocusableNode(WebFocusTypeForward, *this);
- if (next && next->isElementNode() && containsIncludingShadowDOM(next)) {
- toElement(next)->focus(false, WebFocusTypeForward);
+ Element* next = document().page()->focusController().findFocusableElement(WebFocusTypeForward, *this);
+ if (next && containsIncludingShadowDOM(next)) {
+ next->focus(false, WebFocusTypeForward);
return;
}
}
« no previous file with comments | « no previous file | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698