Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: Source/core/html/imports/HTMLImportTreeRoot.cpp

Issue 1042613002: Rename isDone() to hasFinishedLoading() for HTMLImport (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change name. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/imports/HTMLImportTreeRoot.h ('k') | Source/core/html/imports/LinkImport.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportTreeRoot.h ('k') | Source/core/html/imports/LinkImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698