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

Unified Diff: Source/core/dom/ContainerNode.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 | « LayoutTests/fast/dom/shadow/tabstop-property-expected.txt ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index c81792c5d44f71d36032e2bb889cdc74c31be2f5..920f1bb97879c7e553784636846775c97a30d6d0 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -1095,7 +1095,7 @@ void ContainerNode::setFocus(bool received)
if (document().focusedElement() && document().focusedElement() != this) {
Element* host = toElement(this);
if (host->shadowRoot())
- received = received && host->tabIndex() >= 0 && !host->tabStop();
+ received = received && host->tabIndex() >= 0 && host->shadowRoot()->delegatesFocus();
}
if (focused() == received)
« no previous file with comments | « LayoutTests/fast/dom/shadow/tabstop-property-expected.txt ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698