Chromium Code Reviews| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 if (equalIgnoringFragmentIdentifier(candidate->url(), url)) | 92 if (equalIgnoringFragmentIdentifier(candidate->url(), url)) |
| 93 return candidate; | 93 return candidate; |
| 94 } | 94 } |
| 95 | 95 |
| 96 return nullptr; | 96 return nullptr; |
| 97 } | 97 } |
| 98 | 98 |
| 99 void HTMLImportTreeRoot::recalcTimerFired(Timer<HTMLImportTreeRoot>*) | 99 void HTMLImportTreeRoot::recalcTimerFired(Timer<HTMLImportTreeRoot>*) |
| 100 { | 100 { |
| 101 ASSERT(m_document); | 101 ASSERT(m_document); |
| 102 RefPtrWillBeRawPtr<Document> protect(m_document.get()); | 102 RefPtrWillBeRawPtr<Document> protectDocument(m_document.get()); |
| 103 | 103 HTMLImport::recalcTreeState(this); |
|
sof
2015/04/30 18:18:37
Could you explain why new recalculations cannot be
| |
| 104 do { | |
| 105 m_recalcTimer.stop(); | |
| 106 HTMLImport::recalcTreeState(this); | |
| 107 } while (m_recalcTimer.isActive()); | |
| 108 } | 104 } |
| 109 | 105 |
| 110 DEFINE_TRACE(HTMLImportTreeRoot) | 106 DEFINE_TRACE(HTMLImportTreeRoot) |
| 111 { | 107 { |
| 112 visitor->trace(m_document); | 108 visitor->trace(m_document); |
| 113 visitor->trace(m_imports); | 109 visitor->trace(m_imports); |
| 114 HTMLImport::trace(visitor); | 110 HTMLImport::trace(visitor); |
| 115 } | 111 } |
| 116 | 112 |
| 117 } | 113 } |
| OLD | NEW |