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

Unified Diff: third_party/WebKit/Source/core/dom/StyleChangeReason.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/StyleChangeReason.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleChangeReason.cpp b/third_party/WebKit/Source/core/dom/StyleChangeReason.cpp
index 3fcbbfcf715b6429ef834cff9389b88a851b8884..c7aff7f2aec33f7b2227204df613a344deca3317 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");
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleChangeReason.h ('k') | third_party/WebKit/Source/core/dom/UserActionElementSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698