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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/StyleChangeReason.h" 5 #include "core/dom/StyleChangeReason.h"
6 6
7 #include "platform/instrumentation/tracing/TraceEvent.h" 7 #include "platform/instrumentation/tracing/TraceEvent.h"
8 #include "platform/wtf/StaticConstructors.h" 8 #include "platform/wtf/StaticConstructors.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const char kVisuallyOrdered[] = "VisuallyOrdered"; 45 const char kVisuallyOrdered[] = "VisuallyOrdered";
46 const char kWritingModeChange[] = "WritingModeChange"; 46 const char kWritingModeChange[] = "WritingModeChange";
47 const char kZoom[] = "Zoom"; 47 const char kZoom[] = "Zoom";
48 } // namespace StyleChangeReason 48 } // namespace StyleChangeReason
49 49
50 namespace StyleChangeExtraData { 50 namespace StyleChangeExtraData {
51 DEFINE_GLOBAL(AtomicString, g_active); 51 DEFINE_GLOBAL(AtomicString, g_active);
52 DEFINE_GLOBAL(AtomicString, g_disabled); 52 DEFINE_GLOBAL(AtomicString, g_disabled);
53 DEFINE_GLOBAL(AtomicString, g_drag); 53 DEFINE_GLOBAL(AtomicString, g_drag);
54 DEFINE_GLOBAL(AtomicString, g_focus); 54 DEFINE_GLOBAL(AtomicString, g_focus);
55 DEFINE_GLOBAL(AtomicString, g_focus_within);
55 DEFINE_GLOBAL(AtomicString, g_hover); 56 DEFINE_GLOBAL(AtomicString, g_hover);
56 DEFINE_GLOBAL(AtomicString, g_past); 57 DEFINE_GLOBAL(AtomicString, g_past);
57 DEFINE_GLOBAL(AtomicString, g_unresolved); 58 DEFINE_GLOBAL(AtomicString, g_unresolved);
58 59
59 void Init() { 60 void Init() {
60 DCHECK(IsMainThread()); 61 DCHECK(IsMainThread());
61 62
62 new (NotNull, (void*)&g_active) AtomicString(":active"); 63 new (NotNull, (void*)&g_active) AtomicString(":active");
63 new (NotNull, (void*)&g_disabled) AtomicString(":disabled"); 64 new (NotNull, (void*)&g_disabled) AtomicString(":disabled");
64 new (NotNull, (void*)&g_drag) AtomicString(":-webkit-drag"); 65 new (NotNull, (void*)&g_drag) AtomicString(":-webkit-drag");
65 new (NotNull, (void*)&g_focus) AtomicString(":focus"); 66 new (NotNull, (void*)&g_focus) AtomicString(":focus");
67 new (NotNull, (void*)&g_focus_within) AtomicString(":focus-within");
66 new (NotNull, (void*)&g_hover) AtomicString(":hover"); 68 new (NotNull, (void*)&g_hover) AtomicString(":hover");
67 new (NotNull, (void*)&g_past) AtomicString(":past"); 69 new (NotNull, (void*)&g_past) AtomicString(":past");
68 new (NotNull, (void*)&g_unresolved) AtomicString(":unresolved"); 70 new (NotNull, (void*)&g_unresolved) AtomicString(":unresolved");
69 } 71 }
70 72
71 } // namespace StyleChangeExtraData 73 } // namespace StyleChangeExtraData
72 74
73 } // namespace blink 75 } // namespace blink
OLDNEW
« 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