| 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 "core/html/imports/HTMLImportTreeRoot.h" | 5 #include "core/html/imports/HTMLImportTreeRoot.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/StyleEngine.h" | 8 #include "core/dom/StyleEngine.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "core/html/imports/HTMLImportChild.h" | 10 #include "core/html/imports/HTMLImportChild.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 m_recalcTimer.stop(); | 37 m_recalcTimer.stop(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 Document* HTMLImportTreeRoot::document() const | 40 Document* HTMLImportTreeRoot::document() const |
| 41 { | 41 { |
| 42 return m_document; | 42 return m_document; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool HTMLImportTreeRoot::hasFinishedLoading() const | 45 bool HTMLImportTreeRoot::hasFinishedLoading() const |
| 46 { | 46 { |
| 47 return !m_document->parsing() && m_document->styleEngine().haveStylesheetsLo
aded(); | 47 return !m_document->parsing() && m_document->styleEngine().haveScriptBlockin
gStylesheetsLoaded(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void HTMLImportTreeRoot::stateWillChange() | 50 void HTMLImportTreeRoot::stateWillChange() |
| 51 { | 51 { |
| 52 scheduleRecalcState(); | 52 scheduleRecalcState(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void HTMLImportTreeRoot::stateDidChange() | 55 void HTMLImportTreeRoot::stateDidChange() |
| 56 { | 56 { |
| 57 HTMLImport::stateDidChange(); | 57 HTMLImport::stateDidChange(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 DEFINE_TRACE(HTMLImportTreeRoot) | 96 DEFINE_TRACE(HTMLImportTreeRoot) |
| 97 { | 97 { |
| 98 visitor->trace(m_document); | 98 visitor->trace(m_document); |
| 99 visitor->trace(m_imports); | 99 visitor->trace(m_imports); |
| 100 HTMLImport::trace(visitor); | 100 HTMLImport::trace(visitor); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |