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