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 "config.h" | 5 #include "config.h" |
6 #include "core/dom/StyleChangeReason.h" | 6 #include "core/dom/StyleChangeReason.h" |
7 | 7 |
8 #include "platform/TraceEvent.h" | 8 #include "platform/TraceEvent.h" |
9 #include "wtf/MainThread.h" | 9 #include "wtf/MainThread.h" |
10 #include "wtf/StaticConstructors.h" | 10 #include "wtf/StaticConstructors.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const char VisuallyOrdered[] = "VisuallyOrdered"; | 42 const char VisuallyOrdered[] = "VisuallyOrdered"; |
43 const char WritingModeChange[] = "WritingModeChange"; | 43 const char WritingModeChange[] = "WritingModeChange"; |
44 const char Zoom[] = "Zoom"; | 44 const char Zoom[] = "Zoom"; |
45 } // namespace StyleChangeReasonForTracing | 45 } // namespace StyleChangeReasonForTracing |
46 | 46 |
47 namespace StyleChangeExtraData { | 47 namespace StyleChangeExtraData { |
48 DEFINE_GLOBAL(AtomicString, Active) | 48 DEFINE_GLOBAL(AtomicString, Active) |
49 DEFINE_GLOBAL(AtomicString, Disabled) | 49 DEFINE_GLOBAL(AtomicString, Disabled) |
50 DEFINE_GLOBAL(AtomicString, Focus) | 50 DEFINE_GLOBAL(AtomicString, Focus) |
51 DEFINE_GLOBAL(AtomicString, Hover) | 51 DEFINE_GLOBAL(AtomicString, Hover) |
52 DEFINE_GLOBAL(AtomicString, Invalid) | |
53 DEFINE_GLOBAL(AtomicString, Unresolved) | 52 DEFINE_GLOBAL(AtomicString, Unresolved) |
54 | 53 |
55 void init() | 54 void init() |
56 { | 55 { |
57 ASSERT(isMainThread()); | 56 ASSERT(isMainThread()); |
58 | 57 |
59 new (NotNull, (void*)&Active) AtomicString(":active", AtomicString::Construc
tFromLiteral); | 58 new (NotNull, (void*)&Active) AtomicString(":active", AtomicString::Construc
tFromLiteral); |
60 new (NotNull, (void*)&Disabled) AtomicString(":disabled", AtomicString::Cons
tructFromLiteral); | 59 new (NotNull, (void*)&Disabled) AtomicString(":disabled", AtomicString::Cons
tructFromLiteral); |
61 new (NotNull, (void*)&Focus) AtomicString(":focus", AtomicString::ConstructF
romLiteral); | 60 new (NotNull, (void*)&Focus) AtomicString(":focus", AtomicString::ConstructF
romLiteral); |
62 new (NotNull, (void*)&Hover) AtomicString(":hover", AtomicString::ConstructF
romLiteral); | 61 new (NotNull, (void*)&Hover) AtomicString(":hover", AtomicString::ConstructF
romLiteral); |
63 new (NotNull, (void*)&Invalid) AtomicString(":invalid", AtomicString::Constr
uctFromLiteral); | |
64 new (NotNull, (void*)&Unresolved) AtomicString(":unresolved", AtomicString::
ConstructFromLiteral); | 62 new (NotNull, (void*)&Unresolved) AtomicString(":unresolved", AtomicString::
ConstructFromLiteral); |
65 } | 63 } |
66 | 64 |
67 } // namespace StyleChangeExtraData | 65 } // namespace StyleChangeExtraData |
68 | 66 |
69 } // namespace blink | 67 } // namespace blink |
OLD | NEW |