OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "Init.h" | 32 #include "Init.h" |
33 | 33 |
34 #include "EventNames.h" | 34 #include "EventNames.h" |
35 #include "EventTargetNames.h" | 35 #include "EventTargetNames.h" |
36 #include "EventTypeNames.h" | 36 #include "EventTypeNames.h" |
37 #include "FetchInitiatorTypeNames.h" | 37 #include "FetchInitiatorTypeNames.h" |
38 #include "FontFamilyNames.h" | 38 #include "FontFamilyNames.h" |
39 #include "HTMLNames.h" | 39 #include "HTMLNames.h" |
40 #include "InputTypeNames.h" | 40 #include "InputTypeNames.h" |
41 #include "MathMLNames.h" | 41 #include "MathMLNames.h" |
| 42 #include "MediaFeatureNames.h" |
| 43 #include "MediaTypeNames.h" |
42 #include "SVGNames.h" | 44 #include "SVGNames.h" |
43 #include "XLinkNames.h" | 45 #include "XLinkNames.h" |
44 #include "XMLNSNames.h" | 46 #include "XMLNSNames.h" |
45 #include "XMLNames.h" | 47 #include "XMLNames.h" |
46 #include "core/css/MediaFeatureNames.h" | |
47 #include "core/html/parser/HTMLParserThread.h" | 48 #include "core/html/parser/HTMLParserThread.h" |
48 #include "heap/Heap.h" | 49 #include "heap/Heap.h" |
49 #include "platform/EventTracer.h" | 50 #include "platform/EventTracer.h" |
50 #include "platform/Partitions.h" | 51 #include "platform/Partitions.h" |
51 #include "platform/PlatformThreadData.h" | 52 #include "platform/PlatformThreadData.h" |
52 #include "wtf/text/StringStatics.h" | 53 #include "wtf/text/StringStatics.h" |
53 | 54 |
54 namespace WebCore { | 55 namespace WebCore { |
55 | 56 |
56 void init() | 57 void init() |
(...skipping 12 matching lines...) Expand all Loading... |
69 MathMLNames::init(); | 70 MathMLNames::init(); |
70 XMLNSNames::init(); | 71 XMLNSNames::init(); |
71 XMLNames::init(); | 72 XMLNames::init(); |
72 EventNames::init(); | 73 EventNames::init(); |
73 EventTargetNames::init(); | 74 EventTargetNames::init(); |
74 EventTypeNames::init(); | 75 EventTypeNames::init(); |
75 FetchInitiatorTypeNames::init(); | 76 FetchInitiatorTypeNames::init(); |
76 FontFamilyNames::init(); | 77 FontFamilyNames::init(); |
77 InputTypeNames::init(); | 78 InputTypeNames::init(); |
78 MediaFeatureNames::init(); | 79 MediaFeatureNames::init(); |
| 80 MediaTypeNames::init(); |
79 WTF::StringStatics::init(); | 81 WTF::StringStatics::init(); |
80 QualifiedName::init(); | 82 QualifiedName::init(); |
81 Partitions::init(); | 83 Partitions::init(); |
82 EventTracer::initialize(); | 84 EventTracer::initialize(); |
83 | 85 |
84 // Ensure that the main thread's thread-local data is initialized before | 86 // Ensure that the main thread's thread-local data is initialized before |
85 // starting any worker threads. | 87 // starting any worker threads. |
86 PlatformThreadData::current(); | 88 PlatformThreadData::current(); |
87 | 89 |
88 StringImpl::freezeStaticStrings(); | 90 StringImpl::freezeStaticStrings(); |
89 | 91 |
90 // Creates HTMLParserThread::shared, but does not start the thread. | 92 // Creates HTMLParserThread::shared, but does not start the thread. |
91 HTMLParserThread::init(); | 93 HTMLParserThread::init(); |
92 } | 94 } |
93 | 95 |
94 void shutdown() | 96 void shutdown() |
95 { | 97 { |
96 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. | 98 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. |
97 HTMLParserThread::shutdown(); | 99 HTMLParserThread::shutdown(); |
98 | 100 |
99 Partitions::shutdown(); | 101 Partitions::shutdown(); |
100 } | 102 } |
101 | 103 |
102 } // namespace WebCore | 104 } // namespace WebCore |
OLD | NEW |