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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 1152623012: WIP: delegatesFocus (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « Source/core/page/EventHandler.h ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 17680fb568c943022b1296e3bf08c7893a8f51ad..0e34df7cee13a2299b8d48074552bcad44a54250 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -2088,7 +2088,7 @@ bool EventHandler::handleMouseFocus(const MouseEventWithHitTestResults& targeted
bool EventHandler::slideFocusOnShadowHostIfNecessary(const Element& element)
{
- if (element.shadowRoot() && !element.tabStop()) {
+ if (element.shadowRoot() && element.shadowRoot()->delegatesFocus()) {
Document* doc = m_frame->document();
if (element.containsIncludingShadowDOM(doc->focusedElement())) {
// If the inner element is already focused, do nothing.
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698