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

Unified Diff: Source/core/dom/Node.h

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/dom/ElementRareData.h ('k') | Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 7d1ea14ccd552d288052ba2669cac13fe3b98a0b..19e8505d5ce315eaadb553d46202f88b688ba91e 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -358,8 +358,8 @@ public:
bool active() const { return isUserActionElement() && isUserActionElementActive(); }
bool inActiveChain() const { return isUserActionElement() && isUserActionElementInActiveChain(); }
bool hovered() const { return isUserActionElement() && isUserActionElementHovered(); }
- // Note: As a shadow host whose tabStop=false may become focused state when an inner element
- // gets focused in its shadow, in that case more than one elements in a document can return
+ // Note: As a shadow host whose root with delegatesFocus=false may become focused state when
+ // an inner element gets focused, in that case more than one elements in a document can return
// true for |focused()|. Use Element::isFocusedElementInDocument() or Document::focusedElement()
// to check which element is exactly focused.
bool focused() const { return isUserActionElement() && isUserActionElementFocused(); }
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698