| 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 28 matching lines...) Expand all Loading... |
| 39 m_imports.clear(); | 39 m_imports.clear(); |
| 40 m_document = nullptr; | 40 m_document = nullptr; |
| 41 m_recalcTimer.stop(); | 41 m_recalcTimer.stop(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 Document* HTMLImportTreeRoot::document() const | 44 Document* HTMLImportTreeRoot::document() const |
| 45 { | 45 { |
| 46 return m_document; | 46 return m_document; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool HTMLImportTreeRoot::isDone() const | 49 bool HTMLImportTreeRoot::hasFinishedLoading() const |
| 50 { | 50 { |
| 51 return !m_document->parsing() && m_document->styleEngine().haveStylesheetsLo
aded(); | 51 return !m_document->parsing() && m_document->styleEngine().haveStylesheetsLo
aded(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void HTMLImportTreeRoot::stateWillChange() | 54 void HTMLImportTreeRoot::stateWillChange() |
| 55 { | 55 { |
| 56 scheduleRecalcState(); | 56 scheduleRecalcState(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void HTMLImportTreeRoot::stateDidChange() | 59 void HTMLImportTreeRoot::stateDidChange() |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 DEFINE_TRACE(HTMLImportTreeRoot) | 110 DEFINE_TRACE(HTMLImportTreeRoot) |
| 111 { | 111 { |
| 112 visitor->trace(m_document); | 112 visitor->trace(m_document); |
| 113 visitor->trace(m_imports); | 113 visitor->trace(m_imports); |
| 114 HTMLImport::trace(visitor); | 114 HTMLImport::trace(visitor); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } | 117 } |
| OLD | NEW |