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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 { | 55 { |
56 #if !ENABLE(OILPAN) | 56 #if !ENABLE(OILPAN) |
57 dispose(); | 57 dispose(); |
58 #endif | 58 #endif |
59 } | 59 } |
60 | 60 |
61 void HTMLImportLoader::dispose() | 61 void HTMLImportLoader::dispose() |
62 { | 62 { |
63 m_controller = nullptr; | 63 m_controller = nullptr; |
64 if (m_document) { | 64 if (m_document) { |
65 if (m_document->parser()) | |
66 m_document->parser()->removeClient(this); | |
67 m_document->setImportsController(nullptr); | 65 m_document->setImportsController(nullptr); |
68 m_document->cancelParsing(); | 66 m_document->cancelParsing(); |
69 m_document.clear(); | 67 m_document.clear(); |
70 } | 68 } |
71 } | 69 } |
72 | 70 |
73 void HTMLImportLoader::startLoading(const ResourcePtr<RawResource>& resource) | 71 void HTMLImportLoader::startLoading(const ResourcePtr<RawResource>& resource) |
74 { | 72 { |
75 setResource(resource); | 73 setResource(resource); |
76 } | 74 } |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 #if ENABLE(OILPAN) | 222 #if ENABLE(OILPAN) |
225 visitor->trace(m_imports); | 223 visitor->trace(m_imports); |
226 #endif | 224 #endif |
227 visitor->trace(m_document); | 225 visitor->trace(m_document); |
228 visitor->trace(m_writer); | 226 visitor->trace(m_writer); |
229 visitor->trace(m_microtaskQueue); | 227 visitor->trace(m_microtaskQueue); |
230 DocumentParserClient::trace(visitor); | 228 DocumentParserClient::trace(visitor); |
231 } | 229 } |
232 | 230 |
233 } // namespace blink | 231 } // namespace blink |
OLD | NEW |