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/TraceEvent.h" | 7 #include "platform/TraceEvent.h" |
8 #include "wtf/MainThread.h" | 8 #include "wtf/MainThread.h" |
9 #include "wtf/StaticConstructors.h" | 9 #include "wtf/StaticConstructors.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 const char Shadow[] = "Shadow"; | 36 const char Shadow[] = "Shadow"; |
37 const char SiblingSelector[] = "SiblingSelector"; | 37 const char SiblingSelector[] = "SiblingSelector"; |
38 const char StyleInvalidator[] = "StyleInvalidator"; | 38 const char StyleInvalidator[] = "StyleInvalidator"; |
39 const char StyleSheetChange[] = "StyleSheetChange"; | 39 const char StyleSheetChange[] = "StyleSheetChange"; |
40 const char Validate[] = "Validate"; | 40 const char Validate[] = "Validate"; |
41 const char ViewportUnits[] = "ViewportUnits"; | 41 const char ViewportUnits[] = "ViewportUnits"; |
42 const char VisitedLink[] = "VisitedLink"; | 42 const char VisitedLink[] = "VisitedLink"; |
43 const char VisuallyOrdered[] = "VisuallyOrdered"; | 43 const char VisuallyOrdered[] = "VisuallyOrdered"; |
44 const char WritingModeChange[] = "WritingModeChange"; | 44 const char WritingModeChange[] = "WritingModeChange"; |
45 const char Zoom[] = "Zoom"; | 45 const char Zoom[] = "Zoom"; |
46 } // namespace StyleChangeReasonForTracing | 46 } // namespace StyleChangeReason |
47 | 47 |
48 namespace StyleChangeExtraData { | 48 namespace StyleChangeExtraData { |
49 DEFINE_GLOBAL(AtomicString, Active) | 49 DEFINE_GLOBAL(AtomicString, Active) |
50 DEFINE_GLOBAL(AtomicString, Disabled) | 50 DEFINE_GLOBAL(AtomicString, Disabled) |
51 DEFINE_GLOBAL(AtomicString, Focus) | 51 DEFINE_GLOBAL(AtomicString, Focus) |
52 DEFINE_GLOBAL(AtomicString, Hover) | 52 DEFINE_GLOBAL(AtomicString, Hover) |
53 DEFINE_GLOBAL(AtomicString, Past) | 53 DEFINE_GLOBAL(AtomicString, Past) |
54 DEFINE_GLOBAL(AtomicString, Unresolved) | 54 DEFINE_GLOBAL(AtomicString, Unresolved) |
55 | 55 |
56 void init() | 56 void init() |
57 { | 57 { |
58 ASSERT(isMainThread()); | 58 ASSERT(isMainThread()); |
59 | 59 |
60 new (NotNull, (void*)&Active) AtomicString(":active", AtomicString::Construc
tFromLiteral); | 60 new (NotNull, (void*)&Active) AtomicString(":active", AtomicString::Construc
tFromLiteral); |
61 new (NotNull, (void*)&Disabled) AtomicString(":disabled", AtomicString::Cons
tructFromLiteral); | 61 new (NotNull, (void*)&Disabled) AtomicString(":disabled", AtomicString::Cons
tructFromLiteral); |
62 new (NotNull, (void*)&Focus) AtomicString(":focus", AtomicString::ConstructF
romLiteral); | 62 new (NotNull, (void*)&Focus) AtomicString(":focus", AtomicString::ConstructF
romLiteral); |
63 new (NotNull, (void*)&Hover) AtomicString(":hover", AtomicString::ConstructF
romLiteral); | 63 new (NotNull, (void*)&Hover) AtomicString(":hover", AtomicString::ConstructF
romLiteral); |
64 new (NotNull, (void*)&Past) AtomicString(":past", AtomicString::ConstructFro
mLiteral); | 64 new (NotNull, (void*)&Past) AtomicString(":past", AtomicString::ConstructFro
mLiteral); |
65 new (NotNull, (void*)&Unresolved) AtomicString(":unresolved", AtomicString::
ConstructFromLiteral); | 65 new (NotNull, (void*)&Unresolved) AtomicString(":unresolved", AtomicString::
ConstructFromLiteral); |
66 } | 66 } |
67 | 67 |
68 } // namespace StyleChangeExtraData | 68 } // namespace StyleChangeExtraData |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
OLD | NEW |