| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |