| 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 6455f6300308540d11a0cd5f6970fcd758c24bc8..ae60e04c1fbe8443a35508551f49b57cc1b6b636 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -2571,6 +2571,22 @@ void WebLocalFrameImpl::ExtractSmartClipData(WebRect rect_in_viewport,
|
| }
|
| }
|
|
|
| +void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focusType) {
|
| + DCHECK(GetFrame()->GetDocument());
|
| + Element* element = GetFrame()->GetDocument()->FocusedElement();
|
| + if (!element)
|
| + return;
|
| +
|
| + Element* next_element =
|
| + GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm(
|
| + element, focusType);
|
| + if (!next_element)
|
| + return;
|
| +
|
| + next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/);
|
| + next_element->focus();
|
| +}
|
| +
|
| TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
|
| return *text_checker_client_;
|
| }
|
|
|