| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 EventTargetNames::init(); | 67 EventTargetNames::init(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void CoreInitializer::registerEventFactory() | 70 void CoreInitializer::registerEventFactory() |
| 71 { | 71 { |
| 72 static bool isRegistered = false; | 72 static bool isRegistered = false; |
| 73 if (isRegistered) | 73 if (isRegistered) |
| 74 return; | 74 return; |
| 75 isRegistered = true; | 75 isRegistered = true; |
| 76 | 76 |
| 77 Document::registerEventFactory(new EventFactory()); | 77 Document::registerEventFactory(EventFactory::create()); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void CoreInitializer::init() | 80 void CoreInitializer::init() |
| 81 { | 81 { |
| 82 if (m_isInited) | 82 if (m_isInited) |
| 83 return; | 83 return; |
| 84 m_isInited = true; | 84 m_isInited = true; |
| 85 | 85 |
| 86 // It would make logical sense to do this and WTF::StringStatics::init() in | 86 // It would make logical sense to do this and WTF::StringStatics::init() in |
| 87 // WTF::initialize() but there are ordering dependencies. | 87 // WTF::initialize() but there are ordering dependencies. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 void shutdown() | 123 void shutdown() |
| 124 { | 124 { |
| 125 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. | 125 // Make sure we stop the HTMLParserThread before Platform::current() is clea
red. |
| 126 HTMLParserThread::shutdown(); | 126 HTMLParserThread::shutdown(); |
| 127 | 127 |
| 128 Partitions::shutdown(); | 128 Partitions::shutdown(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace WebCore | 131 } // namespace WebCore |
| OLD | NEW |