| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "XMLNames.h" | 48 #include "XMLNames.h" |
| 49 #include "core/html/parser/HTMLParserThread.h" | 49 #include "core/html/parser/HTMLParserThread.h" |
| 50 #include "platform/EventTracer.h" | 50 #include "platform/EventTracer.h" |
| 51 #include "platform/Partitions.h" | 51 #include "platform/Partitions.h" |
| 52 #include "platform/PlatformThreadData.h" | 52 #include "platform/PlatformThreadData.h" |
| 53 #include "platform/heap/Heap.h" | 53 #include "platform/heap/Heap.h" |
| 54 #include "wtf/text/StringStatics.h" | 54 #include "wtf/text/StringStatics.h" |
| 55 | 55 |
| 56 namespace WebCore { | 56 namespace WebCore { |
| 57 | 57 |
| 58 void CoreInitializer::initEventNames() |
| 59 { |
| 60 EventNames::init(); |
| 61 } |
| 62 |
| 58 void CoreInitializer::initEventTargetNames() | 63 void CoreInitializer::initEventTargetNames() |
| 59 { | 64 { |
| 60 EventTargetNames::init(); | 65 EventTargetNames::init(); |
| 61 } | 66 } |
| 62 | 67 |
| 63 void CoreInitializer::init() | 68 void CoreInitializer::init() |
| 64 { | 69 { |
| 65 if (m_isInited) | 70 if (m_isInited) |
| 66 return; | 71 return; |
| 67 m_isInited = true; | 72 m_isInited = true; |
| 68 | 73 |
| 69 // It would make logical sense to do this and WTF::StringStatics::init() in | 74 // It would make logical sense to do this and WTF::StringStatics::init() in |
| 70 // WTF::initialize() but there are ordering dependencies. | 75 // WTF::initialize() but there are ordering dependencies. |
| 71 AtomicString::init(); | 76 AtomicString::init(); |
| 72 HTMLNames::init(); | 77 HTMLNames::init(); |
| 73 SVGNames::init(); | 78 SVGNames::init(); |
| 74 XLinkNames::init(); | 79 XLinkNames::init(); |
| 75 MathMLNames::init(); | 80 MathMLNames::init(); |
| 76 XMLNSNames::init(); | 81 XMLNSNames::init(); |
| 77 XMLNames::init(); | 82 XMLNames::init(); |
| 78 | 83 |
| 79 EventNames::init(); | 84 initEventNames(); |
| 80 initEventTargetNames(); | 85 initEventTargetNames(); |
| 81 EventTypeNames::init(); | 86 EventTypeNames::init(); |
| 82 FetchInitiatorTypeNames::init(); | 87 FetchInitiatorTypeNames::init(); |
| 83 FontFamilyNames::init(); | 88 FontFamilyNames::init(); |
| 84 HTMLTokenizerNames::init(); | 89 HTMLTokenizerNames::init(); |
| 85 InputTypeNames::init(); | 90 InputTypeNames::init(); |
| 86 MediaFeatureNames::init(); | 91 MediaFeatureNames::init(); |
| 87 MediaTypeNames::init(); | 92 MediaTypeNames::init(); |
| 88 | 93 |
| 89 WTF::StringStatics::init(); | 94 WTF::StringStatics::init(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 103 | 108 |
| 104 void shutdown() | 109 void shutdown() |
| 105 { | 110 { |
| 106 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. | 111 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. |
| 107 HTMLParserThread::shutdown(); | 112 HTMLParserThread::shutdown(); |
| 108 | 113 |
| 109 Partitions::shutdown(); | 114 Partitions::shutdown(); |
| 110 } | 115 } |
| 111 | 116 |
| 112 } // namespace WebCore | 117 } // namespace WebCore |
| OLD | NEW |