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