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

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

Issue 2795143004: [selectors4] Implement :focus-within pseudo-class (Closed)
Patch Set: Rebased patch Created 3 years, 8 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 | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index 1d0e255d079c48332ca6b477e800d91f617d4f73..c3f294d8681dada445c22b00b0cb7067f96d6572 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -391,6 +391,9 @@ class CORE_EXPORT Node : public EventTarget {
bool IsFocused() const {
return IsUserActionElement() && IsUserActionElementFocused();
}
+ bool HasFocusWithin() const {
+ return IsUserActionElement() && IsUserActionElementHasFocusWithin();
+ }
bool NeedsAttach() const {
return GetStyleChangeType() == kNeedsReattachStyleChange;
@@ -478,6 +481,7 @@ class CORE_EXPORT Node : public EventTarget {
}
virtual void SetFocused(bool flag, WebFocusType);
+ virtual void SetHasFocusWithin(bool flag);
virtual void SetActive(bool flag = true);
virtual void SetDragged(bool flag);
virtual void SetHovered(bool flag = true);
@@ -903,6 +907,7 @@ class CORE_EXPORT Node : public EventTarget {
bool IsUserActionElementDragged() const;
bool IsUserActionElementHovered() const;
bool IsUserActionElementFocused() const;
+ bool IsUserActionElementHasFocusWithin() const;
void RecalcDistribution();
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698