Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index dc23c7e3c6b3408e5a6b92f256ada74644b4a872..ba2f0292148874ac76a3beb5fc9639b80da32df0 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -2614,6 +2614,22 @@ void WebLocalFrameImpl::ExtractSmartClipData(WebRect rect_in_viewport, |
} |
} |
+void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focus_type) { |
+ DCHECK(GetFrame()->GetDocument()); |
+ Element* element = GetFrame()->GetDocument()->FocusedElement(); |
+ if (!element) |
+ return; |
+ |
+ Element* next_element = |
+ GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm( |
+ element, focus_type); |
+ if (!next_element) |
+ return; |
+ |
+ next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/); |
+ next_element->focus(); |
+} |
+ |
TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
return *text_checker_client_; |
} |