Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: sky/engine/core/Init.cpp

Issue 682903002: Remove HTMLTokenizerNames (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/BUILD.gn ('k') | sky/engine/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "Init.h" 32 #include "Init.h"
33 33
34 #include "core/EventNames.h" 34 #include "core/EventNames.h"
35 #include "core/EventTargetNames.h" 35 #include "core/EventTargetNames.h"
36 #include "core/EventTypeNames.h" 36 #include "core/EventTypeNames.h"
37 #include "core/FetchInitiatorTypeNames.h" 37 #include "core/FetchInitiatorTypeNames.h"
38 #include "core/HTMLNames.h" 38 #include "core/HTMLNames.h"
39 #include "core/HTMLTokenizerNames.h"
40 #include "core/MediaFeatureNames.h" 39 #include "core/MediaFeatureNames.h"
41 #include "core/MediaTypeNames.h" 40 #include "core/MediaTypeNames.h"
42 #include "core/dom/Document.h" 41 #include "core/dom/Document.h"
43 #include "core/events/EventFactory.h" 42 #include "core/events/EventFactory.h"
44 #include "core/html/parser/HTMLParserThread.h" 43 #include "core/html/parser/HTMLParserThread.h"
45 #include "platform/EventTracer.h" 44 #include "platform/EventTracer.h"
46 #include "platform/FontFamilyNames.h" 45 #include "platform/FontFamilyNames.h"
47 #include "platform/Partitions.h" 46 #include "platform/Partitions.h"
48 #include "platform/PlatformThreadData.h" 47 #include "platform/PlatformThreadData.h"
49 #include "wtf/text/StringStatics.h" 48 #include "wtf/text/StringStatics.h"
(...skipping 15 matching lines...) Expand all
65 ASSERT(!m_isInited); 64 ASSERT(!m_isInited);
66 m_isInited = true; 65 m_isInited = true;
67 66
68 HTMLNames::init(); 67 HTMLNames::init();
69 68
70 EventNames::init(); 69 EventNames::init();
71 EventTargetNames::init(); 70 EventTargetNames::init();
72 EventTypeNames::init(); 71 EventTypeNames::init();
73 FetchInitiatorTypeNames::init(); 72 FetchInitiatorTypeNames::init();
74 FontFamilyNames::init(); 73 FontFamilyNames::init();
75 HTMLTokenizerNames::init();
76 MediaFeatureNames::init(); 74 MediaFeatureNames::init();
77 MediaTypeNames::init(); 75 MediaTypeNames::init();
78 76
79 // It would make logical sense to do this in WTF::initialize() but there are 77 // It would make logical sense to do this in WTF::initialize() but there are
80 // ordering dependencies, e.g. about "xmlns". 78 // ordering dependencies, e.g. about "xmlns".
81 WTF::StringStatics::init(); 79 WTF::StringStatics::init();
82 80
83 QualifiedName::init(); 81 QualifiedName::init();
84 Partitions::init(); 82 Partitions::init();
85 EventTracer::initialize(); 83 EventTracer::initialize();
86 84
87 registerEventFactory(); 85 registerEventFactory();
88 86
89 // Ensure that the main thread's thread-local data is initialized before 87 // Ensure that the main thread's thread-local data is initialized before
90 // starting any worker threads. 88 // starting any worker threads.
91 PlatformThreadData::current(); 89 PlatformThreadData::current();
92 90
93 StringImpl::freezeStaticStrings(); 91 StringImpl::freezeStaticStrings();
94 92
95 HTMLParserThread::start(); 93 HTMLParserThread::start();
96 } 94 }
97 95
98 void CoreInitializer::shutdown() 96 void CoreInitializer::shutdown()
99 { 97 {
100 HTMLParserThread::stop(); 98 HTMLParserThread::stop();
101 Partitions::shutdown(); 99 Partitions::shutdown();
102 } 100 }
103 101
104 } // namespace blink 102 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/BUILD.gn ('k') | sky/engine/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698