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

Unified Diff: third_party/WebKit/Source/core/dom/UserActionElementSet.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
Index: third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
diff --git a/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp b/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
index a721e8f69456bff4e45d739a107d8550f0c347bb..96572176bf0515dec35daaf0d40affa71926d25f 100644
--- a/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
+++ b/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
@@ -37,7 +37,8 @@ UserActionElementSet::~UserActionElementSet() {}
void UserActionElementSet::DidDetach(Element& element) {
DCHECK(element.IsUserActionElement());
- ClearFlags(&element, kIsActiveFlag | kInActiveChainFlag | kIsHoveredFlag);
+ ClearFlags(&element, kIsActiveFlag | kInActiveChainFlag | kIsHoveredFlag |
+ kHasFocusWithinFlag);
}
bool UserActionElementSet::HasFlags(const Node* node, unsigned flags) const {

Powered by Google App Engine
This is Rietveld 408576698