Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
| 6 #include "core/dom/StyleChangeReason.h" | |
| 7 | |
| 8 #include "platform/TraceEvent.h" | |
| 9 #include "wtf/MainThread.h" | |
| 10 #include "wtf/StaticConstructors.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 namespace StyleChangeReason { | |
| 15 const char ActiveStylesheetsUpdate[] = "ActiveStylesheetsUpdate"; | |
| 16 const char Animation[] = "Animation"; | |
| 17 const char Attribute[] = "Attribute"; | |
| 18 const char ControlValue[] = "ControlValue"; | |
| 19 const char Control[] = "Control"; | |
| 20 const char DesignMode[] = "DesignMode"; | |
| 21 const char Drag[] = "Drag"; | |
| 22 const char FontSizeChange[] = "FontSizeChange"; | |
| 23 const char Fonts[] = "Fonts"; | |
| 24 const char FullScreen[] = "FullScreen"; | |
| 25 const char Inline[] = "Inline"; | |
| 26 const char Inspector[] = "Inspector"; | |
| 27 const char Language[] = "Language"; | |
| 28 const char LinkColorChange[] = "LinkColorChange"; | |
| 29 const char PlatformColorChange[] = "PlatformColorChange"; | |
| 30 const char Plugin[] = "Plugin"; | |
| 31 const char PropagateInheritChangeToDistributedNodes[] = "PropagateInheritChangeT oDistributedNodes"; | |
| 32 const char PseudoClass[] = "PseudoClass"; | |
| 33 const char SVGContainerSizeChange[] = "SVGContainerSizeChange"; | |
| 34 const char SVGCursor[] = "SVGCursor"; | |
| 35 const char SVGFilterLayerUpdate[] = "SVGFilterLayerUpdate"; | |
| 36 const char Shadow[] = "Shadow"; | |
| 37 const char SiblingSelector[] = "SiblingSelector"; | |
| 38 const char StyleInvalidator[] = "StyleInvalidator"; | |
| 39 const char StyleSheetChange[] = "StyleSheetChange"; | |
| 40 const char Validate[] = "Validate"; | |
| 41 const char ViewportUnits[] = "ViewportUnits"; | |
| 42 const char VisitedLink[] = "VisitedLink"; | |
| 43 const char VisuallyOrdered[] = "VisuallyOrdered"; | |
| 44 const char WritingModeChange[] = "WritingModeChange"; | |
| 45 const char Zoom[] = "Zoom"; | |
| 46 } // namespace StyleChangeReasonForTracing | |
| 47 | |
| 48 namespace StyleChangeExtraData { | |
| 49 WTF_EXPORT DEFINE_GLOBAL(String, Active) | |
| 50 WTF_EXPORT DEFINE_GLOBAL(String, Disabled) | |
| 51 WTF_EXPORT DEFINE_GLOBAL(String, Focus) | |
| 52 WTF_EXPORT DEFINE_GLOBAL(String, Hover) | |
| 53 WTF_EXPORT DEFINE_GLOBAL(String, Invalid) | |
| 54 WTF_EXPORT DEFINE_GLOBAL(String, Unresolved) | |
| 55 | |
| 56 void init() | |
| 57 { | |
| 58 ASSERT(isMainThread()); | |
| 59 | |
| 60 new (NotNull, (void*)&Active) String(":active"); | |
|
esprehn
2014/09/29 02:30:23
I think there's some kind of special static string
kouhei (in TOK)
2014/09/29 03:24:44
Changed to AtomicString(ConstructFromLiteral)
| |
| 61 new (NotNull, (void*)&Disabled) String(":disabled"); | |
| 62 new (NotNull, (void*)&Focus) String(":focus"); | |
| 63 new (NotNull, (void*)&Hover) String(":hover"); | |
| 64 new (NotNull, (void*)&Invalid) String(":invalid"); | |
| 65 new (NotNull, (void*)&Unresolved) String(":unresolved"); | |
| 66 } | |
| 67 | |
| 68 } // namespace StyleChangeExtraData | |
| 69 | |
| 70 } // namespace blink | |
| OLD | NEW |