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 b91538efcfaa7eb5ae14c5775966265e5ac000d0..9bd2c7eb72d8201129eff3738bec6c1de1168976 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) { |
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(); |