| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 StyleChangeReasonForTracing |
| 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, Unresolved) | 54 DEFINE_GLOBAL(AtomicString, Unresolved) |
| 54 | 55 |
| 55 void init() | 56 void init() |
| 56 { | 57 { |
| 57 ASSERT(isMainThread()); | 58 ASSERT(isMainThread()); |
| 58 | 59 |
| 59 new (NotNull, (void*)&Active) AtomicString(":active", AtomicString::Construc
tFromLiteral); | 60 new (NotNull, (void*)&Active) AtomicString(":active", AtomicString::Construc
tFromLiteral); |
| 60 new (NotNull, (void*)&Disabled) AtomicString(":disabled", AtomicString::Cons
tructFromLiteral); | 61 new (NotNull, (void*)&Disabled) AtomicString(":disabled", AtomicString::Cons
tructFromLiteral); |
| 61 new (NotNull, (void*)&Focus) AtomicString(":focus", AtomicString::ConstructF
romLiteral); | 62 new (NotNull, (void*)&Focus) AtomicString(":focus", AtomicString::ConstructF
romLiteral); |
| 62 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); |
| 63 new (NotNull, (void*)&Unresolved) AtomicString(":unresolved", AtomicString::
ConstructFromLiteral); | 65 new (NotNull, (void*)&Unresolved) AtomicString(":unresolved", AtomicString::
ConstructFromLiteral); |
| 64 } | 66 } |
| 65 | 67 |
| 66 } // namespace StyleChangeExtraData | 68 } // namespace StyleChangeExtraData |
| 67 | 69 |
| 68 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |