| 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 | 32 |
| 33 #include "gen/sky/core/EventNames.h" | 33 #include "gen/sky/core/EventNames.h" |
| 34 #include "gen/sky/core/EventTargetNames.h" | 34 #include "gen/sky/core/EventTargetNames.h" |
| 35 #include "gen/sky/core/EventTypeNames.h" | 35 #include "gen/sky/core/EventTypeNames.h" |
| 36 #include "gen/sky/core/FetchInitiatorTypeNames.h" | 36 #include "gen/sky/core/FetchInitiatorTypeNames.h" |
| 37 #include "gen/sky/core/HTMLNames.h" | 37 #include "gen/sky/core/HTMLNames.h" |
| 38 #include "gen/sky/core/MediaFeatureNames.h" | 38 #include "gen/sky/core/MediaFeatureNames.h" |
| 39 #include "gen/sky/core/MediaTypeNames.h" | 39 #include "gen/sky/core/MediaTypeNames.h" |
| 40 #include "gen/sky/platform/FontFamilyNames.h" | 40 #include "gen/sky/platform/FontFamilyNames.h" |
| 41 #include "sky/engine/core/dom/Document.h" | 41 #include "sky/engine/core/dom/Document.h" |
| 42 #include "sky/engine/core/html/parser/HTMLParserThread.h" | |
| 43 #include "sky/engine/platform/Partitions.h" | 42 #include "sky/engine/platform/Partitions.h" |
| 44 #include "sky/engine/platform/PlatformThreadData.h" | 43 #include "sky/engine/platform/PlatformThreadData.h" |
| 45 #include "sky/engine/wtf/text/StringStatics.h" | 44 #include "sky/engine/wtf/text/StringStatics.h" |
| 46 | 45 |
| 47 namespace blink { | 46 namespace blink { |
| 48 | 47 |
| 49 void CoreInitializer::init() | 48 void CoreInitializer::init() |
| 50 { | 49 { |
| 51 ASSERT(!m_isInited); | 50 ASSERT(!m_isInited); |
| 52 m_isInited = true; | 51 m_isInited = true; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 66 WTF::StringStatics::init(); | 65 WTF::StringStatics::init(); |
| 67 | 66 |
| 68 QualifiedName::init(); | 67 QualifiedName::init(); |
| 69 Partitions::init(); | 68 Partitions::init(); |
| 70 | 69 |
| 71 // Ensure that the main thread's thread-local data is initialized before | 70 // Ensure that the main thread's thread-local data is initialized before |
| 72 // starting any worker threads. | 71 // starting any worker threads. |
| 73 PlatformThreadData::current(); | 72 PlatformThreadData::current(); |
| 74 | 73 |
| 75 StringImpl::freezeStaticStrings(); | 74 StringImpl::freezeStaticStrings(); |
| 76 | |
| 77 HTMLParserThread::start(); | |
| 78 } | 75 } |
| 79 | 76 |
| 80 void CoreInitializer::shutdown() | 77 void CoreInitializer::shutdown() |
| 81 { | 78 { |
| 82 HTMLParserThread::stop(); | |
| 83 Partitions::shutdown(); | 79 Partitions::shutdown(); |
| 84 } | 80 } |
| 85 | 81 |
| 86 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |