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

Unified Diff: third_party/WebKit/Source/core/dom/StyleChangeReason.cpp

Issue 2795143004: [selectors4] Implement :focus-within pseudo-class (Closed)
Patch Set: Now passing all the tests from WPT 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/StyleChangeReason.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleChangeReason.cpp b/third_party/WebKit/Source/core/dom/StyleChangeReason.cpp
index fc1fd16853829e3b5a108b4842cad81d2dd9f802..dd7270cb5ec21c7c0becc97e99c0e282812172ef 100644
--- a/third_party/WebKit/Source/core/dom/StyleChangeReason.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleChangeReason.cpp
@@ -52,6 +52,7 @@ DEFINE_GLOBAL(AtomicString, g_active);
DEFINE_GLOBAL(AtomicString, g_disabled);
DEFINE_GLOBAL(AtomicString, g_drag);
DEFINE_GLOBAL(AtomicString, g_focus);
+DEFINE_GLOBAL(AtomicString, g_focus_within);
DEFINE_GLOBAL(AtomicString, g_hover);
DEFINE_GLOBAL(AtomicString, g_past);
DEFINE_GLOBAL(AtomicString, g_unresolved);
@@ -63,6 +64,7 @@ void Init() {
new (NotNull, (void*)&g_disabled) AtomicString(":disabled");
new (NotNull, (void*)&g_drag) AtomicString(":-webkit-drag");
new (NotNull, (void*)&g_focus) AtomicString(":focus");
+ new (NotNull, (void*)&g_focus_within) AtomicString(":focus-within");
new (NotNull, (void*)&g_hover) AtomicString(":hover");
new (NotNull, (void*)&g_past) AtomicString(":past");
new (NotNull, (void*)&g_unresolved) AtomicString(":unresolved");

Powered by Google App Engine
This is Rietveld 408576698