Index: third_party/WebKit/Source/core/input/EventHandler.cpp |
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp |
index 0f681c7c1dd8cc2472fcb137aeeebea4d98091ad..b02c00f5581c86bd6ec337d83266b432332a4b72 100644 |
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp |
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp |
@@ -1837,7 +1837,7 @@ bool EventHandler::slideFocusOnShadowHostIfNecessary(const Element& element) |
Element* next = page->focusController().findFocusableElement(WebFocusTypeForward, *element.authorShadowRoot()); |
if (next && element.containsIncludingShadowDOM(next)) { |
// Use WebFocusTypeForward instead of WebFocusTypeMouse here to mean the focus has slided. |
- next->focus(false, WebFocusTypeForward); |
+ next->focus(FocusParams(SelectionBehaviorOnFocus::Reset, WebFocusTypeForward, nullptr)); |
return true; |
} |
} |