Index: third_party/WebKit/Source/core/dom/UserActionElementSet.h |
diff --git a/third_party/WebKit/Source/core/dom/UserActionElementSet.h b/third_party/WebKit/Source/core/dom/UserActionElementSet.h |
index 9926d9e57701e8fc20dd16e3e91750fd32e8b42f..352fb8c9b82d0df72fb5262c7e41c778b4a53427 100644 |
--- a/third_party/WebKit/Source/core/dom/UserActionElementSet.h |
+++ b/third_party/WebKit/Source/core/dom/UserActionElementSet.h |
@@ -40,6 +40,9 @@ class UserActionElementSet final { |
public: |
bool IsFocused(const Node* node) { return HasFlags(node, kIsFocusedFlag); } |
+ bool HasFocusWithin(const Node* node) { |
+ return HasFlags(node, kHasFocusWithinFlag); |
+ } |
bool IsActive(const Node* node) { return HasFlags(node, kIsActiveFlag); } |
bool IsInActiveChain(const Node* node) { |
return HasFlags(node, kInActiveChainFlag); |
@@ -49,6 +52,9 @@ class UserActionElementSet final { |
void SetFocused(Node* node, bool enable) { |
SetFlags(node, enable, kIsFocusedFlag); |
} |
+ void SetHasFocusWithin(Node* node, bool enable) { |
+ SetFlags(node, enable, kHasFocusWithinFlag); |
+ } |
void SetActive(Node* node, bool enable) { |
SetFlags(node, enable, kIsActiveFlag); |
} |
@@ -76,6 +82,7 @@ class UserActionElementSet final { |
kIsHoveredFlag = 1 << 2, |
kIsFocusedFlag = 1 << 3, |
kIsDraggedFlag = 1 << 4, |
+ kHasFocusWithinFlag = 1 << 5, |
}; |
void SetFlags(Node* node, bool enable, unsigned flags) { |