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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.h

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/css/CSSSelector.h
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.h b/third_party/WebKit/Source/core/css/CSSSelector.h
index 23d9d2750b59893e9984c461434ada957235cd7c..7a472e8870f0c43b830f83aa7b34588de5bce8b3 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.h
+++ b/third_party/WebKit/Source/core/css/CSSSelector.h
@@ -159,6 +159,7 @@ class CORE_EXPORT CSSSelector {
kPseudoHover,
kPseudoDrag,
kPseudoFocus,
+ kPseudoFocusWithin,
kPseudoActive,
kPseudoChecked,
kPseudoEnabled,
@@ -531,7 +532,8 @@ inline const AtomicString& CSSSelector::SerializingValue() const {
inline bool CSSSelector::IsUserActionPseudoClass() const {
return pseudo_type_ == kPseudoHover || pseudo_type_ == kPseudoActive ||
- pseudo_type_ == kPseudoFocus || pseudo_type_ == kPseudoDrag;
+ pseudo_type_ == kPseudoFocus || pseudo_type_ == kPseudoDrag ||
+ pseudo_type_ == kPseudoFocusWithin;
}
inline bool CSSSelector::IsIdClassOrAttributeSelector() const {

Powered by Google App Engine
This is Rietveld 408576698