OLD | NEW |
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 "wtf/StaticConstructors.h" | 8 #include "wtf/StaticConstructors.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |