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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.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/css/CSSSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
index 5d6d185d1258fcc4ca6c480c77349491db51e5b5..43ef6c6aa7fd3dc691d23054345a3d59a9f5c92e 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -216,6 +216,7 @@ PseudoId CSSSelector::GetPseudoId(PseudoType type) {
case kPseudoHover:
case kPseudoDrag:
case kPseudoFocus:
+ case kPseudoFocusWithin:
case kPseudoActive:
case kPseudoChecked:
case kPseudoEnabled:
@@ -333,6 +334,7 @@ const static NameToPseudoStruct kPseudoTypeWithoutArgumentsMap[] = {
{"first-line", CSSSelector::kPseudoFirstLine},
{"first-of-type", CSSSelector::kPseudoFirstOfType},
{"focus", CSSSelector::kPseudoFocus},
+ {"focus-within", CSSSelector::kPseudoFocusWithin},
{"future", CSSSelector::kPseudoFutureCue},
{"horizontal", CSSSelector::kPseudoHorizontal},
{"host", CSSSelector::kPseudoHost},
@@ -548,6 +550,7 @@ void CSSSelector::UpdatePseudoType(const AtomicString& value,
case kPseudoFirstChild:
case kPseudoFirstOfType:
case kPseudoFocus:
+ case kPseudoFocusWithin:
case kPseudoFullPageMedia:
case kPseudoFullScreen:
case kPseudoFullScreenAncestor:
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.h ('k') | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698