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

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

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/Node.h ('k') | third_party/WebKit/Source/core/dom/StyleChangeReason.h » ('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.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 617a7aa3d22cfa58abcfe1d37f6d485b1a6c3249..e7d6f098551ae1870c005465e4180553085f1d3f 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2351,6 +2351,10 @@ void Node::SetFocused(bool flag, WebFocusType focus_type) {
GetDocument().UserActionElements().SetFocused(this, flag);
}
+void Node::SetHasFocusWithin(bool flag) {
+ GetDocument().UserActionElements().SetHasFocusWithin(this, flag);
+}
+
void Node::SetActive(bool flag) {
GetDocument().UserActionElements().SetActive(this, flag);
}
@@ -2388,6 +2392,11 @@ bool Node::IsUserActionElementFocused() const {
return GetDocument().UserActionElements().IsFocused(this);
}
+bool Node::IsUserActionElementHasFocusWithin() const {
+ DCHECK(IsUserActionElement());
+ return GetDocument().UserActionElements().HasFocusWithin(this);
+}
+
void Node::SetCustomElementState(CustomElementState new_state) {
CustomElementState old_state = GetCustomElementState();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/StyleChangeReason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698