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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1420693006: Introduce a struct to store arguments of Element::focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/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;
}
}

Powered by Google App Engine
This is Rietveld 408576698