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

Side by Side Diff: third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp

Issue 1978083002: Rename Pending to PendingScriptBlocking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 163
164 void HTMLImportLoader::didRemoveAllPendingStylesheet() 164 void HTMLImportLoader::didRemoveAllPendingStylesheet()
165 { 165 {
166 if (m_state == StateParsed) 166 if (m_state == StateParsed)
167 setState(finishLoading()); 167 setState(finishLoading());
168 } 168 }
169 169
170 bool HTMLImportLoader::hasPendingResources() const 170 bool HTMLImportLoader::hasPendingResources() const
171 { 171 {
172 return m_document && m_document->styleEngine().hasPendingSheets(); 172 return m_document && m_document->styleEngine().hasPendingScriptBlockingSheet s();
173 } 173 }
174 174
175 void HTMLImportLoader::didFinishLoading() 175 void HTMLImportLoader::didFinishLoading()
176 { 176 {
177 for (size_t i = 0; i < m_imports.size(); ++i) 177 for (size_t i = 0; i < m_imports.size(); ++i)
178 m_imports[i]->didFinishLoading(); 178 m_imports[i]->didFinishLoading();
179 179
180 clearResource(); 180 clearResource();
181 181
182 ASSERT(!m_document || !m_document->parsing()); 182 ASSERT(!m_document || !m_document->parsing());
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 visitor->trace(m_controller); 221 visitor->trace(m_controller);
222 visitor->trace(m_imports); 222 visitor->trace(m_imports);
223 visitor->trace(m_document); 223 visitor->trace(m_document);
224 visitor->trace(m_writer); 224 visitor->trace(m_writer);
225 visitor->trace(m_microtaskQueue); 225 visitor->trace(m_microtaskQueue);
226 DocumentParserClient::trace(visitor); 226 DocumentParserClient::trace(visitor);
227 ResourceOwner<RawResource>::trace(visitor); 227 ResourceOwner<RawResource>::trace(visitor);
228 } 228 }
229 229
230 } // namespace blink 230 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698