| 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 26 matching lines...) Expand all Loading... |
| 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 "SVGNames.h" | 42 #include "SVGNames.h" |
| 43 #include "XLinkNames.h" | 43 #include "XLinkNames.h" |
| 44 #include "XMLNSNames.h" | 44 #include "XMLNSNames.h" |
| 45 #include "XMLNames.h" | 45 #include "XMLNames.h" |
| 46 #include "core/css/MediaFeatureNames.h" | 46 #include "core/css/MediaFeatureNames.h" |
| 47 #include "core/html/parser/HTMLParserThread.h" | |
| 48 #include "heap/Heap.h" | 47 #include "heap/Heap.h" |
| 49 #include "platform/EventTracer.h" | 48 #include "platform/EventTracer.h" |
| 50 #include "platform/Partitions.h" | 49 #include "platform/Partitions.h" |
| 51 #include "platform/PlatformThreadData.h" | 50 #include "platform/PlatformThreadData.h" |
| 52 #include "wtf/text/StringStatics.h" | 51 #include "wtf/text/StringStatics.h" |
| 53 | 52 |
| 54 namespace WebCore { | 53 namespace WebCore { |
| 55 | 54 |
| 56 void init() | 55 void init() |
| 57 { | 56 { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 79 WTF::StringStatics::init(); | 78 WTF::StringStatics::init(); |
| 80 QualifiedName::init(); | 79 QualifiedName::init(); |
| 81 Partitions::init(); | 80 Partitions::init(); |
| 82 EventTracer::initialize(); | 81 EventTracer::initialize(); |
| 83 | 82 |
| 84 // Ensure that the main thread's thread-local data is initialized before | 83 // Ensure that the main thread's thread-local data is initialized before |
| 85 // starting any worker threads. | 84 // starting any worker threads. |
| 86 PlatformThreadData::current(); | 85 PlatformThreadData::current(); |
| 87 | 86 |
| 88 StringImpl::freezeStaticStrings(); | 87 StringImpl::freezeStaticStrings(); |
| 89 | |
| 90 // Creates HTMLParserThread::shared, but does not start the thread. | |
| 91 HTMLParserThread::init(); | |
| 92 } | 88 } |
| 93 | 89 |
| 94 void shutdown() | 90 void shutdown() |
| 95 { | 91 { |
| 96 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. | |
| 97 HTMLParserThread::shutdown(); | |
| 98 | |
| 99 Partitions::shutdown(); | 92 Partitions::shutdown(); |
| 100 } | 93 } |
| 101 | 94 |
| 102 } // namespace WebCore | 95 } // namespace WebCore |
| OLD | NEW |