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(); |