| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/html/imports/HTMLImportTreeRoot.h" | 6 #include "core/html/imports/HTMLImportTreeRoot.h" |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/StyleEngine.h" | 9 #include "core/dom/StyleEngine.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 if (equalIgnoringFragmentIdentifier(candidate->url(), url)) | 86 if (equalIgnoringFragmentIdentifier(candidate->url(), url)) |
| 87 return candidate; | 87 return candidate; |
| 88 } | 88 } |
| 89 | 89 |
| 90 return nullptr; | 90 return nullptr; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void HTMLImportTreeRoot::recalcTimerFired(Timer<HTMLImportTreeRoot>*) | 93 void HTMLImportTreeRoot::recalcTimerFired(Timer<HTMLImportTreeRoot>*) |
| 94 { | 94 { |
| 95 ASSERT(m_document); | 95 ASSERT(m_document); |
| 96 RefPtrWillBeRawPtr<Document> protect(m_document); | 96 RefPtrWillBeRawPtr<Document> protect(m_document.get()); |
| 97 | 97 |
| 98 do { | 98 do { |
| 99 m_recalcTimer.stop(); | 99 m_recalcTimer.stop(); |
| 100 HTMLImport::recalcTreeState(this); | 100 HTMLImport::recalcTreeState(this); |
| 101 } while (m_recalcTimer.isActive()); | 101 } while (m_recalcTimer.isActive()); |
| 102 } | 102 } |
| 103 | 103 |
| 104 DEFINE_TRACE(HTMLImportTreeRoot) | 104 DEFINE_TRACE(HTMLImportTreeRoot) |
| 105 { | 105 { |
| 106 visitor->trace(m_document); | 106 visitor->trace(m_document); |
| 107 visitor->trace(m_imports); | 107 visitor->trace(m_imports); |
| 108 HTMLImport::trace(visitor); | 108 HTMLImport::trace(visitor); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } | 111 } |
| OLD | NEW |