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

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

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
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 24 matching lines...) Expand all
35 #endif 35 #endif
36 } 36 }
37 37
38 Document* HTMLImportTreeRoot::document() const 38 Document* HTMLImportTreeRoot::document() const
39 { 39 {
40 return m_document; 40 return m_document;
41 } 41 }
42 42
43 bool HTMLImportTreeRoot::isDone() const 43 bool HTMLImportTreeRoot::isDone() const
44 { 44 {
45 return !m_document->parsing() && m_document->styleEngine()->haveStylesheetsL oaded(); 45 return !m_document->parsing() && m_document->styleEngine().haveStylesheetsLo aded();
46 } 46 }
47 47
48 void HTMLImportTreeRoot::stateWillChange() 48 void HTMLImportTreeRoot::stateWillChange()
49 { 49 {
50 scheduleRecalcState(); 50 scheduleRecalcState();
51 } 51 }
52 52
53 void HTMLImportTreeRoot::stateDidChange() 53 void HTMLImportTreeRoot::stateDidChange()
54 { 54 {
55 HTMLImport::stateDidChange(); 55 HTMLImport::stateDidChange();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 DEFINE_TRACE(HTMLImportTreeRoot) 103 DEFINE_TRACE(HTMLImportTreeRoot)
104 { 104 {
105 visitor->trace(m_document); 105 visitor->trace(m_document);
106 visitor->trace(m_imports); 106 visitor->trace(m_imports);
107 HTMLImport::trace(visitor); 107 HTMLImport::trace(visitor);
108 } 108 }
109 109
110 } 110 }
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698