| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 | 170 |
| 171 void HTMLImportLoader::didRemoveAllPendingStylesheet() | 171 void HTMLImportLoader::didRemoveAllPendingStylesheet() |
| 172 { | 172 { |
| 173 if (m_state == StateParsed) | 173 if (m_state == StateParsed) |
| 174 setState(finishLoading()); | 174 setState(finishLoading()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool HTMLImportLoader::hasPendingResources() const | 177 bool HTMLImportLoader::hasPendingResources() const |
| 178 { | 178 { |
| 179 return m_document && m_document->styleEngine()->hasPendingSheets(); | 179 return m_document && m_document->styleEngine().hasPendingSheets(); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void HTMLImportLoader::didFinishLoading() | 182 void HTMLImportLoader::didFinishLoading() |
| 183 { | 183 { |
| 184 for (size_t i = 0; i < m_imports.size(); ++i) | 184 for (size_t i = 0; i < m_imports.size(); ++i) |
| 185 m_imports[i]->didFinishLoading(); | 185 m_imports[i]->didFinishLoading(); |
| 186 | 186 |
| 187 clearResource(); | 187 clearResource(); |
| 188 | 188 |
| 189 ASSERT(!m_document || !m_document->parsing()); | 189 ASSERT(!m_document || !m_document->parsing()); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 #if ENABLE(OILPAN) | 231 #if ENABLE(OILPAN) |
| 232 visitor->trace(m_imports); | 232 visitor->trace(m_imports); |
| 233 #endif | 233 #endif |
| 234 visitor->trace(m_document); | 234 visitor->trace(m_document); |
| 235 visitor->trace(m_writer); | 235 visitor->trace(m_writer); |
| 236 visitor->trace(m_microtaskQueue); | 236 visitor->trace(m_microtaskQueue); |
| 237 DocumentParserClient::trace(visitor); | 237 DocumentParserClient::trace(visitor); |
| 238 } | 238 } |
| 239 | 239 |
| 240 } // namespace blink | 240 } // namespace blink |
| OLD | NEW |