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

Side by Side Diff: third_party/WebKit/Source/core/CoreInitializer.cpp

Issue 2393803004: blink: Enforce comment formatting (except in core/layout, for now) (Closed)
Patch Set: Created 4 years, 2 months 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 void CoreInitializer::initialize() { 76 void CoreInitializer::initialize() {
77 ASSERT(!isInitialized()); 77 ASSERT(!isInitialized());
78 m_isInitialized = true; 78 m_isInitialized = true;
79 // Note: in order to add core static strings for a new module (1) 79 // Note: in order to add core static strings for a new module (1)
80 // the value of 'coreStaticStringsCount' must be updated with the 80 // the value of 'coreStaticStringsCount' must be updated with the
81 // added strings count, (2) if the added strings are quialified names 81 // added strings count, (2) if the added strings are quialified names
82 // the 'qualifiedNamesCount' must be updated as well, (3) the strings 82 // the 'qualifiedNamesCount' must be updated as well, (3) the strings
83 // 'init()' function call must be added. 83 // 'init()' function call must be added.
84 // TODO(mikhail.pozdnyakov@intel.com): We should generate static strings initi alization code. 84 // TODO(mikhail.pozdnyakov@intel.com): We should generate static strings
85 // initialization code.
85 const unsigned qualifiedNamesCount = 86 const unsigned qualifiedNamesCount =
86 HTMLNames::HTMLTagsCount + HTMLNames::HTMLAttrsCount + 87 HTMLNames::HTMLTagsCount + HTMLNames::HTMLAttrsCount +
87 MathMLNames::MathMLTagsCount + MathMLNames::MathMLAttrsCount + 88 MathMLNames::MathMLTagsCount + MathMLNames::MathMLAttrsCount +
88 SVGNames::SVGTagsCount + SVGNames::SVGAttrsCount + 89 SVGNames::SVGTagsCount + SVGNames::SVGAttrsCount +
89 XLinkNames::XLinkAttrsCount + XMLNSNames::XMLNSAttrsCount + 90 XLinkNames::XLinkAttrsCount + XMLNSNames::XMLNSAttrsCount +
90 XMLNames::XMLAttrsCount; 91 XMLNames::XMLAttrsCount;
91 92
92 const unsigned coreStaticStringsCount = 93 const unsigned coreStaticStringsCount =
93 qualifiedNamesCount + EventNames::EventNamesCount + 94 qualifiedNamesCount + EventNames::EventNamesCount +
94 EventTargetNames::EventTargetNamesCount + 95 EventTargetNames::EventTargetNamesCount +
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Make sure we stop the HTMLParserThread before Platform::current() is 153 // Make sure we stop the HTMLParserThread before Platform::current() is
153 // cleared. 154 // cleared.
154 ASSERT(Platform::current()); 155 ASSERT(Platform::current());
155 if (!RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled()) 156 if (!RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled())
156 HTMLParserThread::shutdown(); 157 HTMLParserThread::shutdown();
157 158
158 WorkerThread::terminateAndWaitForAllWorkers(); 159 WorkerThread::terminateAndWaitForAllWorkers();
159 } 160 }
160 161
161 } // namespace blink 162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698