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

Side by Side Diff: sky/engine/core/html/imports/HTMLImportLoader.cpp

Issue 849773002: Remove didRemoveAllPendingStylesheet. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportLoader.h ('k') | no next file » | 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (state == StateLoaded || state == StateError) 139 if (state == StateLoaded || state == StateError)
140 didFinishLoading(); 140 didFinishLoading();
141 } 141 }
142 142
143 void HTMLImportLoader::didFinishParsing() 143 void HTMLImportLoader::didFinishParsing()
144 { 144 {
145 setState(finishParsing()); 145 setState(finishParsing());
146 setState(finishLoading()); 146 setState(finishLoading());
147 } 147 }
148 148
149 void HTMLImportLoader::didRemoveAllPendingStylesheet()
150 {
151 if (m_state == StateParsed)
152 setState(finishLoading());
153 }
154
155 void HTMLImportLoader::didFinishLoading() 149 void HTMLImportLoader::didFinishLoading()
156 { 150 {
157 for (size_t i = 0; i < m_imports.size(); ++i) 151 for (size_t i = 0; i < m_imports.size(); ++i)
158 m_imports[i]->didFinishLoading(); 152 m_imports[i]->didFinishLoading();
159 153
160 ASSERT(!m_document || !m_document->parsing()); 154 ASSERT(!m_document || !m_document->parsing());
161 } 155 }
162 156
163 void HTMLImportLoader::moveToFirst(HTMLImportChild* import) 157 void HTMLImportLoader::moveToFirst(HTMLImportChild* import)
164 { 158 {
(...skipping 25 matching lines...) Expand all
190 { 184 {
191 return firstImport()->state().shouldBlockScriptExecution(); 185 return firstImport()->state().shouldBlockScriptExecution();
192 } 186 }
193 187
194 PassRefPtr<CustomElementSyncMicrotaskQueue> HTMLImportLoader::microtaskQueue() c onst 188 PassRefPtr<CustomElementSyncMicrotaskQueue> HTMLImportLoader::microtaskQueue() c onst
195 { 189 {
196 return m_microtaskQueue; 190 return m_microtaskQueue;
197 } 191 }
198 192
199 } // namespace blink 193 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698